Docs: Add SameSite troubleshooting to SAML docs (#75590)

* Add SameSite troubleshooting to SAML docs

* Update docs/sources/setup-grafana/configure-security/configure-authentication/saml/index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
This commit is contained in:
Misi 2023-09-28 16:37:41 +02:00 committed by GitHub
parent fd2235b5ad
commit 4551de148c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,6 +486,10 @@ filters = saml.auth:debug
Following are common issues found in configuring SAML authentication in Grafana and how to resolve them. Following are common issues found in configuring SAML authentication in Grafana and how to resolve them.
### Infinite redirect loop / User gets redirected to the login page after successful login on the IdP side
If you experience an infinite redirect loop when `auto_login = true` or redirected to the login page after successful login, it is likely that the `grafana_session` cookie's SameSite setting is set to `Strict`. This setting prevents the `grafana_session` cookie from being sent to Grafana during cross-site requests. To resolve this issue, set the `security.cookie_samesite` option to `Lax` in the Grafana configuration file.
### SAML authentication fails with error: ### SAML authentication fails with error:
- `asn1: structure error: tags don't match` - `asn1: structure error: tags don't match`