f-miyu / Plugin.FirebaseAuth

MIT License
61 stars 26 forks source link

Not able to sign in with oauth provider microsoft.com #10

Open kevinjh07 opened 4 years ago

kevinjh07 commented 4 years ago

I am trying to sign in using methods: CrossFirebaseAuth.Current.Instance.SignInWithCredentialAsync and OAuthProvider.GetCredential, with parameters: "microsoft.com (as provider id)", idToken and accessToken values. The exception message is "An internal error has occurred. [ INVALID_CREDENTIAL_OR_PROVIDER_ID:Invalid IdP response/credential", but the idToken and accessToken values are correct, i am using Microsoft.Identity.Client to authenticate, using the example from repository https://github.com/Azure-Samples/active-directory-xamarin-native-v2.

jmkyarrow commented 4 years ago

Did you find a solution? I'm still having this problem now and it's most frustrating!

jmkyarrow commented 4 years ago

For anyone else who may struggle with this in the future - I wish I had read this earlier! image Essentially it means you can't do Microsoft auth this way and instead interact directly the OAuthProvider.Builder classes on the platform specific level. Or maybe in the future this library will just know to do that automatically.