Skip to content

OIDC email verified fix - #3598

Merged
wojcik91 merged 8 commits into
release/2.1from
oidc_email_verified_fix
Aug 24, 2026
Merged

OIDC email verified fix#3598
wojcik91 merged 8 commits into
release/2.1from
oidc_email_verified_fix

Conversation

@wojcik91

@wojcik91 wojcik91 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Check if email address is verified before merging an external account.
This is only done if a given OIDC provider actually provides an email_verified claim, otherwise the behavior is unchanged.

Out of our officially supported providers only Microsoft does not provide the email_verified claim.

Also user lookup by email address is now an exact case-insensitive match. It previously treated the address as a SQL LIKE pattern, so an address containing % or _ could match a different user.

Closes https://github.com/DefGuard/internal/issues/168

@wojcik91
wojcik91 marked this pull request as ready for review August 24, 2026 09:06

// enable corresponding MFA
match method {
let mfa_method: MFAMethod = match method {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
let mfa_method: MFAMethod = match method {
let mfa_method = match method {

moubctez
moubctez previously approved these changes Aug 24, 2026
@wojcik91
wojcik91 merged commit 965b294 into release/2.1 Aug 24, 2026
15 checks passed
@wojcik91
wojcik91 deleted the oidc_email_verified_fix branch August 24, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants