debug(pam): add /api/pam/whoami to inspect session roles

Temporary endpoint to verify what `realm_access.roles` Keycloak puts
into the access token vs. what NextAuth lands in session.user.roles.
Remove once the eligibility plumbing is confirmed working.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Super User
2026-05-18 13:58:00 +02:00
parent af8c4fd0da
commit cb85c1de7a
2 changed files with 50 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ spec:
spec:
containers:
- name: my-ui
image: registry.gosec.internal/gsc-my/ui:v0.1.1
image: registry.gosec.internal/gsc-my/ui:v0.1.2
imagePullPolicy: Always
ports:
- containerPort: 3000