SAML响应问题 - 未找到断言的发布者或多个

时间:2017-06-29 11:49:00

标签: asp.net single-sign-on saml identity saml-2.0

我遇到了从我的自定义IdP生成正确响应的问题。验证生成的响应时,我收到以下错误:

断言的发布者未找到或多个。在此响应中找不到有效的SubjectConfirmation找到无效的签名元素。 SAML响应被拒绝

<Response xmlns="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="_0a1fdd35-c51f-4516-89b8-c10a7a2be510" Version="2.0" IssueInstant="2017-06-28T15:48:18.7007629Z" Destination="https://crnm.lessonly.com/auth/saml/callback">
 <saml:Issuer>https://crnmimis.etechhosting.ca/crnm_test/IDP/idplauncher.aspx</saml:Issuer>
 <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
  <SignedInfo>
     <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
     <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
     <Reference URI="#_327c4e68-b237-4fc0-8e10-7f3a1972ddd9">
        <Transforms>
           <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <DigestValue>AoAp4vUVc94YLEaOVfFT4kpLGvU=</DigestValue>
     </Reference>
  </SignedInfo>
  <SignatureValue>e0RIeTieUbpfbIW4l3c4BQEPhoC1OvM8ghwF7R+Mpxa/1MedKxgL6HGFIbNbrELM9ouzntbRimphpxJOInRGOeMxhN2S369PlRhGr/52Pxs1HpRXOexqpjTu6DufdPmrLes+v2qScUh7/B+bAPvRi5tkw8yX2MviGPo2SQFGWSK9FZdn5SvpREnffAcj+uC8CJyFgaEk6Y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F4D3TqxUpsTcJpt5eG+2mFheAyG6A+k719ShVgV6BtW1A1U9KJMD7UeWbejBGKrAC3AkCQyIaBjw+64sed8NN+jRPaEJxJ/APpHEBRiXQQOtnTKoRoz9ZvRvJTZ0N65/s+Cs7c2Y56PonWjlY2Kt4W5tp4VZTCmwnGmvMApyrWr/IZ9GgJsSz1EmbfVGKjKLHM29xXxnBLmkfGdc1yU4HXZYVFh00Ds6cgA==</X509Certificate>
     </X509Data>
  </KeyInfo>
 </Signature>
<Status>
  <StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</Status>
<saml:Assertion Version="2.0" ID="_327c4e68-b237-4fc0-8e10-7f3a1972ddd9" IssueInstant="2017-06-28T15:48:18.7007629Z">
  <saml:Issuer>https://crnmimis.etechhosting.ca/crnm_test/IDP/idplauncher.aspx</saml:Issuer>
  <saml:Subject>
     <saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">amilev1@visualantidote.com</saml:NameID>
     <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
        <saml:SubjectConfirmationData Recipient="https://crnm.lessonly.com/auth/saml/callback" NotOnOrAfter="2017-06-28T15:53:18.7007629Z" />
     </saml:SubjectConfirmation>
  </saml:Subject>
  <saml:Conditions NotBefore="2017-06-28T15:48:18.7007629Z" NotOnOrAfter="2017-06-28T15:53:18.7007629Z">
     <saml:AudienceRestriction>
        <saml:Audience>https://crnmimis.etechhosting.ca/crnm_test/IDP/idplauncher.aspx</saml:Audience>
     </saml:AudienceRestriction>
  </saml:Conditions>
  <saml:AuthnStatement AuthnInstant="2017-06-28T15:48:18.7007629Z" SessionIndex="_327c4e68-b237-4fc0-8e10-7f3a1972ddd9">
     <saml:AuthnContext>
        <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml:AuthnContextClassRef>
     </saml:AuthnContext>
  </saml:AuthnStatement>
  <saml:AttributeStatement>
     <saml:Attribute Name="UserID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
        <saml:AttributeValue xsi:type="xsd:string">125481</saml:AttributeValue>
     </saml:Attribute>
     <saml:Attribute Name="email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
        <saml:AttributeValue xsi:type="xsd:string">amilev1@visualantidote.com</saml:AttributeValue>
     </saml:Attribute>
     <saml:Attribute Name="first_name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
        <saml:AttributeValue xsi:type="xsd:string">Angel1</saml:AttributeValue>
     </saml:Attribute>
     <saml:Attribute Name="last_name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
        <saml:AttributeValue xsi:type="xsd:string">Milev1</saml:AttributeValue>
     </saml:Attribute>
     <saml:Attribute Name="name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
        <saml:AttributeValue xsi:type="xsd:string">Angel1 Milev1</saml:AttributeValue>
     </saml:Attribute>
  </saml:AttributeStatement>
 </saml:Assertion>
</Response>

0 个答案:

没有答案
相关问题