【问题标题】:Signout Request Causing Errors注销请求导致错误
【发布时间】:2020-05-14 06:18:36
【问题描述】:

我将 ADFS 2016 用于 OAuth2/OIDC。在某些情况下,我会在事件查看器中看到以下错误 (551):

An error occurred during processing of an OAuth logout request. 
Path: /adfs/oauth2/logout?post_logout_redirect_uri=*******&id_token_hint=*****
Additional Data 

Exception details: 
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthSignoutProtocolHandler.GetLogoutUrisFromSession(OAuthSessionInfo sessionInfo, String issuer)
   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthSignoutProtocolHandler.ProcessSignout(ProtocolContext context, List`1 iFrameSignoutUris, Boolean isPartial)

知道导致此错误的原因是什么吗?

【问题讨论】:

标签: owin adal adfs4.0


【解决方案1】:

基于这两个问题,这个事件似乎主要与不正确的被动请求有关

https://answers.microsoft.com/en-us/msoffice/forum/all/issues-with-domain-owa/4877a550-1d25-4669-bee1-59d9b0993826

还有另一种情况可能与未使用正确的协议有关。

https://stackoverflow.com/a/37395400/2690525

我会审核您的请求,以确保他们不会触发这些事件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-25
    • 2020-04-22
    • 1970-01-01
    • 2021-12-23
    • 2021-03-31
    相关资源
    最近更新 更多