According to the documentation, it requires to enable keychain groups. We also need to add this capability on the Apple portal so a membership is needed.
And after setting this up, we could still deploy it on a real device or simulator.
Using Azure AD B2C in Xamarin.iOS with simulator - Problem with keychain (the Team ID is null)
I'm developing a Xamarin.Forms app, and setting up Azure AD B2C for auth. I'm following the official tutorial.
Everything works flawlessly for Andorid, but I'm facing an issue with th iOS project.
I've setup everything mentioned in the tutorial but that is not enough. In this post, it describes how you should configure the iOS Bundle Signing to reference as custom entitlement Entitlements.plist. Otherwise you get this error:
> Microsoft.Identity.Client.MsalClientException: The application cannot access the iOS keychain for the application publisher (the TeamId is null). This is needed to enable Single Sign On between applications of the same publisher. This is an iOS configuration issue. See https://aka.ms/msal-net-enable-keychain-access for more details on enabling keychain access.
Well, if you do that using the Simulator, it doesn't work since apparently, you cannot set in iOS Bundle Signing configuration any custom Entitlement when using the simulator (commented here).
Does this mean that I cannot test Azure AD B2C in the iOS simulator?
Thanks!
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
1 answer
Sort by: Most helpful
-
LandLu-MSFT 21 Reputation points
2020-11-25T06:51:25.213+00:00