dumpd /me reports the decoded discord_id; the gateway page shows it on hover
The quickest way to confirm the Vanguard profile scope mapping is live, without echoing the raw token: the browser never sees X-Authentik-Jwt, so printing it would hand the user a bearer token for the proxy provider. Decoding is display-only and never feeds an authorisation decision. Verified against eight inputs including a numeric claim, a missing claim, a non-token and malformed base64. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -414,7 +414,10 @@ Design: **Authentik authenticates once for the whole domain; Caddy authorizes pe
|
||||
`default-provider-invalidation-flow` so that also ends the Authentik login: every logout then forces a full
|
||||
Discord re-login on the next visit (and picks up group changes). Discord itself may approve silently if
|
||||
you are still logged into Discord in that browser.
|
||||
5. Debug: `https://HOST/whoami` prints the username/groups headers exactly as the apps receive them.
|
||||
5. Debug: `https://HOST/whoami` prints the username/groups headers exactly as the apps receive them, and
|
||||
`https://HOST/me` adds the `discord_id` claim decoded from `X-Authentik-Jwt` — the quickest check that the
|
||||
`Vanguard profile` scope mapping is live. The raw token is deliberately never echoed: the browser does not
|
||||
see that header today, and printing it would hand the user a bearer token they otherwise could not read.
|
||||
Group changes in Authentik apply on the next login — log out at `https://auth.HOST/` and back in.
|
||||
6. Test in a private window: `https://live.HOST/` → Discord login → portal; `https://bot.HOST/` → 403 unless
|
||||
you hold the bot role; `https://live.HOST/me/stream-key` shows your username.
|
||||
|
||||
Reference in New Issue
Block a user