Microsoft Entra External ID federation with custom OIDC provider fails before user journey completion when email claim is only available via userinfo endpoint

Axel Katzur 0 Zuverlässigkeitspunkte
2026-11-11T13:06:02.5833333+00:00

Environment

  • Microsoft Entra External ID (Customer Tenant)
  • Custom OpenID Connect Identity Provider
  • Authorization Code Flow
  • Scopes requested:
      openid profile email
    

Issue

We are integrating a third-party OIDC provider with Microsoft Entra External ID.

Authentication at the external provider succeeds and the user is successfully redirected back to Entra External ID.

However, the sign-in journey never completes.

Observed results include:

  • An "Add details" page
  • A blank white page

No useful information appears in Entra Sign-In Logs or Audit Logs.


What Works

  • Redirect URI validation
  • Authorization Code Flow
  • User authentication at the external IdP
  • Redirect back to Entra External ID

We verified this by correcting the redirect URI. Previously we received a "Page not found" error from the IdP. After correcting the redirect URI, authentication succeeds and the user is returned to Entra.


What We Observed

The external provider's documentation states that user profile information is returned through the userinfo endpoint.

Example response:

JSON

{
"email": "[email protected]",
"name": "Tony autom",
"given_name": "Tony",
"family_name": "autom",
"preferred_name": "Tony",
"nickname": "Tony",
"sub": "acff0c9f-1ba9-4f32-b1b3-4af90d078af8",
"acr": "low-pplatpoc1"
}

The provider confirmed that:

email, name, given_name and family_name are currently only available via the userinfo endpoint and are not included in the ID token.


Important Finding

Microsoft documentation states:

"The email claim is required for External ID federation scenarios."

This raises the question whether Entra External ID requires the email claim to be present in the ID token itself.


Additional Information

We tested with another custom OIDC provider.

That provider includes profile information inside the ID token and works successfully with the same Entra External ID configuration.

Therefore the issue appears specific to the provider that exposes profile claims only through the userinfo endpoint.


Questions

  1. Does Entra External ID support OIDC providers where profile attributes (email, name, given_name, family_name) are available only through the userinfo endpoint?
  2. Does Entra External ID call and process the provider's userinfo endpoint during federation?
  3. Is the email claim required in the ID token, or is retrieving it via userinfo sufficient?

Any guidance on supported claim requirements for custom OIDC federation in Entra External ID would be greatly appreciated.

Windows für Unternehmen | Windows-Client für IT-Profis | Verzeichnisdienste | Active Directory
0 Kommentare Keine Kommentare

1 Antwort

Sortieren nach: Am hilfreichsten
  1. Xuan Nhu 1,700 Zuverlässigkeitspunkte Unabhängiger Berater
    2026-11-11T13:40:49.8533333+00:00

    Hallo Alex,

    Basierend auf Microsofts Dokumentation deuten Ihre Ergebnisse stark auf ein Kompatibilitätsproblem zwischen dem externen OIDC-Anbieter und der Entra External ID hin.

    Microsoft Entra External ID dokumentiert Anspruchszuordnungen basierend auf Ansprüchen, die im ID-Token enthalten sind, einschließlich sub, name, given_name, family_name, und email. Die Föderationsdokumentation unterstützt keine Unterstützung für das Abrufen dieser Ansprüche vom Endpunkt des externen Anbieters userinfo , daher würde ich nicht annehmen, dass Entra diesen Endpunkt automatisch aufruft und verarbeitet.

    Der Anspruch email ist standardmäßig während der externen IdP-Anmeldung erforderlich, und sein Fehlen kann auslösen AADSTS901011. Microsoft bietet eine Option an, das E-Mail-Attribut auf Benutzerflussebene optional zu machen.

    Microsoft Learn+1

    Ich würde empfehlen, den externen IdP zu bitten, email, name, given_name, und family_name direkt im ID-Token einzufügen, und dann die Claims-Mapping in Entra zu überprüfen. Falls das nicht möglich ist, teste mit optionaler E-Mail und prüfe, ob die Anmeldereise abgeschlossen ist.

    Kurz gesagt, die vielversprechendste Lösung ist, dass der externe Anbieter die erforderlichen Profilansprüche im ID-Token zurückgibt, anstatt sich ausschließlich auf UserInfo zu verlassen.

    Xuan Nhu.

    War diese Antwort hilfreich?


Ihre Antwort

Antworten können von Fragestellenden als „Angenommen“ und von Moderierenden als „Empfohlen“ gekennzeichnet werden, wodurch Benutzende wissen, dass diese Antwort das Problem des Fragestellenden gelöst hat.