用户凭证需要获取访问令牌.请调用非静默的 acquireTokenWithResource 方法 [英] The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods
问题描述
我在我的应用程序中使用 ADALiOS 进行身份验证.当用户登录应用程序时,我收到以下错误:
I am using ADALiOS into my app for authentication. When user signIn into the app I am getting following error:
参数‘cacheItem.scopes’无效.值:(null)."和
"需要用户凭证获取访问令牌.请调用非静默的acquireTokenWithResource方法"
任何帮助将不胜感激.谢谢
Any help would be appreciated. Thanks
推荐答案
如果禁用钥匙串共享,可能会发生这种情况.一种可能的解决方案是:
This might happen if keychain sharing is disabled. One of the probable solution is:
解决方案:
第 1 步:Xcode > Target > Capabilities > Keychain Sharing -> 切换到 ON
Step 1: Xcode > Target > Capabilities > Keychain Sharing -> Switch to ON
第 2 步:将 com.microsoft.adalcache 添加到 Keychain Group.
Step 2: add com.microsoft.adalcache into Keychain Group.
希望这会有所帮助.
这篇关于用户凭证需要获取访问令牌.请调用非静默的 acquireTokenWithResource 方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!