mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
fix: profileId extraction in OIDC does not fallback to token.sub (#10882)
This commit is contained in:
1 parent
f085a30406
commit
bdeac4e44b
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user