Reputation: 101
I have my application registered with Azure AD and have got the required details to perform application authentication with Azure AD.
But when i run
new AuthenticationContext(UserContext.AzureCommonAuthority);
this line it throws an exception-
"The type initializer for 'Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache' threw an exception." with error code
"cannot_access_publisher_keychain".
Working with Xamarin.iOS project.
Thanks in advance!
Upvotes: 4
Views: 507
Reputation: 21
I have the same problem , im working on it if i found the solution ill post it.
EDIT : I was testing on the iphone simulator , i dont get any error on a real device :/
Upvotes: 2