Is Azure AD interactive authentication supported on mobile? #3795
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? |
Beta Was this translation helpful? Give feedback.
-
|
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, |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions