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
Auth: Set the default org after User login #83918
Conversation
/deploy-to-hg |
|
/deploy-to-hg |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small docs nit. Otherwise, docs approved. Thanks for the contribution.
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
/deploy-to-hg |
|
if err != nil { | ||
return false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not ignore error here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed, validateUsingOrgs
returns the error from GetUserOrgList
, the hook logs the error and skips setting the default org (same logic that is in SyncOrgRolesHook
).
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
|
What is this feature?
This PR adds the ability to set the default organization the user will see after successful login when the User is assigned to multiple Grafana organizations.
Why do we need this feature?
Who is this feature for?
Which issue(s) does this PR fix?:
Fixes #
Special notes for your reviewer:
Please test it on HG with
/deploy-to-hg
before merging the PR.Please check that: