【发布时间】: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)
知道导致此错误的原因是什么吗?
【问题讨论】:
-
你有两次相同属性的模型吗?
-
以下异常发生在您的模块作为相同属性
An item with the same key has already been added.