A cloud-based identity and access management service for securing user authentication and resource access
Undocumented authentication differences between single-tenant and multi-tenant Entra ID applications
TL;DR
While investigating an authentication failure, we found undocumented behavioral differences between single-tenant and multi-tenant Entra ID applications. Specifically, the Origin HTTP header is rejected by single-tenant apps using “Mobile and desktop” redirect URIs, but accepted by multi-tenant apps in the same flow. The resulting error (AADSTS9002326) does not appear in the official documentation, which made the issue difficult to diagnose.
What we observed
When using MSAL to perform an interactive authentication flow:
Single-tenant applications fail if the request includes an Origin header and the redirect URI type is “Mobile and desktop”
- Multi-tenant applications tolerate the same header in otherwise identical requests
- The failure returns error code
AADSTS9002326, with a message saying "*Cross-origin token redemption is only permitted for the 'Single-Page-Application' client type. Request origin: