久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 ADAL 檢測到的 multiple_matching_tokens_detected

multiple_matching_tokens_detected with ADAL(使用 ADAL 檢測到的 multiple_matching_tokens_detected)
本文介紹了使用 ADAL 檢測到的 multiple_matching_tokens_detected的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我有一項服務使用我們使用 ADAL 檢索的 Azure 訪問令牌.我們有數百個客戶,但由于某種原因,當我們嘗試為他們檢索 AuthenticationResult 時,其中有兩個偶爾會生成此錯誤:

I have a service that uses Azure access tokens that we retrieve using ADAL. We have several hundred customers, but for some reason there are two of them that sporadically generate this error when we try to retrieve an AuthenticationResult for them:

multiple_matching_tokens_detected:緩存包含多個令牌滿足要求.再次調用 AcquireToken 提供更多信息要求(例如 UserId).

multiple_matching_tokens_detected: The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements (e.g. UserId).

我不知道為什么數百人中只有這兩個人有這個問題,而且在網上找不到太多關于它的信息.我們獲取令牌的代碼如下所示(簡化):

I have no idea why only these two folks out of hundreds have this issue and really can't find much about it on the net. Our code to acquire a token looks like this (simplified):

AuthenticationContext authContext = new AuthenticationContext(authority, new MyCustomTokenCache());
ClientCredential credential = new ClientCredential(myClientId, myPassword);
authContext.AcquireTokenSilent(resourceUri, credential, UserIdentifier.AnyUser); 

為什么會出現此錯誤?解決此錯誤的建議"解決方案是什么?我一直傾向于嘗試通過獲取這樣的令牌來修復它,但我真的很想知道錯誤的真正含義:

Why does this error occur and what is the "suggested" solution to resolve it? I have been leaning towards trying to fix it by acquiring a token like so but really would like to know what the error really is all about:

authContext.AcquireTokenSilent(mr.ResourceUri, credential, new UserIdentifier("usersUPN@foo.com", UserIdentifierType.UniqueId));

推薦答案

如果這仍然相關,我有類似的問題 multiple_matching_tokens_detected 錯誤,我發現了這個:

If this is still relevant, I had similar problem with multiple_matching_tokens_detected error and I found this:

https://developercommunity.visualstudio.com/content/problem/17315/cant-add-new-account-with-vsts-online-failed-to-re.html

正如 Alex 在回答中提到的那樣(您需要在客戶端機器上執行此操作):

As Alex at the answer there mentioned (You need to do this on the client machine) :

  1. 關閉所有 Visual Studio 實例(在你的情況下 - 我想關閉所有客戶端應用程序).
  2. 刪除 %LOCALAPPDATA%.IdentityService.
  3. 享受吧.

像魔術一樣為我工作

這篇關于使用 ADAL 檢測到的 multiple_matching_tokens_detected的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
Getting access token using email address and app password from oauth2/token(使用電子郵件地址和應用程序密碼從 oauth2/token 獲取訪問令牌)
New Azure AD application doesn#39;t work until updated through management portal(新的 Azure AD 應用程序在通過管理門戶更新之前無法運行)
主站蜘蛛池模板: 99精品视频免费在线观看 | 日韩成人免费 | 日韩精品在线观看一区二区三区 | 成人福利视频 | 成人h电影在线观看 | 国产高清视频 | 狠狠干av | 一区二区三区四区国产 | 欧美日韩在线观看一区二区三区 | 欧美日韩高清在线一区 | 国产精品美女久久久久久不卡 | 六月色婷 | 午夜在线影院 | 亚洲成网 | 91精品国产一区二区三区 | 日韩一区二区三区在线观看 | 久久视频一区 | 免费一区在线观看 | 91久久国产综合久久 | 欧美日韩综合一区 | 亚洲综合色婷婷 | 国产成人在线视频免费观看 | 九色视频网站 | 久久最新 | 久久美女视频 | 国产高清在线精品 | www久| 日本亚洲欧美 | 91新视频 | 麻豆av一区二区三区久久 | 91精品一区二区 | 天堂一区二区三区四区 | 成人精品一区二区 | 欧美亚洲国产成人 | 国产999精品久久久 精品三级在线观看 | 高清欧美性猛交 | 亚洲欧洲在线视频 | 亚洲欧美在线视频 | 午夜小电影 | www.日韩| 午夜影院在线观看 |