联合身份验证服务在处理 SAML 身份验证请求时遇到错误。
其他数据
异常详细信息:
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.IdentityServer.SR.GetString(String name, Object[] args)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolManager.ValidateSignatureRequirements(SamlMessage samlMessage)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolManager.Issue(HttpSamlRequestMessage httpSamlRequestMessage, SecurityTokenElement onBehalfOf, String sessionState, String relayState, String& newSamlSession, String& samlpAuthenticationProvider, Boolean isUrlTranslationNeeded, WrappedHttpListenerContext context, Boolean isKmsiRequested)
最佳答案
当我的信赖方没有签署请求但 ADFS 期望签署请求时,我收到此消息。这显然是 ADFS 中错误消息创建代码中的错误。
尝试在 Power Shell 中使用以下命令将其关闭:
Set-ADFSRelyingPartyTrust -TargetIdentifier your-sp-identifier -SignedSamlRequestsRequired $false
关于java - 登录 ADFS 时出现错误 - System.FormatException : Index (zero based) must be greater than or equal to zero and less than the size,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47308016/