question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xamarin Forms UWP freezes when using B2C + MSA

See original GitHub issue

Which version of MSAL.NET are you using? Version: 4.48.1

Platform Xamarin Forms UWP

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Integrated Windows Authentication
    • Username Password
    • Device code flow (browserless)

Expected behavior Login dialog appears.

Actual behavior Exception thrown.

Hi,

I have followed the sample app configuration and code from here,

This app sample works for Local, MS and Google Accounts. Unfortunately most packages in this sample are very old. I have created a new sample project, that is attached, with the latest Nuget Packages. I am faced with the error:

Microsoft.Identity.Client.MsalClientException: Only loopback redirect uri is supported, but msale5737214-6372-472c-a85a-68e8fbe6cf3c://auth/ was found.

Attached is the full verbose stack trace, logs and the sample app. Can you please help me solve this problem?

To view my B2C configuration please look here. This issue contains images of my B2C setup.

UWP Stack Trace.log Msal.zip

Thanks

Mark and Zac.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Surfratcommented, Nov 25, 2022

Thanks very much for your insights, as it makes design decisions easier. Is it possible to only use Local login for UWP only and Local, Google and MS for Android and iOS?

This way I can side step the problem for now or use Local login only for all three platforms.

I really appreciate your help, the joys of software engineering 😃

0reactions
bgavrilMScommented, Dec 22, 2022

Won’t follow up on UWP issues, please use WinUI or raise the issue via Azure Portal for B2C

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems authenticating with MSAL and Azure B2C in a ...
I'm having some difficulty getting one of the sample Xamarin.Forms/Azure applications to work with my own Azure B2C tenant, ...
Read more >
Xamarin Forms MSAL Hangs - Microsoft Q&A
In my Xamarin Forms app using MSAL, the UWP project runs and authenticates as expected. However, the Android project "hangs" after the ......
Read more >
[handled] SerializationException within ...
If B2C, what social identity did you use? Google. Repro I'm getting an exception on this line: AuthenticationResult ar = await App ......
Read more >
AAD B2C with UWP WinUI 3 SDK - Sky Cliffs
So I've been working with an internal customer on leveraging Azure Active Directory B2C. I noticed that the demo code is a bit...
Read more >
Similar Question
Retrieve Data from Mysql Database in WebApi To HttpRecquest? Problems with Bindings in Xamarin Forms (MVVM) · UrhoSharp.Forms on UWP - unable to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found