Snippets

Updated by Ireneusz Rybicki

File LogoutResponse.xml Added

  • Ignore whitespace
  • Hide word diff
+<saml2p:LogoutResponse xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
+                       xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+                       xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
+                       xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
+                       Destination="http://localhost:8080/pz-opensamlbook/saml/logout.html"
+                       ID="ID-cd51e5de-09d2-4e50-b762-011a90823423"
+                       InResponseTo="_d058ccc8252ac9e3a72266ae3c1854bf"
+                       IssueInstant="2017-10-16T12:27:21.562Z"
+                       Version="2.0"
+>
+    <saml2:Issuer>pz.gov.pl</saml2:Issuer>
+    <ds:Signature>
+        <ds:SignedInfo>
+            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
+            <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+            <ds:Reference URI="">
+                <ds:Transforms>
+                    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
+                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
+                        <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml2 saml2p xenc"/>
+                    </ds:Transform>
+                </ds:Transforms>
+                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
+                <ds:DigestValue>CiLqdk+7EUthc324SYAweswpWg0=</ds:DigestValue>
+            </ds:Reference>
+        </ds:SignedInfo>
+        <ds:SignatureValue>AbY5cdA0cCoidp4BlBvvWbvqpWuMjqM(...)</ds:SignatureValue>
+        <ds:KeyInfo>
+            <ds:X509Data>
+                <ds:X509Certificate>MIIE4DCCA8igAwIBAgIDIBe3M(...)</ds:X509Certificate>
+            </ds:X509Data>
+        </ds:KeyInfo>
+    </ds:Signature>
+    <saml2p:Status>
+        <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
+    </saml2p:Status>
+</saml2p:LogoutResponse>
+
Updated by Ireneusz Rybicki

File LogoutRequest.xml Added

  • Ignore whitespace
  • Hide word diff
+<saml2p:LogoutRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
+                      Destination="https://int.pz.gov.pl/dt/SingleLogoutService"
+                      ID="_d058ccc8252ac9e3a72266ae3c1854bf"
+                      IssueInstant="2017-10-16T12:27:20.886Z"
+                      Version="2.0"
+                      >
+    <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">TestSP</saml2:Issuer>
+    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+        <ds:SignedInfo>
+            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
+            <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+            <ds:Reference URI="#_d058ccc8252ac9e3a72266ae3c1854bf">
+                <ds:Transforms>
+                    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
+                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
+                </ds:Transforms>
+                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
+                <ds:DigestValue>1Wdon+synU0KgReTjFH9jtQLIts=</ds:DigestValue>
+            </ds:Reference>
+        </ds:SignedInfo>
+        <ds:SignatureValue>I30o3PBzdLBSaoqpHbXfnLqxt7(...)</ds:SignatureValue>
+        <ds:KeyInfo>
+            <ds:X509Data>
+                <ds:X509Certificate>MIIDiDCCAnCgAwIBAgICAOwwDQY(...)</ds:X509Certificate>
+            </ds:X509Data>
+        </ds:KeyInfo>
+    </ds:Signature>
+    <saml2:NameID xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">jkowalski</saml2:NameID>
+</saml2p:LogoutRequest>
Updated by Ireneusz Rybicki

File ArtifactResponse.xml Modified

  • Ignore whitespace
  • Hide word diff
             <saml2:Subject>
                 <saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">jkowalski</saml2:NameID>
                 <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
-                    <saml2:SubjectConfirmationData InResponseTo="_feb2a14a91a824779f99ef4cf5ab1290" NotOnOrAfter="2017-07-19T13:48:02.266Z" Recipient="http://rybirek.pl/udt/saml/SSO"/>
+                    <saml2:SubjectConfirmationData InResponseTo="_feb2a14a91a824779f99ef4cf5ab1290" NotOnOrAfter="2017-07-19T13:48:02.266Z" Recipient="http://localhost:8080/pz-opensamlbook/saml/SSO"/>
                 </saml2:SubjectConfirmation>
             </saml2:Subject>
             <saml2:Conditions NotBefore="2017-07-19T12:58:02.266Z" NotOnOrAfter="2017-07-19T13:48:02.266Z">
Updated by Ireneusz Rybicki

File ArtifactResolve.xml Modified

  • Ignore whitespace
  • Hide word diff
 <?xml version="1.0" encoding="UTF-8"?>
-<saml2p:ArtifactResolve xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
-                        Destination="https://int.pz.gov.pl/dt-services/idpArtifactResolutionService"
-                        ID="_231ea49c7d2a9116b34efea760c72381" IssueInstant="2017-07-19T07:33:33.743Z" Version="2.0">
+<saml2p:ArtifactResolve xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" ID="_9054af5a57538bb475cc46e7ce1116ec"
+                        IssueInstant="2017-07-19T12:58:01.778Z" Version="2.0">
     <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">TestSP</saml2:Issuer>
     <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
         <ds:SignedInfo>
             <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
             <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
-            <ds:Reference URI="#_231ea49c7d2a9116b34efea760c72381">
+            <ds:Reference URI="#_9054af5a57538bb475cc46e7ce1116ec">
                 <ds:Transforms>
                     <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                 </ds:Transforms>
                 <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-                <ds:DigestValue>rP1RFZ50GGVaPbwUHRcLQCvn5Uc=</ds:DigestValue>
+                <ds:DigestValue>rZkDwYYa5J5Fsp90SIQYFZVNv8E=</ds:DigestValue>
             </ds:Reference>
         </ds:SignedInfo>
-        <ds:SignatureValue>cAgf5WNndvNOXFXd7jaP(...)</ds:SignatureValue>
+        <ds:SignatureValue>Xp/HNkvwXMJTsFEblUX/ulSbUR(...)</ds:SignatureValue>
         <ds:KeyInfo>
             <ds:X509Data>
-                <ds:X509Certificate>MIIDiDCCAnCgAwIBAgIC(...)
-                </ds:X509Certificate>
+                <ds:X509Certificate>MIIDiDCCAnCgAwIBAgICA(...)</ds:X509Certificate>
             </ds:X509Data>
         </ds:KeyInfo>
     </ds:Signature>
-    <saml2p:Artifact>AAQAAKFbFR94fxqmioAqjJUwfyUtjJbvW8moZzk35OAWvNZ3kQvs+fLIRE0=</saml2p:Artifact>
+    <saml2p:Artifact>AAQAAKFbFR94fxqmioAqjJUwfyUtjJbvCwEN0VZw99cC7X3D1ACWZKfkxa4=</saml2p:Artifact>
 </saml2p:ArtifactResolve>

File ArtifactResponse.xml Added

  • Ignore whitespace
  • Hide word diff
+<?xml version="1.0" encoding="UTF-8"?>
+<saml2p:ArtifactResponse xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+                         xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
+                         ID="ID-db5804ea-075e-400e-af67-7859f8b327ba" InResponseTo="_9054af5a57538bb475cc46e7ce1116ec" 
+                         IssueInstant="2017-07-19T12:58:02.774Z" Version="2.0">
+    <saml2:Issuer>pz.gov.pl</saml2:Issuer>
+    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+        <ds:SignedInfo>
+            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+            <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+            <ds:Reference URI="#ID-db5804ea-075e-400e-af67-7859f8b327ba">
+                <ds:Transforms>
+                    <ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
+                        <ds:XPath xmlns:ds="http://www.w3.org/2000/09/xmldsig#">not(ancestor-or-self::ds:Signature)</ds:XPath>
+                    </ds:Transform>
+                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
+                        <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml2 saml2p xenc"/>
+                    </ds:Transform>
+                </ds:Transforms>
+                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+                <ds:DigestValue>QJwg/+r69RQGftyG1mUfYHtHQt8=</ds:DigestValue>
+            </ds:Reference>
+        </ds:SignedInfo>
+        <ds:SignatureValue>r0dIZrY60WiWYOmHYK5SSOz(...)
+        </ds:SignatureValue>
+        <ds:KeyInfo>
+            <ds:X509Data>
+                <ds:X509Certificate>MIIGATCCA+mgAwIBAgICIAEwDQYJKoZIh(...)
+                </ds:X509Certificate>
+            </ds:X509Data>
+        </ds:KeyInfo>
+    </ds:Signature>
+    <saml2p:Status>
+        <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
+    </saml2p:Status>
+    <saml2p:Response ID="ID-4006a6a7-1426-4d26-9cc9-c49ca7ccf744" InResponseTo="_feb2a14a91a824779f99ef4cf5ab1290" IssueInstant="2017-07-19T12:58:02.774Z" Version="2.0">
+        <saml2:Issuer>pz.gov.pl</saml2:Issuer>
+        <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+            <ds:SignedInfo>
+                <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+                <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+                <ds:Reference URI="#ID-4006a6a7-1426-4d26-9cc9-c49ca7ccf744">
+                    <ds:Transforms>
+                        <ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
+                            <ds:XPath xmlns:ds="http://www.w3.org/2000/09/xmldsig#">not(ancestor-or-self::ds:Signature)</ds:XPath>
+                        </ds:Transform>
+                        <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
+                            <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml2 saml2p xenc"/>
+                        </ds:Transform>
+                    </ds:Transforms>
+                    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+                    <ds:DigestValue>JYCMbqWvytjDyv+ydYwR6e31CYY=</ds:DigestValue>
+                </ds:Reference>
+            </ds:SignedInfo>
+            <ds:SignatureValue>zStxRD+wt2LkfnP(...)
+            </ds:SignatureValue>
+            <ds:KeyInfo>
+                <ds:X509Data>
+                    <ds:X509Certificate>MIIGATCCA+mgAwIBAgICIAE(...)</ds:X509Certificate>
+                </ds:X509Data>
+            </ds:KeyInfo>
+        </ds:Signature>
+        <saml2p:Status>
+            <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
+        </saml2p:Status>
+        <saml2:Assertion ID="_ID-4720fe6c-a074-41b4-bdd3-4b2ea8b5e262" IssueInstant="2017-07-19T12:58:02.774Z" Version="2.0">
+            <saml2:Issuer>pz.gov.pl</saml2:Issuer>
+            <saml2:Subject>
+                <saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">jkowalski</saml2:NameID>
+                <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
+                    <saml2:SubjectConfirmationData InResponseTo="_feb2a14a91a824779f99ef4cf5ab1290" NotOnOrAfter="2017-07-19T13:48:02.266Z" Recipient="http://rybirek.pl/udt/saml/SSO"/>
+                </saml2:SubjectConfirmation>
+            </saml2:Subject>
+            <saml2:Conditions NotBefore="2017-07-19T12:58:02.266Z" NotOnOrAfter="2017-07-19T13:48:02.266Z">
+            <saml2:AudienceRestriction>
+                    <saml2:Audience>TestSP</saml2:Audience>
+                </saml2:AudienceRestriction>
+            </saml2:Conditions>
+            <saml2:AuthnStatement AuthnInstant="2017-07-19T12:58:02.774Z" SessionIndex="_ID-4720fe6c-a074-41b4-bdd3-4b2ea8b5e262">
+                <saml2:AuthnContext>
+                    <saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml2:AuthnContextClassRef>
+                </saml2:AuthnContext>
+            </saml2:AuthnStatement>
+        </saml2:Assertion>
+    </saml2p:Response>
+</saml2p:ArtifactResponse>

File AuthnRequest.xml Modified

  • Ignore whitespace
  • Hide word diff
 <?xml version="1.0" encoding="UTF-8"?>
-<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
-                     AssertionConsumerServiceURL="http://localhost:8080/pz-opensamlbook/saml/SSO"
-                     Destination="https://int.pz.gov.pl/dt/SingleSignOnService" ID="_65d3856c3ecd42e93a6c277cecf4b64e"
-                     IssueInstant="2017-07-19T07:33:31.573Z"
-                     ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Version="2.0">
+<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="http://localhost:8080/pz-opensamlbook/saml/SSO"
+                     Destination="https://int.pz.gov.pl/dt/SingleSignOnService" ID="_65d3856c3ecd42e93a6c277cecf4b64e" IssueInstant="2017-07-19T07:33:31.573Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Version="2.0">
     <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">TestSP</saml2:Issuer>
     <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
         <ds:SignedInfo>
Updated by Ireneusz Rybicki

File ArtifactResolve.xml Added

  • Ignore whitespace
  • Hide word diff
+<?xml version="1.0" encoding="UTF-8"?>
+<saml2p:ArtifactResolve xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
+                        Destination="https://int.pz.gov.pl/dt-services/idpArtifactResolutionService"
+                        ID="_231ea49c7d2a9116b34efea760c72381" IssueInstant="2017-07-19T07:33:33.743Z" Version="2.0">
+    <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">TestSP</saml2:Issuer>
+    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+        <ds:SignedInfo>
+            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+            <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+            <ds:Reference URI="#_231ea49c7d2a9116b34efea760c72381">
+                <ds:Transforms>
+                    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
+                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+                </ds:Transforms>
+                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+                <ds:DigestValue>rP1RFZ50GGVaPbwUHRcLQCvn5Uc=</ds:DigestValue>
+            </ds:Reference>
+        </ds:SignedInfo>
+        <ds:SignatureValue>cAgf5WNndvNOXFXd7jaP(...)</ds:SignatureValue>
+        <ds:KeyInfo>
+            <ds:X509Data>
+                <ds:X509Certificate>MIIDiDCCAnCgAwIBAgIC(...)
+                </ds:X509Certificate>
+            </ds:X509Data>
+        </ds:KeyInfo>
+    </ds:Signature>
+    <saml2p:Artifact>AAQAAKFbFR94fxqmioAqjJUwfyUtjJbvW8moZzk35OAWvNZ3kQvs+fLIRE0=</saml2p:Artifact>
+</saml2p:ArtifactResolve>
  1. 1
  2. 2
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.