A cloud-based identity and access management service for securing user authentication and resource access
Invited Gmail user with MicrosoftAccount identity bypasses OTP flow and fails with redirect_uri error
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:
- Admin sends invite
- User accepts
- User enters email
- Receives OTP
- Enters OTP
- 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 :(