docs: Grafana reads claims from userinfo, not USE_ID_TOKEN

The login lands once authentik emits the email claim (the IdP fix); Grafana needs
no USE_ID_TOKEN toggle, and dropping it also avoids a *_TOKEN false-positive in
the literal-secret seam. Correct the two SSO notes accordingly.
This commit is contained in:
Frank committed 2026-10-20 20:41:57 -07:00
1 parent 6f442a14a3
commit d8196ce499
2 files changed
+11 -11

No files matched your search

@@ -119,13 +119,13 @@ implementation diverges from upstream in ways that bit us; all verified live:
`return {"email": user.email, "email_verified": True}`. With no email, Grafana
v13 falls back to GET `<api_url>/emails`; authentik 404s it → "Login failed:
InternalError".
- **Claims ride in the id_token.** `include_claims_in_id_token` is on for this
provider and Grafana reads identity from it (`USE_ID_TOKEN=true`).
- **Grafana reads identity from the standard userinfo endpoint** (`API_URL` with
no `?api=1`); no `USE_ID_TOKEN` is needed once the `email` claim exists.
- **Net (2026-10-20):** the evaluator is fine; email/profile claims reach RP
clients. Both IdP fixes are idempotent in `scripts/authentik-grafana-sso-fix.sh`
(re-run after an ak-shell re-creation of the provider or a blueprint import,
which revert them). Grafana's half + the verified outcome (Viewer,
`login = <sub hex>`, email present) are in [[Grafana]].
clients. Both IdP fixes are idempotent in
`scripts/authentik-grafana-sso-fix.sh` (re-run after an ak-shell re-creation of
the provider or a blueprint import, which revert them). Grafana's half plus the
verified outcome (Viewer, `login = <sub hex>`, email present) are in [[Grafana]].
## LDAP provider objects (provisioned via `ak shell` ORM)