Advertisement
timlegge

xml-sig-unsigned-dsa-multiple-1.xml

Dec 8th, 2020 (edited)
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" ID="identifier_1" InResponseTo="identifier_1" Version="2.0" IssueInstant="2004-12-05T09:22:05Z" Destination="https://sp.example.com/SAML2/SSO/POST">
  3.   <saml:Issuer>https://idp.example.org/SAML2</saml:Issuer>
  4.   <samlp:Status>
  5.     <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
  6.   </samlp:Status>
  7.   <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" ID="identifier_2" Version="2.0" IssueInstant="2004-12-05T09:22:05Z">
  8.     <saml:Issuer>https://idp.example.org/SAML2</saml:Issuer>
  9.     <!-- a POSTed assertion MUST be signed -->
  10.     <saml:Subject>
  11.       <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient">
  12. 3f7b3dcf-1674-4ecd-92c8-1544f346baf8
  13. </saml:NameID>
  14.       <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
  15.         <saml:SubjectConfirmationData InResponseTo="identifier_1" Recipient="https://sp.example.com/SAML2/SSO/POST" NotOnOrAfter="2004-12-05T09:27:05Z"/>
  16.       </saml:SubjectConfirmation>
  17.     </saml:Subject>
  18.     <saml:Conditions NotBefore="2004-12-05T09:17:05Z" NotOnOrAfter="2004-12-05T09:27:05Z">
  19.       <saml:AudienceRestriction>
  20.         <saml:Audience>https://sp.example.com/SAML2</saml:Audience>
  21.       </saml:AudienceRestriction>
  22.     </saml:Conditions>
  23.     <saml:AuthnStatement AuthnInstant="2004-12-05T09:22:00Z" SessionIndex="identifier_3">
  24.       <saml:AuthnContext>
  25.         <saml:AuthnContextClassRef>
  26. urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
  27. </saml:AuthnContextClassRef>
  28.       </saml:AuthnContext>
  29.     </saml:AuthnStatement>
  30. <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
  31.             <dsig:SignedInfo xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
  32.                 <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
  33.                 <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
  34.                 <dsig:Reference URI="#identifier_2">
  35.                         <dsig:Transforms>
  36.                             <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
  37.                             <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
  38.                         </dsig:Transforms>
  39.                         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
  40.                         <dsig:DigestValue></dsig:DigestValue>
  41.                     </dsig:Reference>
  42.             </dsig:SignedInfo>
  43.             <dsig:SignatureValue></dsig:SignatureValue>
  44.             <dsig:KeyInfo>
  45.                              <dsig:KeyValue>
  46. <dsig:DSAKeyValue>
  47. <dsig:P>
  48. </dsig:P>
  49. <dsig:Q>
  50. </dsig:Q>
  51. <dsig:G>
  52. </dsig:G>
  53. <dsig:Y>
  54. </dsig:Y>
  55. </dsig:DSAKeyValue>
  56. </dsig:KeyValue>
  57.                             </dsig:KeyInfo>
  58.         </dsig:Signature></saml:Assertion>
  59.         </samlp:Response>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement