AzureAD / microsoft-authentication-library-for-dotnet

Microsoft Authentication Library (MSAL) for .NET
https://aka.ms/msal-net
MIT License
1.35k stars 327 forks source link

[Bug] UWP Hololens application stopped getting past entering email and shows a blank UI #4747

Closed XRMech closed 1 week ago

XRMech commented 3 weeks ago

Library version used

uap 10.0 vesion 4.16.0.0

.NET version

Unity 2019.4.14f, .Net 4.X

Scenario

Other - please specify

Is this a new or an existing app?

The app is in production, I haven't upgraded MSAL, but started seeing this issue

Issue description and reproduction steps

In our unity UWP hololens application, once we enter the email address, the UI changes to a white screen and does not proceed to entering the password. When using device code, it presents the device code, but once authenticating on another device and approving, it no longer finishes logging in. Our android version off the application and the editor versions both still work using device code. Only the UWP version has stopped working.

Relevant code snippets

the code never gets past this line.
var authResult = await identityClientApp.AcquireTokenInteractive(grantScopes).ExecuteAsync();

Expected behavior

Once the email is entered, the password UI should show up.

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

4.16.0.0

Solution and workarounds

None found

bgavrilMS commented 2 weeks ago

This is typically a service error. I recommend you open a ticket via Azure.

localden commented 2 weeks ago

@XRMech to echo what @bgavrilMS is saying, this does not sound like an issue with MSAL - the library does not handle rendering of the authentication content. Can you confirm whether the issue is still reproducible?

bgavrilMS commented 1 week ago

Closing as we no longer support UWP and this would not qualify for a hotfix. Please use net8 in Unity

XRMech commented 4 days ago

I am still having the problem, and have a ticket in with Azure (2405160050004719). I am trying to see what other options I have before sinking 80 hours into migrating versions and working through the package dependency issues I saw when I tried importing the Microsoft.Graph package into the latest Unity Editor version.