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

使用 ADAL 檢測(cè)到的 multiple_matching_tokens_detected

multiple_matching_tokens_detected with ADAL(使用 ADAL 檢測(cè)到的 multiple_matching_tokens_detected)
本文介紹了使用 ADAL 檢測(cè)到的 multiple_matching_tokens_detected的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

我有一項(xiàng)服務(wù)使用我們使用 ADAL 檢索的 Azure 訪問(wèn)令牌.我們有數(shù)百個(gè)客戶,但由于某種原因,當(dāng)我們嘗試為他們檢索 AuthenticationResult 時(shí),其中有兩個(gè)偶爾會(huì)生成此錯(cuò)誤:

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:緩存包含多個(gè)令牌滿足要求.再次調(diào)用 AcquireToken 提供更多信息要求(例如 UserId).

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

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

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); 

為什么會(huì)出現(xiàn)此錯(cuò)誤?解決此錯(cuò)誤的建議"解決方案是什么?我一直傾向于嘗試通過(guò)獲取這樣的令牌來(lái)修復(fù)它,但我真的很想知道錯(cuò)誤的真正含義:

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));

推薦答案

如果這仍然相關(guān),我有類似的問(wèn)題 multiple_matching_tokens_detected 錯(cuò)誤,我發(fā)現(xiàn)了這個(gè):

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 在回答中提到的那樣(您需要在客戶端機(jī)器上執(zhí)行此操作):

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

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

像魔術(shù)一樣為我工作

這篇關(guān)于使用 ADAL 檢測(cè)到的 multiple_matching_tokens_detected的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進(jìn)行身份驗(yàn)證并跨請(qǐng)求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權(quán)不起作用)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護(hù)進(jìn)程或服務(wù)器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問(wèn)令牌和刷新令牌) - IT屋-程序員軟件開(kāi)發(fā)技
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調(diào)用時(shí) Azure KeyVault Active Directory AcquireTokenAsync 超時(shí))
Getting access token using email address and app password from oauth2/token(使用電子郵件地址和應(yīng)用程序密碼從 oauth2/token 獲取訪問(wèn)令牌)
New Azure AD application doesn#39;t work until updated through management portal(新的 Azure AD 應(yīng)用程序在通過(guò)管理門(mén)戶更新之前無(wú)法運(yùn)行)
主站蜘蛛池模板: 久久久久久99精品久久久 | 日本黄色视 | 在线色综合 | 一区二区色 | 一区二区三区不卡视频 | 国产在线观看精品 | 综合久久久久 | 国产亚洲精品码 | 日韩亚洲一区二区 | a在线观看 | 亚洲影音 | 亚洲第一色 | 日本精品久久 | 精品久久久久久久久久久久久久久久 | 教室脔到她哭h粗话h好爽视频 | 欧美色图一区二区三区 | 狠狠狠干 | 能看的av网站 | 国产精品高潮呻吟久久 | 亚洲黄色片 | 国产a毛片 | 日本一级大毛片a一 | 日本在线免费观看 | 久操伊人| 国产精品羞羞答答 | 久久亚洲欧美 | 精品国产一区二 | 草草在线视频 | 午夜精品久久久久久久99 | 午夜视频在线看 | 亚洲美女爱爱 | 日韩午夜激情 | 日韩精品视频免费播放 | 青青久草| 免费黄色片视频 | 国产三级在线看 | 在线播放a| 超碰97免费| 天天舔天天操 | 国产日韩欧美亚洲 | 黄视频网站在线观看 |