The "Login with Microsoft" provided by Firebase Authentication is not working properly, not sure if it is a Firebase issue, Microsoft issue, or my issue

Hiroshi Nishio 11 Reputation points
2022-09-17T17:36:56.727+00:00

Summary

Firebase Authentication provides login with Microsoft providers (https://firebase.google.com/docs/auth/web/microsoft-oauth). Using it, as shown in the video, there are patterns of success and failure. I would like to know why and how to fix them.

A successful Pattern

If you use xxxxxxxxxx@Stuff .com, it succeeds. To complicate things, this Gmail address is registered with Microsoft, and I have purchased Office 365, including Excel, at this address.

https://www.loom.com/share/5354b27d0d0d451aa465d2ff069952be

A failure Pattern 1

If xxxxxxxxxx@harsh.com .com is used, it fails. This address was obviously created at Microsoft, and the Microsoft Azure Active Directory we are using was also created by logging in with this address. Despite this, it fails.
You can see the details in this loom video.

https://www.loom.com/share/9ca49861c29042428a14eace05bec9a4

I would like to know why and how to fix this problem 1.

Failure Pattern 2

It also fails if I try to log in using the Sign in option. I don't know why.
You can see the details in this loom video.

https://www.loom.com/share/3d010e32c6d3484f9308d3140cc3793c

The error message as below

  • Request Id: b1772ac7-ea86-46aa-ae85-8ef8aeb54500
  • Correlation Id: 3e3f3536-eef0-44f2-a096-d9e3d6ca535a
  • Timestamp: 2022-09-14T17:49:04Z
  • Message: AADSTS500202: User account 'xxxxxx@harsh.com .com' from external identity provider 'live.com' is not supported for API version '2.0'. Microsoft account pass-thru users and guests are not supported by the tenant-independent endpoint.

Does anyone know the cause and solution for this error 2 as well?
Or, if there is a way to prevent users from seeing the sign-in option, that is fine. It is less convenient for the user, but it is better than having an error that prevents the user from logging in.

Thanks,

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,522 questions
{count} vote