Share via

Invited Gmail user with MicrosoftAccount identity bypasses OTP flow and fails with redirect_uri error

Eugene Alexeev 0 Reputation points
2026-03-06T15:54:39.75+00:00

I configured authentication in an Azure External Tenant (CIAM) with these requirements:

  • No self-service signup
  • Users are invited by an admin
  • Users authenticate via Email OTP
  • App uses MSAL

For most users the flow works:

  1. Admin sends invite
  2. User accepts
  3. User enters email
  4. Receives OTP
  5. Enters OTP
  6. Redirect back to the app

The flow works as expected, except one invited user cannot log in.

The email is Gmail, but it also has a Microsoft Account associated with it. After accepting the invitation the user shows:

Identities: MicrosoftAccount

When logging in:

  • The OTP flow is skipped

The browser redirects to:

...ciamlogin.com/common/federation...

Then it fails with:

invalid_request: The provided value for the input parameter 'redirect_uri' is not valid

Question

How should this scenario be handled?

  • Can I force OTP authentication even if the email has a Microsoft Account?
  • Or do I need to enable/configure Microsoft Account authentication in the tenant for these users?

Right now users with MicrosoftAccount identity cannot log in at all. I don't even mind right now for having additional auth route besides OTP, but it has to work.

NOTE: Sorry if I chose wrong "Child". Couldn't find Authentication or Tenant-related children :(

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.