active-directory-xamarin-native-v2 icon indicating copy to clipboard operation
active-directory-xamarin-native-v2 copied to clipboard

Does not work in Xamarin iOS

Open Andex09 opened this issue 3 years ago • 3 comments

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

Andex09 avatar Dec 06 '21 01:12 Andex09

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.

ljadov avatar Feb 03 '22 00:02 ljadov

There are 2 projects in the repos. Which one are you using?

SameerK-MSFT avatar Feb 08 '22 16:02 SameerK-MSFT

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

ljadov avatar Feb 09 '22 02:02 ljadov