M8: oauth2-proxy scope auf openid+email+profile (Keycloak invalid_scope bei groups)
Der groups-Claim kommt ueber den roles-Scope-Mapper ins Token, nicht ueber den scope-Parameter. Verifiziert: /oauth2/start redirect mit scope=openid+email+profile. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -189,3 +189,8 @@ Internet → NPM (CT 103, 443) → auth_request-Subrequest an oauth2-proxy
|
||||
`/` → 8085, `/api` → 8086 (600 s Timeouts), beide mit auth_request.
|
||||
E2E: `research/` und `research/api/docs` unauth → 302 Keycloak; Backend
|
||||
`/docs` 200 via NPM; 8086 von außen geblockt.
|
||||
|
||||
- **Befund 18.11. (invalid_scope):** oauth2-proxy scope darf kein `groups`
|
||||
enthalten — Keycloak lehnt unbekannte Scopes ab (`invalid_scope`); der
|
||||
`groups`-Claim kommt über den `roles`-Scope-Mapper ins Token. Scope jetzt
|
||||
`openid email profile` (Redirect verifiziert: `scope=openid+email+profile`).
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ reverse_proxy_oauth2proxy_provider: oidc
|
||||
reverse_proxy_oauth2proxy_oidc_issuer_url: https://auth.ghostnet.selfhost.eu/realms/Ghost.net
|
||||
reverse_proxy_oauth2proxy_client_id: gnai-research
|
||||
reverse_proxy_oauth2proxy_redirect_url: https://research.ghostnet.selfhost.eu/oauth2/callback
|
||||
reverse_proxy_oauth2proxy_scopes: "openid email profile groups"
|
||||
reverse_proxy_oauth2proxy_scopes: "openid email profile" # "groups" ist kein Keycloak-Client-Scope (invalid_scope); der groups-Claim kommt ueber den roles-Scope-Mapper
|
||||
|
||||
# Authorization: Keycloak realm role mapped onto the `groups` claim.
|
||||
reverse_proxy_oauth2proxy_allowed_group: gnai-research-user
|
||||
|
||||
Reference in New Issue
Block a user