active-directory-xamarin-native-v2
active-directory-xamarin-native-v2 copied to clipboard
Does not work in Xamarin iOS
I am trying to authenticate from an iPhone with the sample code and it does not work, the web view opens, I enter the data and I log in, the application returns to the initial window and does not run anything else, Native Cashes
Same here. Either I get a blank page, or an exception AADB2C90083: The request is is missing required parameter: grant_type.
I'm getting this message in the debuging windows: 2022-02-02 19:46:40.880 Xamarin.PreBuilt.iOS[1091:167909] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer
Everything's working fine in UWP or Android.
There are 2 projects in the repos. Which one are you using?
I was working with the 1-Basic project in Xamarin.Forms.
The problem seems to be the same as the one described here: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3088
I was able to improve things by using a custom .WithHttpClientFactory. The grant_type message is gone.
But I am now facing the hot restart issue mentioned here: https://developercommunity.visualstudio.com/t/Xamarin-Hot-Restart-doesnt-enable-keych/1649140