microsoft-authentication-library-for-dotnet: Moving from login.microsoftonline.com to b2clogin.com causes `The IDP client key/secret is not properly configured` error with Facebook IDP

I upgraded to MSAL 2.7.0 and tried to move to <tenant>.b2conline.com I am using Xamarin Forms

In my Xamarin Forms application, the login screen appears, I am able to register and also get my user created but the control never gets redirected to my app. (the application just hangs). Am I missing a redirect setting somewhere ? In my native app; I set my redirect to msal<tenantid>😕/auth

What authentication flow has the issue? Native/Xamarin

Other? - please describe;

Repro

  AuthenticationClient = new PublicClientApplication(AppSettings.B2cClientId,
                $"{AppSettings.B2cAuthority}{AppSettings.B2cTenant}/{AppSettings.B2cPolicy}");
            AuthenticationClient.RedirectUri = $"msal{AppSettings.B2cClientId}://auth";
…

                var result = await App.AuthenticationClient.AcquireTokenAsync(
                    AppSettings.Scopes,
                    GetAccountByPolicy(accounts, AppSettings.DefaultB2cPolicy), 
                    App.UiParent);

Hangs in the above line.


Expected behavior I was expecting it to return with the access tokens so that I can save them and move to the next screen.

Actual behavior The application just freezes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 37 (1 by maintainers)

Most upvoted comments

Give me a week’s time; I will remove code from my Xamarin application and create a sample application pointing to existing profiles that don’t work for your test. We could either do a screen share or I could send that app over to you and changes the id’s later.

Regards, Dhiru

On Mon, Feb 4, 2019 at 3:12 PM jennyf19 notifications@github.com wrote:

@livehop https://github.com/livehop @parakhj https://github.com/parakhj Do we have an update on this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/808#issuecomment-460395331, or mute the thread https://github.com/notifications/unsubscribe-auth/ALEKs2Ets3Gb2LNIVwPIDfyC8rFDVEp6ks5vKJRIgaJpZM4aLk0z .