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.

[Bug] In WPF client the social login stack in the redirecting state

See original GitHub issue

Which Version of MSAL are you using ? 4.3.1

Platform .NET 4.6.2

What authentication flow has the issue?

  • Desktop / Mobile
    • [ X ] Interactive
    • Integrated Windows Auth
    • Username Password
    • Device code flow (browserless)

Is this a new or existing app? The app is in production

Repro Currently does not work the library at all if you call it from WPF. Even the sample application does not work, even my application does not work.

Repo: Use any type of WPF application, like the sample app.

  1. Download and Build the Microsoft Azure Sample App: https://github.com/Azure-Samples/active-directory-b2c-dotnet-desktop
  2. Start it.
  3. Click on the Sign In button.
  4. Click any type of social provider. (Facebook, Google, Microsoft)
  5. The Window Title change to “Redirecting…” and stack in this state.

Same with every WPF applications.

Check the sample code, but here is the method that called.

 authResult = await (app as PublicClientApplication).AcquireTokenInteractive(App.ApiScopes)
                    .WithParentActivityOrWindow(new WindowInteropHelper(this).Handle)
                    .WithAccount(GetAccountByPolicy(accounts, App.PolicySignUpSignIn))
                    .ExecuteAsync();

Expected behavior A clear and concise description of what you expected to happen (or code).

Actual behavior A clear and concise description of what happens, e.g. exception is thrown, UI freezes

Possible Solution Maybe there is a problem on Microsoft B2C side, but the library does not handling this scenario.

Additional context/ Logs / Screenshots 1 2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:36 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
aturoczycommented, Sep 13, 2019

Now it is working 😉

4reactions
jennyf19commented, Sep 13, 2019

@foxyjess1 @xammob @TuroczyX @jondmcelroy The fix is out. I have confirmed that I am no longer hit the “redirecting…” page…can you please do so as well and let us know? Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF application authentication with Google
1 · I've used the methods described here: developers.google.com/api-client-library/dotnet/guide/aaa_oauth . · You need to get oauth authorization ...
Read more >
Integrating Authentication with the WPF Application - YouTube
I setup an Authenticator class to handle authentication state for the WPF project. Then, I create a LoginViewModel and a LoginCommand.
Read more >
Incremental ASP.NET to ASP.NET Core Migration
A simple pattern to apply the Strangler Fig pattern to migrating ASP.NET to ASP.NET Core applications with the help of some new adapters....
Read more >
Add Authentication to .NET MAUI Apps with Auth0
Configure your MAUI app to use the Auth0 client. Add the login button on the MAUI app UI. Apply specific changes for each...
Read more >
What a very bad day at work taught me about building ...
What a very bad day at work taught me about building Stack Overflow's community. Hi, my name is Sara Chipps, first time Stack...
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