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.
| Attribute | Values | What it is |
|---|
The XML, indented for reading
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:
- An error status comes with no assertion; a success brings at least one, and at least one assertion has an AuthnStatement.
- The Response, or each assertion, is signed: the service provider must check the signature on the assertions or on the response. SHA-1 signatures are flagged: python3-saml lists them as deprecated.
- The Issuer of the Response, when there is one, is the identity provider, as the Issuer of the assertion is.
- A bearer confirmation has a Recipient, the service provider's assertion consumer service address, and a NotOnOrAfter that ends the time to deliver the assertion, and no NotBefore. The Destination of the Response is the address it was sent to.
- InResponseTo is the same in the Response and in its bearer confirmation; an unsolicited Response has it in neither.
- An assertion with a bearer confirmation has an AudienceRestriction that names the service provider.
- Times are in UTC. Conditions NotBefore comes before NotOnOrAfter, and the page compares both with the clock of this computer. Some service providers allow 5 minutes of clock difference: python3-saml does, and Microsoft says a service might.
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.
| Code | Level | Meaning |
|---|---|---|
Success | Top | The request succeeded. |
Requester | Top | The request could not be carried out because of an error on the requester's side. |
Responder | Top | The request could not be carried out because of an error at the SAML responder or SAML authority. |
VersionMismatch | Top | The responder could not process the request because its version was wrong. |
AuthnFailed | Second | The identity provider could not authenticate the user. |
InvalidAttrNameOrValue | Second | An Attribute or AttributeValue held unexpected or invalid content. |
InvalidNameIDPolicy | Second | The responder cannot or will not give a NameID by the policy asked for. |
NoAuthnContext | Second | The responder cannot meet the authentication context asked for. |
NoAvailableIDP | Second | From an intermediary: none of the identity providers in the IDPList can be resolved or is available. |
NoPassive | Second | The responder cannot authenticate the user passively, as the request asked. |
NoSupportedIDP | Second | From an intermediary that supports none of the identity providers in the IDPList. |
PartialLogout | Second | From a session authority: the logout could not be passed on to all other participants. |
ProxyCountExceeded | Second | The responder cannot authenticate the user itself and may not pass the request on. |
RequestDenied | Second | The responder could process the request but chose not to answer it. |
RequestUnsupported | Second | The responder does not support the request. |
RequestVersionDeprecated | Second | The responder no longer processes requests of this protocol version. |
RequestVersionTooHigh | Second | The request's protocol version is a major version above the highest the responder supports. |
RequestVersionTooLow | Second | The request's protocol version is too low for the responder. |
ResourceNotRecognized | Second | The resource named in the request is not valid or not known. |
TooManyResponses | Second | The response would hold more elements than the responder can return. |
UnknownAttrProfile | Second | An attribute came from a profile the receiver does not know. |
UnknownPrincipal | Second | The responder does not know the user named or implied by the request. |
UnsupportedBinding | Second | The responder cannot answer by the protocol binding the request names. |
NameID formats
| Format | Meaning |
|---|---|
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified | Each implementation decides how to read the value. |
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress | An 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:X509SubjectName | An X.509 subject name, written as the XML Signature Recommendation gives it. |
urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName | A Windows user name, with or without a domain name and a backslash before it. |
urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos | A Kerberos principal name: name[/instance]@REALM (RFC 1510). |
urn:oasis:names:tc:SAML:2.0:nameid-format:entity | A 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:persistent | A 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:transient | A temporary, opaque identifier, to be treated as such. |
Subject confirmation methods
| Method | Meaning |
|---|---|
urn:oasis:names:tc:SAML:2.0:cm:bearer | Whoever presents the assertion is taken as its subject, within its other conditions. |
urn:oasis:names:tc:SAML:2.0:cm:holder-of-key | Whoever holds a key named in the assertion is taken as its subject. |
urn:oasis:names:tc:SAML:2.0:cm:sender-vouches | No other context is given: the relying party decides by other means whether to accept the assertion. |
Attribute name formats
| Format | Meaning |
|---|---|
urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified | Each implementation decides how to read the name. |
urn:oasis:names:tc:SAML:2.0:attrname-format:uri | The name is a URI reference; what it means is up to the application. |
urn:oasis:names:tc:SAML:2.0:attrname-format:basic | The name is a simple XML name (xs:Name). |
Consent
| Value | Meaning |
|---|---|
urn:oasis:names:tc:SAML:2.0:consent:unspecified | No claim about consent is made. This is the meaning when Consent is left out. |
urn:oasis:names:tc:SAML:2.0:consent:obtained | Consent was obtained. |
urn:oasis:names:tc:SAML:2.0:consent:prior | Consent was obtained before the message was started. |
urn:oasis:names:tc:SAML:2.0:consent:current-implicit | Consent was obtained implicitly. |
urn:oasis:names:tc:SAML:2.0:consent:current-explicit | Consent was obtained explicitly. |
urn:oasis:names:tc:SAML:2.0:consent:unavailable | No consent was obtained. |
urn:oasis:names:tc:SAML:2.0:consent:inapplicable | No consent is needed. |
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.
| Attribute | JWT claim | Meaning |
|---|---|---|
http://schemas.microsoft.com/identity/claims/objectidentifierObject ID | oid | The user's object ID in Microsoft Entra ID. It never changes and is never given to another object. |
http://schemas.microsoft.com/identity/claims/tenantidTenant ID | tid | The directory (tenant) that issued the token. It never changes and is never reused. |
http://schemas.microsoft.com/identity/claims/identityproviderIdentity provider | idp | The 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/nameName | unique_name | A 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/givennameFirst name | given_name | The user's given name, as set on the user in Microsoft Entra ID. |
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surnameLast name | family_name | The user's surname, as set on the user in Microsoft Entra ID. |
http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsGroups | groups | The 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.linkGroups overage | groups:src1 | Sent 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/roleRoles | roles | The app roles the user has, directly or through groups: the value of each app role. |
Sources
- OASIS, Assertions and Protocols for SAML V2.0 (status codes, sections 1.3.3, 2.2.5, 2.3.3, 2.4.1.2, 2.5.1, 2.7.2, 3.2.2 and 8), Profiles for SAML V2.0 (sections 3, 4.1.2, 4.1.4 and 4.1.5) and the SAML V2.0 Technical Overview (the bindings), read with page fetches on 25 Nov 2026.
- python3-saml (at commit 52d2ac8, MIT licence): the identifiers, the deprecated algorithms, the allowed clock drift, and the decoding of the Redirect binding, base64 and then DEFLATE (RFC 4648, RFC 1951). pysaml2 (at commit 2fb5b50, Apache License 2.0): the identifiers and the consent values.
- Microsoft Entra ID: Microsoft's SAML token claims reference (entra-docs at commit a776bb0, MIT licence). The meanings are written here in plain words.
More Web tools
-
Content-Security-Policy checker
What each directive of a policy allows, what falls back to default-src, the gaps, and the Apache and nginx lines.
-
TLS cipher suite lookup
0xC02F, its IANA name and its OpenSSL name, IANA's Recommended mark, and Windows' default order.
-
Redirect rule generator
Apache and nginx rules for HTTP to HTTPS, www to the bare domain and old paths to new, with 301 or 308.
-
robots.txt tester
Paste a robots.txt and a path: which group a crawler follows, which rule wins, and why, by RFC 9309.