Skip to content

Instantly share code, notes, and snippets.

@andrewdyates
Created August 15, 2010 06:29
Show Gist options
  • Save andrewdyates/525162 to your computer and use it in GitHub Desktop.
Save andrewdyates/525162 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="{{ response_id }}" IssueInstant="{{ issue_instant }}" Version="2.0"><samlp:Status><samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"></samlp:StatusCode></samlp:Status><saml:Assertion ID="{{ assertion_id }}" IssueInstant="{{ issue_instant }}" Version="2.0"><saml:Issuer>{{ issuer }}</saml:Issuer><saml:Subject><saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">{{ username }}</saml:NameID><saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml:SubjectConfirmationData {% if request_id %}InResponseTo="{{ request_id }}" {% endif %}NotOnOrAfter="{{ not_on_or_after }}" Recipient="{{ acs_url }}"></saml:SubjectConfirmationData></saml:SubjectConfirmation></saml:Subject><saml:Conditions NotBefore="{{ not_before }}" NotOnOrAfter="{{ not_on_or_after }}"><saml:AudienceRestriction><saml:Audience>{{ acs_url }}</saml:Audience></saml:AudienceRestriction></saml:Conditions><saml:AuthnStatement AuthnInstant="{{ authn_instant }}"><saml:AuthnContext><saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml:AuthnContextClassRef></saml:AuthnContext></saml:AuthnStatement>{{ attributes_xml }}</saml:Assertion></samlp:Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment