|
Hi there, I've removed the manual configuration step in the HA configuration.yaml. |
Replies: 1 comment 5 replies
|
I guess I can't help you with editing the file as that's fully up to the default HA code. Login is handled using a separate credential object that contains the user subject (sub). If user linking is on, the username of an existing user is matched in the second stage if there is no subject match. If there is a username match, the subject credential is added to that user. If not, a new user is created. In v1 if you use the UI config method there is an entire screen in the setup dedicated to user linking. If you use YAML or migrate, you can keep the config exactly the same as it was. |
I finally found the cause of my issue.
My username in Pocket ID was written with uppercase letters, for example
Username123.Pocket ID provided the claim
preferred_username: Username123, but Home Assistant stores usernames in lowercase, for exampleusername123.Because of this mismatch, Home Assistant could not match the claim with the existing user account and created a new user instead.
Changing the username in Pocket ID to lowercase solved the problem.