Skip to content

Commit

Permalink
fix(auth): match user from OIDC flow on central UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Sep 6, 2023
1 parent 7e727bc commit 42f27cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async function completeLogin(req, res) {
httpsAgent: networkAgent,
});
const centralAttr = profileRes.data.attributes;
const authSub = centralAttr.sub || profileRes.data.sub;
const authSub = centralAttr.uuid || centralAttr.sub || profileRes.data.sub;
const targetOrg = state.orgID || process.env.ORG_ID;

let authUser = null;
Expand Down

0 comments on commit 42f27cc

Please sign in to comment.