Skip to content

A Microsoft Entra email counts as verified when its domain owner is - #1517

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
re-cinq:entra-email-domain-owner-verified
Nov 20, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
re-cinq:entra-email-domain-owner-verified

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Hi! A small one for deployments behind Microsoft Entra. We skipped the issue because it is so small; happy to open one or change the shape if you prefer.

Entra never sends email_verified, so with UTOPIA_OIDC_ALLOWED_DOMAINS set nobody from a listed domain gets an account on first sign-in. Entra has an optional claim for the same purpose, xms_edov, which is true when the owner of the email's domain is verified.

What changed

  • oidc_routes.rs reads xms_edov as leniently as email_verified, and either one counts as verified. The domain list is checked as before, and a token with neither claim still gets no account.
  • ADR 0069 gets a dated note under decision 1.

Tested

One new unit test, which fails without the change. We have no Entra tenant to try it on yet, so the claim's shape comes from Microsoft's documentation. We will report back once we see real tokens.

Thank you for taking a look!

…so listed domains sign in on first visit

Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
@gedaiu

gedaiu commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Hi @WaylandYang, a gentle nudge on this one for whenever you have a moment. There is no rush at all. I am glad to reshape or split it if that makes it easier to read. Thank you for the care you put into the last reviews, they made the changes better.

@WaylandYang
WaylandYang merged commit 87a83b9 into deeplethe:dev Nov 20, 2026
6 checks passed
evolv3ai pushed a commit to evolv3ai/utopia that referenced this pull request Nov 20, 2026
…ntra domain-owner verification (deeplethe#1517)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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