Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always retrieve github emails when preferredEmailDomain is set #3584

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

thesuperzapper
Copy link
Contributor

Overview

As discussed in dexidp/website#176, even when preferredEmailDomain (which was added by #2740) is set on the GitHub connector, if the user has a public email on their GitHub profile, it will take precedence over any private one which might match the preferredEmailDomain selector.

This is problematic for organizations which want to use the email filter to assign permissions to employees based on their corporate email, as they must tell users to remove any public emails from their profile.

What this PR does / why we need it

Simply makes it so that we always preform an email check when preferredEmailDomain is non empty.

Special notes for your reviewer

N/A

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
@thesuperzapper
Copy link
Contributor Author

@nabokihms any chance this will be merged?

@nabokihms
Copy link
Member

This is a breaking change, so we must mention it in the RM. Overall, it looks decent. Thanks, @thesuperzapper

@nabokihms nabokihms merged commit fb20f3f into dexidp:master Jul 15, 2024
10 of 11 checks passed
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