簡體   English   中英

Ios Msal 無法訪問鑰匙串組錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM