diff --git a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md index b68cb72..11e7730 100644 --- a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md +++ b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md @@ -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`). diff --git a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_oauth2proxy/defaults/main.yml b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_oauth2proxy/defaults/main.yml index 2b90cef..177bb54 100644 --- a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_oauth2proxy/defaults/main.yml +++ b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_oauth2proxy/defaults/main.yml @@ -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