From 4551de148c0bda0c6ad0846dba4e214f434a1ec7 Mon Sep 17 00:00:00 2001 From: Misi Date: Thu, 28 Sep 2023 16:37:41 +0200 Subject: [PATCH] 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> --- .../configure-security/configure-authentication/saml/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sources/setup-grafana/configure-security/configure-authentication/saml/index.md b/docs/sources/setup-grafana/configure-security/configure-authentication/saml/index.md index 4bde868da55..b4372fb7068 100644 --- a/docs/sources/setup-grafana/configure-security/configure-authentication/saml/index.md +++ b/docs/sources/setup-grafana/configure-security/configure-authentication/saml/index.md @@ -486,6 +486,10 @@ filters = saml.auth:debug 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: - `asn1: structure error: tags don't match`