Skip to content

Fix issues with initial creation of external users#16363

Merged
iOvergaard merged 2 commits intov14/devfrom
v14/fix/external-auth-initial-linkage
May 24, 2024
Merged

Fix issues with initial creation of external users#16363
iOvergaard merged 2 commits intov14/devfrom
v14/fix/external-auth-initial-linkage

Conversation

@kjac
Copy link
Copy Markdown
Contributor

@kjac kjac commented May 23, 2024

Description

After logging in with an external user for the first time, the Management API is unable to resolve the current user. Turns out we are mapping an empty user key in the "sub" claim.

While I was digging through the codebase to find the error, I came across a few hardcoded "sub" claims. I have updated those to use the OpenIdDictSubClaimType constant instead.

Testing

Setup external auth on a fresh DB. Log in with an external user. It should work.

Copy link
Copy Markdown
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and tests well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants