Skip to content

Instantly share code, notes, and snippets.

@jheth
Last active December 31, 2015 08:39
Show Gist options
  • Select an option

  • Save jheth/7962107 to your computer and use it in GitHub Desktop.

Select an option

Save jheth/7962107 to your computer and use it in GitHub Desktop.
<samlp:Response xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
ID="R3fcfe38ecf56858aed1c82e64af35a184365666b" Version="2.0"
IssueInstant="2013-12-14T17:39:06Z" Destination="https://www.hostedservice.com/sso/saml/acs"
InResponseTo="_8dc163f0-4714-0131-0e2a-20c9d04963c9">
<saml:Issuer>https://app.onelogin.com/saml/metadata/XXXXXX</saml:Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</samlp:Status>
<saml:Assertion xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Version="2.0" ID="pfx419fb376-b600-e1b8-f383-cd5f77968186" IssueInstant="2013-12-14T17:39:06Z">
<saml:Issuer>https://app.onelogin.com/saml/metadata/XXXXXX</saml: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="#pfx419fb376-b600-e1b8-f383-cd5f77968186">
<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>PptSPRiOhaQYKGk5HzL2lpoo1Vo=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>D2eDouAQQ...dy6mA==</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>[omitted]</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">john.doe@myservice.com</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml:SubjectConfirmationData NotOnOrAfter="2013-12-14T17:42:06Z"
Recipient="https://www.hostedservice.com/sso/saml/acs"
InResponseTo="_8dc163f0-4714-0131-0e2a-20c9d04963c9" />
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2013-12-14T17:36:06Z" NotOnOrAfter="2013-12-14T17:42:06Z">
<saml:AudienceRestriction>
<saml:Audience>https://www.hostedservice.com/sso/saml/acs</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AuthnStatement AuthnInstant="2013-12-14T17:39:05Z"
SessionNotOnOrAfter="2013-12-15T17:39:06Z"
SessionIndex="_74a210e0-4714-0131-2bc9-782bcb56fcaa">
<saml:AuthnContext>
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef>
</saml:AuthnContext>
</saml:AuthnStatement>
<saml:AttributeStatement>
<saml:Attribute Name="User.FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:string">John</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="User.Username" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:string"/>
</saml:Attribute>
<saml:Attribute Name="User.LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:string">Doe</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>
</samlp:Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment