我正在開發使用 MSAL 庫對受 Azure AD 保護的 Web API 進行身份驗證的 Xamarin 應用程式。當我在模擬器中運行我的代碼時,我得到了這個錯誤。
應用程式無法訪問應用程式發布者的 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>
uj5u.com熱心網友回復:
我可以通過在自定義權利中選擇我的 Entitlements.pslist 來使其作業
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/470490.html
