Google SSO: User Sync Failed
What happened?
I setup Google SSO Auth with the new feature flag in 10.4.2.
Upon logging in I got the following error:
Login failed
User sync failed
Upon checking the logs, it looks like it was trying to attach the user to organization ID 1, which in my environment, has been deleted.
Is there a way to attach what organization the user should get attached to? Perhaps an optional UI field or an environment variable setting?
What did you expect to happen?
I expected auth to "just work"
Did this work before?
No
How do we reproduce it?
- Create a second organization with id 2
- Delete organization with id 1
- Setup Google OAuth2 flow
- Attempt to login
- See Error
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.4.2 OS: Mac Browser: Chrome
Grafana platform?
Kubernetes
Datasource(s)?
No response
Same problem here. After deleting the Org ID 1, the Google authentication fails.
I still have Org ID 1 and this fails for me too.
@kcharwood @markhc You need to update the auto_assign_org auto_assign_org_id settings.