Repository navigation
Is Azure AD interactive authentication supported on mobile? #3795
Unanswered
thenextman
asked this question in
Q&A
Replies: 2 comments
|
@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. I had issues while trying to Repro it with browser pop-up. Can you provide simple App that reproduces it? |
0 replies
|
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, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:
https://github.com/dotnet/SqlClient/blame/2b31810ce69b88d707450e2059ee8fbde63f774f/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs#L200
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.
All reactions