[Bug] In WPF client the social login stack in the redirecting state
See original GitHub issueWhich 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.
- Download and Build the Microsoft Azure Sample App: https://github.com/Azure-Samples/active-directory-b2c-dotnet-desktop
- Start it.
- Click on the Sign In button.
- Click any type of social provider. (Facebook, Google, Microsoft)
- 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:36 (2 by maintainers)
Top GitHub Comments
Now it is working 😉
@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.