-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] MSAL not working with MAUI in iOS #3093
Comments
We are not supporting MAUI yet. Marked as Bug. So will keep on the radar. |
Any ETA for official support? |
@chrfin - what is the target framework that you used ? This seems like an HttpClient bug. We inject an NsUrl based HttpClient (code here) as per Xamarin recommendations. Would it be possible to try to use a vanilla HttpClient and see if it works? You can do it via @SameerK-MSFT, @trwalke @pmaytak - I thought we tested Android and iOS with MAUI and it worked. |
@bgavrilMS
|
@bgavrilMS I just updated to MAUI preview 12 and now it does not compile anymore, as it does not find `AuthenticationContinuationHelper`. I guess this is because MAUI does not support the Xamarin.iOS TFMs anymore (see here) and uses another more common one, which does not have this class. |
@bgavrilMS Any update on this? v4.41 still has no net6.0-ios TFM... 😢 |
No, we are not working on this right now. We are waiting for a the net6.0-ios breaking changes to stabilize first. We will pick this up in a few weeks. Our goal is to get all of this working by May. That said, please feel free to contribute to MSAL if you understand how to fix it, and we will prioritize reviewing the PR. |
Thank you for the update. I will finish the Android version of the app first to get something out to testers and then look into iOS again and see if I'm able to contribute something 😊. |
Closing as duplicate of #3127 |
Logs and network traces
https://pastebin.com/B7ux36cs (anonymized)
and then
https://pastebin.com/1tJTqDWE
Which version of MSAL.NET are you using?
Microsoft.Identity.Client 4.39.0
Platform
.NET MAUI preview 11 running on iOS
What authentication flow has the issue?
Is this a new or existing app?
This is a new app, but the same code does work in Xamarin.Forms/.iOS.
Repro
Create a .NET MAUI app from the default template, add MSAL and try to log in with AAD B2C.
I use the following code to bootstrap MSAL:
and
Expected behavior
To get a
AuthenticationResult
like on Windows/Android.Actual behavior
Browser is closed and the debug log logs the attached exception and no user is logged in.
Additional context / logs / screenshots / links to code
The text was updated successfully, but these errors were encountered: