mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
Auth: Split signout_redirect_url into per provider settings (#75269)
* 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>
This commit is contained in:
@ -205,10 +205,12 @@ disable_signout_menu = true
|
||||
|
||||
### URL redirect after signing out
|
||||
|
||||
URL to redirect the user to after signing out from Grafana. This can for example be used to enable signout from OAuth provider.
|
||||
URL to redirect the user to after signing out from Grafana. This can for example be used to enable signout from an OAuth provider.
|
||||
|
||||
Example for Generic OAuth:
|
||||
|
||||
```bash
|
||||
[auth]
|
||||
[auth.generic_oauth]
|
||||
signout_redirect_url =
|
||||
```
|
||||
|
||||
|
@ -121,9 +121,12 @@ disable_signout_menu = true
|
||||
|
||||
### URL redirect after signing out
|
||||
|
||||
URL to redirect the user to after signing out from Grafana. This can for example be used to enable signout from oauth provider.
|
||||
The URL to redirect the user to after signing out from Grafana can be configured under `[auth]` or under a specific OAuth provider section (for example, `[auth.generic_oauth]`). The URL configured under a specific OAuth provider section takes precedence over the URL configured in `[auth]` section. This can, for example, enable signout from the OAuth provider.
|
||||
|
||||
```bash
|
||||
[auth.generic_oauth]
|
||||
signout_redirect_url =
|
||||
|
||||
[auth]
|
||||
signout_redirect_url =
|
||||
```
|
||||
|
@ -136,7 +136,7 @@ groups_attribute_path = reverse("Global:department")
|
||||
To enable Single Logout, you need to add the following option to the configuration of Grafana:
|
||||
|
||||
```ini
|
||||
[auth]
|
||||
[auth.generic_oauth]
|
||||
signout_redirect_url = https://<PROVIDER_DOMAIN>/auth/realms/<REALM_NAME>/protocol/openid-connect/logout?post_logout_redirect_uri=https%3A%2F%2<GRAFANA_DOMAIN>%2Flogin
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user