久久久久久久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 應用程序在通過管理門戶更新之前無法運行)
主站蜘蛛池模板: 国产午夜精品久久久久 | 视频二区 | 欧美成人免费在线 | www.天天操 | 性国产丰满麻豆videosex | 国产7777| 免费高潮视频95在线观看网站 | 国产夜恋视频在线观看 | 欧美精三区欧美精三区 | 香蕉大人久久国产成人av | 99色播 | 国产乱码精品一区二区三区忘忧草 | 欧美精品一区二区三区在线 | 亚洲精品乱码久久久久久蜜桃 | 久久逼逼| 亚洲视频三区 | 黄色一级毛片 | 欧美久久精品一级c片 | 久久精品亚洲精品国产欧美 | 国产女人与拘做受免费视频 | 国产欧美一区二区三区免费 | 亚洲一区二区免费电影 | 日本免费视频 | 久久av资源网 | 爱综合| 久久精品av麻豆的观看方式 | 精品国产乱码久久久久久老虎 | 91社区在线观看高清 | 中文字幕国产第一页 | 久久中文字幕一区 | 日韩精品一区二区三区在线观看 | 亚洲精品一区中文字幕乱码 | 日韩一级一区 | 美美女高清毛片视频免费观看 | 日韩中文字幕视频在线 | 亚洲精品一 | 精品国产青草久久久久96 | 国内精品久久久久久 | 一级片在线观看 | 日本午夜一区 | 久产久精国产品 |