I am implementing an authentication system in Keycloak with human users and iot devices.
Human Users: Access the system through a spa and use the Standard Redirection Based Authentication Flow.
IOT Devices: The use case involves a number of high value devices which not interactive and need to transmit telemetry to the backend and access their own data as well data from associated users. My current plan is to use the Resource Owner Password Credentials Grant since the embedded system can be setup with credentials during provisioning.
My thinking is that this would enable me to use Keycloak Groups and Roles for permission management and User <-> Device Association.
Is there anything inherently wrong with this approach?