Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google SSO: User Sync Failed #86892

Open
kcharwood opened this issue Apr 24, 2024 · 3 comments
Open

Google SSO: User Sync Failed #86892

kcharwood opened this issue Apr 24, 2024 · 3 comments
Labels
area/auth triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced

Comments

@kcharwood
Copy link

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?

Screenshot 2024-04-24 at 3 43 33 PM

What did you expect to happen?

I expected auth to "just work"

Did this work before?

No

How do we reproduce it?

  1. Create a second organization with id 2
  2. Delete organization with id 1
  3. Setup Google OAuth2 flow
  4. Attempt to login
  5. 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

@markhc
Copy link

markhc commented May 3, 2024

Same problem here. After deleting the Org ID 1, the Google authentication fails.

@tonypowa tonypowa added area/auth triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced labels May 21, 2024
@jeffpaulKinsta
Copy link

I still have Org ID 1 and this fails for me too.

@mgyongyosi
Copy link
Contributor

@kcharwood @markhc You need to update the auto_assign_org auto_assign_org_id settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced
Projects
None yet
Development

No branches or pull requests

5 participants