SAML Response Example

The following example shows a valid SAML response from an IdP, with the signature and the certificate shortened. It can be used to verify that your IdP sends the expected claims: the subject NameID in the 'unspecified' format, and the email, groups, and displayname attributes without a namespace.

Note: In this example, the user 'johnny.t' is created in, or synchronized with, the STEP groups 'Editors' and 'Administrators'. Both group IDs must exist in STEP for the group assignment to take effect.

Copy
<samlp:Response ID="_a7008e81-da30-45fe-ae0d-e3a5b6af1da0" Version="2.0" 
    IssueInstant="2025-11-27T10:41:37.163Z" 
    Destination="[assertion consumer service URL supplied by Stibo Systems]" 
    InResponseTo="ID_dca2686f-da95-41fb-bf19-c1dee3b91e5a" 
    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"> 
  <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion"> 
    https://sts.windows.net/f3b75253-4214-4a54-b052-56ac6906ae90/</Issuer> 
  <samlp:Status> 
    <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> 
  </samlp:Status> 
  <Assertion ID="_5631fbe6-2be2-4ea7-ad55-84bc96b07b00" Version="2.0" 
      IssueInstant="2025-11-27T10:41:37.160Z" 
      xmlns="urn:oasis:names:tc:SAML:2.0:assertion"> 
    <Issuer>https://sts.windows.net/f3b75253-4214-4a54-b052-56ac6906ae90/</Issuer> 
    <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> 
      <!-- signature and X509 certificate --> 
    </Signature> 
    <Subject> 
      <NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"> 
        johnny.t</NameID> 
      <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"> 
        <SubjectConfirmationData 
            InResponseTo="ID_dca2686f-da95-41fb-af19-c1dee3b91e5a" 
            NotOnOrAfter="2025-11-27T11:41:37.029Z" 
            Recipient="[assertion consumer service URL supplied by Stibo Systems]"/> 
      </SubjectConfirmation> 
    </Subject> 
    <Conditions NotBefore="2025-11-27T10:36:37.029Z" 
        NotOnOrAfter="2025-11-27T11:41:37.029Z"> 
      <AudienceRestriction> 
        <Audience>[service provider entity ID supplied by Stibo Systems]</Audience> 
      </AudienceRestriction> 
    </Conditions> 
    <AttributeStatement> 
      <Attribute Name="email"> 
        <AttributeValue>user@company.com</AttributeValue> 
      </Attribute> 
      <Attribute Name="groups"> 
        <AttributeValue>Editors</AttributeValue> 
        <AttributeValue>Administrators</AttributeValue> 
      </Attribute> 
      <Attribute Name="displayname"> 
        <AttributeValue>Johnny Test</AttributeValue> 
      </Attribute> 
    </AttributeStatement> 
    <AuthnStatement AuthnInstant="2025-11-27T05:57:55.304Z" 
        SessionIndex="_5630fbe6-2be2-4ea7-ad55-85bc96b07b00"> 
      <AuthnContext> 
        <AuthnContextClassRef> 
          urn:oasis:names:tc:SAML:2.0:ac:classes:Password</AuthnContextClassRef> 
      </AuthnContext> 
    </AuthnStatement> 
  </Assertion> 
</samlp:Response>