fix: profileId extraction in OIDC does not fallback to token.sub (#10882)

This commit is contained in:
Tom Moor authored and GitHub committed 2025-12-12 22:21:16 -05:00
1 parent f085a30406
commit bdeac4e44b
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ export function createOIDCRouter(
get(profile, env.OIDC_USERNAME_CLAIM) ??
get(token, env.OIDC_USERNAME_CLAIM);
const name = profile.name || username || profile.username;
const profileId = profile.sub ? profile.sub : profile.id;
const profileId = profile.sub ?? token.sub ?? profile.id;
if (!name) {
throw AuthenticationError(