Docs: fix authsaml to security (#50478)

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
pull/50485/head
Eric Leijonmarck 3 years ago committed by GitHub
parent cddab15769
commit 52deb821d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/sources/setup-grafana/configure-security/configure-authentication/saml.md

@ -410,7 +410,7 @@ The keys you provide should look like:
### SAML login attempts fail with request response "origin not allowed" ### SAML login attempts fail with request response "origin not allowed"
When the user logs in using SAML and gets presented with "origin not allowed", the user might be issuing the login from an IdP (identity provider) service or the user is behind a reverse proxy. This potentially happens as Grafana's CSRF checks deem the requests to be invalid. For more information [CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery). When the user logs in using SAML and gets presented with "origin not allowed", the user might be issuing the login from an IdP (identity provider) service or the user is behind a reverse proxy. This potentially happens as Grafana's CSRF checks deem the requests to be invalid. For more information [CSRF](https://owasp.org/www-community/attacks/csrf).
To solve this issue, you can configure either the [`csrf_trusted_origins`]({{< relref "../../configure-grafana/enterprise-configuration/#csrf-trusted-origins" >}}) or [`csrf_origin_headers`]({{< relref "../../configure-grafana/enterprise-configuration/#csrf-origin-headers" >}}) option in the SAML configuration. To solve this issue, you can configure either the [`csrf_trusted_origins`]({{< relref "../../configure-grafana/enterprise-configuration/#csrf-trusted-origins" >}}) or [`csrf_origin_headers`]({{< relref "../../configure-grafana/enterprise-configuration/#csrf-origin-headers" >}}) option in the SAML configuration.
@ -419,7 +419,7 @@ Example of a configuration file:
```bash ```bash
# config.ini # config.ini
... ...
[auth.saml] [security]
csrf_trusted_origins = https://grafana.example.com csrf_trusted_origins = https://grafana.example.com
csrf_origin_headers = X-Forwarded-Proto X-Forwarded-Host X-Forwarded-Port csrf_origin_headers = X-Forwarded-Proto X-Forwarded-Host X-Forwarded-Port
... ...

Loading…
Cancel
Save