Skip to content

Instantly share code, notes, and snippets.

@pyrotek
Created October 23, 2014 19:52
Show Gist options
  • Save pyrotek/8d3f3a7f50d3121b70d9 to your computer and use it in GitHub Desktop.
Save pyrotek/8d3f3a7f50d3121b70d9 to your computer and use it in GitHub Desktop.
SAML Assertion (unsigned)
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_c99d981f-1f09-4adf-8466-50e171bbf360" Version="2.0" IssueInstant="2014-09-24T08:58:33.5077383Z" Destination="Recipient" xmlns="urn:oasis:names:tc:SAML:2.0:protocol">
<saml:Issuer>iGradSAMLCert</saml:Issuer>
<Status>
<StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</Status>
<saml:Assertion Version="2.0" ID="_f5e91889-9dd3-485d-a945-dbb65d9507fd" IssueInstant="2014-09-24T08:58:35.2307383Z">
<saml:Issuer>iGradSAMLCert</saml:Issuer>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">Subject</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml:SubjectConfirmationData Recipient="Recipient" NotOnOrAfter="2014-09-24T09:03:35.2327383Z" />
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2014-09-24T08:58:35.2347383Z" NotOnOrAfter="2014-09-24T09:03:35.2347383Z">
<saml:AudienceRestriction>
<saml:Audience>Audience</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AuthnStatement AuthnInstant="2014-09-24T08:58:35.2367383Z" SessionIndex="_f5e91889-9dd3-485d-a945-dbb65d9507fd">
<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="CoBrand" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:nil="true" />
</saml:Attribute>
<saml:Attribute Name="StudentID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">123456</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="SchoolEmail" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">user_1@ccstudent.edu</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">Heywood</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">Floyd</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="UserType" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">1</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="DateOfBirth" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">01/01/1985</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Gender" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">M</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="AlternateEmail" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="PhoneNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="AddressLine1" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="AddressLine2" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:nil="true" />
</saml:Attribute>
<saml:Attribute Name="City" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="State" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="Zip" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string" />
</saml:Attribute>
<saml:Attribute Name="SchoolName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">Anchorage</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="SchoolState" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">AK</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="GradeLevel" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">1</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Major" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">Biology</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="CustomFilter1" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:nil="true" />
</saml:Attribute>
<saml:Attribute Name="CustomFilter2" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:nil="true" />
</saml:Attribute>
<saml:Attribute Name="CustomFilter3" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:nil="true" />
</saml:Attribute>
<saml:Attribute Name="TargetURL" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xsd:string">http://www.igrad.com/articles</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>
</Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment