-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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: Split signout_redirect_url into per provider settings #75269
Conversation
docs/sources/setup-grafana/configure-security/configure-authentication/grafana/index.md
Outdated
Show resolved
Hide resolved
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.
Left a docs suggestion. Thank you for the contribution.
@Jguer Can you please review and let me know your comments |
docs/sources/setup-grafana/configure-security/configure-authentication/grafana/index.md
Outdated
Show resolved
Hide resolved
…tication/grafana/index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Hey @venkatbvc , a quick code review seems to show everything is in order to get this merged. We're going to test this commit against our local sample idPs to confirm everything is working correctly and hopefully we'll just merge it 🙂 . Thanks for taking the time to do this |
@Jguer Let me know if there is any pending action from myside? |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
pkg/login/social/social.go
Outdated
@@ -75,6 +75,7 @@ type OAuthInfo struct { | |||
UsePKCE bool `mapstructure:"use_pkce"` | |||
UseRefreshToken bool `mapstructure:"use_refresh_token"` | |||
Extra map[string]string `mapstructure:",remain"` | |||
SignoutRedirectUrl string `toml:"signout_redirect_url"` |
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.
Could you please change the tag to mapstructure:"signout_redirect_url"
and move it above the Extra
field?
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.
@mgyongyosi will take a look and align, incase of queries will reach out to you
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.
@mgyongyosi
Modified as per the comment. continuous-integration/drone/pr is pending state. is it due to Milestone is set as 10.2.x?
@mgyongyosi Thanks for modifying the milestone. continuous-integration/drone/pr is still in pending state. It is giving below message in the details link: "Build is blocked, please, contact repo admin in order to proceed" |
Hey @venkatbvc , I've finished testing the PR and I'm just waiting on the CI to pass before merging, no further changes should be necessary. I confirmed it worked with generic oauth, SAML and that the legacy behavior was kept intact. I made some small changes but I will squash the commits without co-author on merge. Thanks for taking the time to do this, sorry that it took me some time to get back to you 🙂 |
@Jguer @mgyongyosi Thanks for approving the pull request. |
* Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * Update docs/sources/setup-grafana/configure-security/configure-authentication/grafana/index.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * Split signout_redirect_url into per provider settings * update docs * update devenvs * add missing struct tag --------- Co-authored-by: Rao, B V Chalapathi <b_v_chalapathi.rao@nokia.com> Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Co-authored-by: jguer <me@jguer.space>
Hi all, is this related? |
What is this feature?
This is to support separate signout_redirect_url per oauth provider. auth.signout_redirect_url is still supported. Precedence is given to oauth provider signout url if configured both.
Which issue(s) does this PR fix?:
Fixes #73990
Special notes for your reviewer:
Please check that: