Open kevinjh07 opened 4 years ago
Did you find a solution? I'm still having this problem now and it's most frustrating!
For anyone else who may struggle with this in the future - I wish I had read this earlier! 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.
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.