Skip to main content

SAML Message Builder

Build unsigned SAML Responses, AuthnRequests and Logout messages for testing

Input

Message

Entity ID of the identity provider.

ACS URL of the service provider.

Usually the entity ID of the service provider.

Leave empty to use the destination.

ID of the request being answered; leave empty for an IdP-initiated response.

Subject
Attributes
  1. Attribute 1

    One value per line.

  2. Attribute 2

    One value per line.

Validity
Reference time
…
Advanced
Status
IDs

Random 160-bit IDs. They stay the same until you regenerate or edit them.

Validity

Output

UNSIGNED TEST MESSAGE

This message has no XML signature. Use it only for testing; a service provider that checks signatures rejects it.

Preparing IDs and the reference time…

Self-check

Added to the POST and Redirect outputs; it is not part of the XML.

What the SAML Message Builder does

It builds SAML 2.0 Responses with an assertion, AuthnRequests, LogoutRequests and LogoutResponses from a form, then shows the XML, the Base64 value, an HTTP-POST form body and an HTTP-Redirect URL. Use it to test a service provider or identity provider integration, reproduce a bug with a known message or learn how the bindings encode a message.

Unsigned test messages only

Every message is marked UNSIGNED TEST MESSAGE. The builder does not create XML signatures, because a correct signature needs canonicalization, references, digests and wrapping-attack defences that deserve their own review. A service provider that verifies signatures rejects these messages, which is the expected result in production.

Self-check with the existing SAML tools

After each change the XML is parsed again with the same parser as the SAML Decoder and compared with the form. Responses also run through the SAML Response Validator at the reference time, and the POST and Redirect outputs are decoded back to confirm they match the XML. Open in SAML Decoder or SAML Validator passes the message in memory only.

Privacy and IDs

Everything runs in your browser. Messages are never uploaded, stored, logged or added to the URL. IDs are 160-bit random values from the browser crypto API and stay the same until you regenerate or edit them, and time values are relative to a reference time you can refresh.

Frequently asked questions
Can I use the generated SAML Response to log in to a real service?
Only if that service accepts unsigned responses, which production services should never do. The builder creates unsigned test messages, clearly labelled as such, for testing parsers, error handling and integrations in development environments.
Is the SAML message sent to a server?
No. Building, encoding and checking run entirely in your browser. Messages are not uploaded, stored, logged or added to the URL, and Open in SAML Decoder or Validator passes the message in memory only.
How are the IDs and timestamps generated?
IDs are an underscore followed by 40 hexadecimal characters from the browser crypto API and stay the same until you regenerate or edit them. Timestamps are UTC values relative to a reference time, with presets for the validity window and session length, and can be entered manually under Advanced.

CodingTool is officially live on