[英]Ios Msal Cannot access keychain group error
我正在开发 Xamarin 应用程序,该应用程序使用 MSAL 库对受 Azure AD 保护的 Web API 进行身份验证。 当我在模拟器中运行我的代码时,出现此错误。
应用程序无法访问应用程序发布者的 iOS 钥匙串(TeamId 为空)
_pca = PublicClientApplicationBuilder.Create(ClientID)
.WithIosKeychainSecurityGroup("com.microsoft.adalcache")
.WithRedirectUri(RedirectUri)
.WithAuthority($"https://login.microsoftonline.com/{TenantId}")
.Build();
我已经将 com.microsoft.adalcache 添加到我的 Entitlement.plist 中,但在调试时仍然出现错误。
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
</array>
</dict>
我能够通过在自定义权利中选择我的 Entitlements.pslist 来使其工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.