device: add support for configuring devices with external auth handler