Saml 2.0 SAML 2.0无效的请求

Saml 2.0 SAML 2.0无效的请求,saml-2.0,Saml 2.0,我正在尝试向公共IDP SSO圈发送SAML请求。我导入了它的元数据并尝试对此URL进行身份验证: https://idp.ssocircle.com/sso/idpssoinit?metaAlias=%2Fpublicidp&spEntityID=sp.bogdan.test 但当我从我的应用程序发送此请求时,会显示以下错误: 发生错误原因:SAML请求无效 这是我的请求: 这是我写的请求中的SAML消息: <samlp:AuthnRequest xmlns:samlp="u

我正在尝试向公共IDP SSO圈发送SAML请求。我导入了它的元数据并尝试对此URL进行身份验证:

https://idp.ssocircle.com/sso/idpssoinit?metaAlias=%2Fpublicidp&spEntityID=sp.bogdan.test
但当我从我的应用程序发送此请求时,会显示以下错误:

发生错误原因:SAML请求无效

这是我的请求:

这是我写的请求中的SAML消息:

<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_3b7f937b-073d-4289-b2d1-35e786ebb524" Version="2.0" IssueInstant="2017-04-03T12:42:06Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AssertionConsumerServiceURL="http://localhost:61344/Account/AssertionConsumerService">
    <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://idp.ssocircle.com</saml:Issuer>
    <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" AllowCreate="true"/>
    <samlp:RequestedAuthnContext Comparison="exact">
        <saml:AuthnContextClassRef xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
            urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
        </saml:AuthnContextClassRef>
    </samlp:RequestedAuthnContext>
</samlp:AuthnRequest>

https://idp.ssocircle.com
urn:oasis:name:tc:SAML:2.0:ac:classes:PasswordProtectedTransport

在您的示例中,您是作为AuthnRequest的颁发者发送的。请求的发出者不是IDP,而是SP。在您的情况下,它应该是sp.bogdan.test

它可能很简单,没有注册正确的断言使用者URL(
http://localhost:61344/Account/AssertionConsumerService
)和SSO循环。但是,您确实应该查看SSOCircle调试日志以了解更多信息