You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is Azure AD interactive authentication supported on mobile? #2061
Running on .NET 6 on an iOS system and attempting to use interactive Azure authentication seems like it can never work.
The browser is launched and it's possible to authenticate, but then attempts a redirect to localhost (which can never succeed). The only way out is to cancel the authentication, making the connection fail.
On NET Core, the redirect URL is always set to localhost:
However, this cannot work on mobile (as per the underlying Azure.Identity / MSAL implementations). Is this supported or supposed to work somehow? It's not clear.
Activity
Kaur-Parminder commentedon Jun 20, 2023
@thenextman Sorry for delayed response. I believe MSAL suppose to work as per documentation here https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Acquiring-tokens-interactively.
and using localhost is prbably expected:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-uses-web-browser#at-a-glance
Sqlclient is doing same:
SqlClient/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs
Line 393 in 2b31810
I had issues while trying to Repro it with browser pop-up. Can you provide simple App that reproduces it?
maxbrousseau commentedon Jun 22, 2023
Hello @Kaur-Parminder ,
For a test app to reproduce the issue, you can check the project that I have linked here: #2062 (comment)
Thank you,