Skip to content

Commit

Permalink
fix(adapter.ts): expand OIDC scope to include email and profile for m…
Browse files Browse the repository at this point in the history
…ore comprehensive user information retrieval
  • Loading branch information
gcordalis committed Feb 16, 2025
1 parent 3b4837a commit b82e0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function oidcRedirectForCode(req: Request, prompt: string): Response {
`&hash=${encodeURIComponent(hash)}`;
const target = `${KEYCLOAK_ORIGIN}/realms/${KEYCLOAK_REALM}` +
`/protocol/openid-connect/auth?client_id=${KEYCLOAK_CLIENT_ID}` +
`&response_mode=${KEYCLOAK_MODE}&response_type=code&scope=openid` +
`&response_mode=${KEYCLOAK_MODE}&response_type=code&scope=openid%20email%20profile` +
`&prompt=${prompt}&redirect_uri=https://${host}/static/oidc-adapter.html` +
`?${encodeURIComponent(bundle)}`;

Expand Down

0 comments on commit b82e0a3

Please sign in to comment.