Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

If a user can't be found by identity, fall back to checking Email#46

Open
slewis74 wants to merge 1 commit into
mainfrom
enh-emailfallback
Open

If a user can't be found by identity, fall back to checking Email#46
slewis74 wants to merge 1 commit into
mainfrom
enh-emailfallback

Conversation

@slewis74
Copy link
Copy Markdown
Contributor

At the moment server will fallback to comparing the email from the token to existing usernames within Octopus. This doesn't however work in Octopus instances that have been running against other providers and have usernames already created that don't match the email addresses.

User Email addresses may have changed for a number of reasons over time, but the username in Octopus is immutable, which causes the Authenticated action handlers in this provider to create new users when it shouldn't, because it can't find the existing users.

This has shown in a customer scenario for Okta specifically, but all of the providers would be susceptible to this so the fix has been applied at the common level. The fix is to explicitly fall back to looking for users by Email if the standard GetByIdentity doesn't return a user (that call actually has some "fuzzy" matching and fallbacks, but they don't cover this scenario and can't be changed because they would break certain OnPrem AD scenarios).

…ress. Server can't do this for us in `GetByIdentity` because OnPrem AD scenarios would then break.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant