Workflow Tools Control Yard

Home / Web

SAML response decoder

Paste a SAMLResponse or a SAMLRequest: the base64 value, a whole redirect address with SAMLRequest= in it, or the XML. The page decodes it and reads it out: who issued it, the status, who signed in, for which service provider, until when, and the attributes, with the checks that the sign-in profile asks for. It does not check signatures.

How a SAML message travels

With the HTTP POST binding, the browser carries the message in a hidden form field named SAMLResponse (or SAMLRequest), in base64. With the HTTP Redirect binding, a request goes in the address, in a parameter named SAMLRequest: compressed with DEFLATE, then in base64, then encoded for the address. A RelayState that comes with it is handed back unchanged. A sign-in Response travels by POST or by artifact, never by redirect. When the identity provider starts the sign-in, no AuthnRequest comes first, so the Response answers nothing: it has no InResponseTo.

What the page checks

For a Response, the rules of the Web Browser SSO profile:

The page reads no document type declaration (<!DOCTYPE): a message with one is not read. An encrypted assertion stays closed, because the page has no key to open it.

Status codes

The top-level code is Success, or says on whose side the error is; a second-level code inside it can say more. Each is urn:oasis:names:tc:SAML:2.0:status: followed by the name below.

CodeLevelMeaning
SuccessTopThe request succeeded.
RequesterTopThe request could not be carried out because of an error on the requester's side.
ResponderTopThe request could not be carried out because of an error at the SAML responder or SAML authority.
VersionMismatchTopThe responder could not process the request because its version was wrong.
AuthnFailedSecondThe identity provider could not authenticate the user.
InvalidAttrNameOrValueSecondAn Attribute or AttributeValue held unexpected or invalid content.
InvalidNameIDPolicySecondThe responder cannot or will not give a NameID by the policy asked for.
NoAuthnContextSecondThe responder cannot meet the authentication context asked for.
NoAvailableIDPSecondFrom an intermediary: none of the identity providers in the IDPList can be resolved or is available.
NoPassiveSecondThe responder cannot authenticate the user passively, as the request asked.
NoSupportedIDPSecondFrom an intermediary that supports none of the identity providers in the IDPList.
PartialLogoutSecondFrom a session authority: the logout could not be passed on to all other participants.
ProxyCountExceededSecondThe responder cannot authenticate the user itself and may not pass the request on.
RequestDeniedSecondThe responder could process the request but chose not to answer it.
RequestUnsupportedSecondThe responder does not support the request.
RequestVersionDeprecatedSecondThe responder no longer processes requests of this protocol version.
RequestVersionTooHighSecondThe request's protocol version is a major version above the highest the responder supports.
RequestVersionTooLowSecondThe request's protocol version is too low for the responder.
ResourceNotRecognizedSecondThe resource named in the request is not valid or not known.
TooManyResponsesSecondThe response would hold more elements than the responder can return.
UnknownAttrProfileSecondAn attribute came from a profile the receiver does not know.
UnknownPrincipalSecondThe responder does not know the user named or implied by the request.
UnsupportedBindingSecondThe responder cannot answer by the protocol binding the request names.

NameID formats

FormatMeaning
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecifiedEach implementation decides how to read the value.
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressAn email address, as an addr-spec of RFC 2822: no display name, comment or angle brackets.
urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectNameAn X.509 subject name, written as the XML Signature Recommendation gives it.
urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedNameA Windows user name, with or without a domain name and a backslash before it.
urn:oasis:names:tc:SAML:2.0:nameid-format:kerberosA Kerberos principal name: name[/instance]@REALM (RFC 1510).
urn:oasis:names:tc:SAML:2.0:nameid-format:entityA SAML entity, such as an identity provider or a service provider: a URI of up to 1024 characters.
urn:oasis:names:tc:SAML:2.0:nameid-format:persistentA stable, opaque pseudonym for the user, for one identity provider and one service provider, with no visible link to the real identifier.
urn:oasis:names:tc:SAML:2.0:nameid-format:transientA temporary, opaque identifier, to be treated as such.

Subject confirmation methods

MethodMeaning
urn:oasis:names:tc:SAML:2.0:cm:bearerWhoever presents the assertion is taken as its subject, within its other conditions.
urn:oasis:names:tc:SAML:2.0:cm:holder-of-keyWhoever holds a key named in the assertion is taken as its subject.
urn:oasis:names:tc:SAML:2.0:cm:sender-vouchesNo other context is given: the relying party decides by other means whether to accept the assertion.

Attribute name formats

FormatMeaning
urn:oasis:names:tc:SAML:2.0:attrname-format:unspecifiedEach implementation decides how to read the name.
urn:oasis:names:tc:SAML:2.0:attrname-format:uriThe name is a URI reference; what it means is up to the application.
urn:oasis:names:tc:SAML:2.0:attrname-format:basicThe name is a simple XML name (xs:Name).

Microsoft Entra ID attributes

The attributes Microsoft documents for SAML tokens from Microsoft Entra ID, with the JWT claim that matches each. The issuer is https://sts.windows.net/ followed by the tenant ID; in AuthnContextClassRef, a value such as http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod/password says how the user authenticated.

AttributeJWT claimMeaning
http://schemas.microsoft.com/identity/claims/objectidentifier
Object ID
oidThe user's object ID in Microsoft Entra ID. It never changes and is never given to another object.
http://schemas.microsoft.com/identity/claims/tenantid
Tenant ID
tidThe directory (tenant) that issued the token. It never changes and is never reused.
http://schemas.microsoft.com/identity/claims/identityprovider
Identity provider
idpThe identity provider that authenticated the user: the same as the issuer, unless the user's account is in another tenant.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name
Name
unique_nameA readable name for the user, for display only: it is not guaranteed to be unique in the tenant.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
First name
given_nameThe user's given name, as set on the user in Microsoft Entra ID.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
Last name
family_nameThe user's surname, as set on the user in Microsoft Entra ID.
http://schemas.microsoft.com/ws/2008/06/identity/claims/groups
Groups
groupsThe object IDs of the user's groups, as the app's groupMembershipClaims setting selects them. Above 150 groups, groups.link comes in their place.
http://schemas.microsoft.com/claims/groups.link
Groups overage
groups:src1Sent in place of the groups when the user has too many for the token: a link to the full list.
http://schemas.microsoft.com/ws/2008/06/identity/claims/role
Roles
rolesThe app roles the user has, directly or through groups: the value of each app role.

Sources

More Web tools