Hi, We now authenticate our devices by scanning a QR code and let user login. See this flow:
But we have some IoT unique devices without screen. So we like to auto login them with their serial numbers? Is their some documentation how to do that?
If we can for example hardcode the username and password securely in the code. (something like this):
authentication
.login("companyId@placeholder-email.com", "serial number")
.setScope("openid email profile offline_access")
.start(object : Callback<Credentials, AuthenticationException> {
override fun onFailure(exception: AuthenticationException) {
// Error
}
override fun onSuccess(credentials: Credentials) {
//Save the credentials
manager.saveCredentials(credentials)
}
})
We can easy create a user with:
- User: companyId@placeholder-email.com]
- Pass: serial number
Trough our backend. Then if we provision a device, we can set create this user, with linked serialnumber to auto login.
If we need to remove access, we can easy remove the user from Auth0.
Hope their are some tips how to handle this. Since in all documentation I only see options with the Auth0 login form to login.