SAML Request Decoder
Decode and inspect SAML authentication requests and responses. Paste Base64-encoded SAML data to decode the XML, extract NameID and attribute claims, view issuer, status, and validity metadata — all client-side, nothing sent to any server.
Frequently Asked Questions
What is SAML and when is it used?▼
SAML (Security Assertion Markup Language) is an XML-based SSO standard used primarily in enterprise environments. It allows an Identity Provider (IdP like Okta, Azure AD, ADFS) to authenticate a user and pass their identity to a Service Provider (SP — your app). SAML is widely used for enterprise SSO. For new apps, consider OIDC/OAuth2 instead — it's simpler and more developer-friendly. SAML is still required for integration with legacy enterprise systems.
What is the difference between SAMLRequest and SAMLResponse?▼
SAMLRequest is sent from the Service Provider (your app) to the Identity Provider to initiate authentication — it's an AuthnRequest XML document. SAMLResponse is sent from the Identity Provider back to the Service Provider after the user authenticates — it contains assertions (user identity, attributes, session info). Both are Base64-encoded XML, usually URL-encoded in the query string (redirect binding) or sent as form fields (POST binding).
What does it mean when SAML validation fails with 'InResponseTo mismatch'?▼
When your app generates a SAMLRequest, it embeds an ID. The IdP's SAMLResponse includes InResponseTo with that ID to prevent replay attacks. If they don't match, it means either: (1) the response is for a different request (clock skew or session mismatch), (2) someone is replaying an old response, or (3) your SP lost track of the original request ID. Fix: ensure your app correctly stores and retrieves the request ID, and check NTP time sync between SP and IdP (allow ±5 minutes tolerance).
How do I extract SAML data from browser network traffic?▼
Open Chrome DevTools → Network tab → filter by 'saml'. Look for POST requests to your app's ACS (Assertion Consumer Service) URL. In the request payload, find SAMLResponse form field. Copy the value. In GET requests (redirect binding), the SAMLRequest appears in the URL query string. Alternatively, use the SAML Chrome extension or Firefox SAML DevTools extension which automatically decode SAML messages as you browse.
What are SAML NameID and Attributes used for?▼
NameID is the primary identifier for the authenticated user — often an email address, username, or persistent opaque ID. Attributes are additional claims about the user sent in the assertion: email, displayName, groups, department, etc. The exact attribute names vary by IdP. In Okta they might be 'email' and 'firstName'; in Azure AD they use URN format like 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'. Map these attributes in your SP configuration to standardize them.
Why is my SAML response returning 'Signature verification failed'?▼
SAML responses are signed with the IdP's private key and verified using their public certificate. Verification fails when: (1) you're using the wrong IdP certificate — download the current certificate from your IdP's metadata URL, (2) the certificate has expired — IdPs rotate certificates periodically, (3) the XML was modified after signing — some proxies or middleware corrupt the response. Check your SP's stored IdP certificate matches what the IdP is currently using.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
HTTP Security Headers Generator
Generate HTTP security headers configuration for nginx and Apache. Configure HSTS, CSP, X-Frame-Options, Referrer-Policy, and more with toggle switches. Copy ready-to-use configs.
Open free tool →
HTTP Security Headers Checker
Paste HTTP response headers and get a checklist of security headers present or missing. Checks CSP, HSTS, X-Frame-Options, and more.
Open free tool →
Content Security Policy Builder
Visual CSP builder with all directives. Generate Content-Security-Policy headers with source expressions, nonces, and report endpoints.
Open free tool →
More Free Tools
Related Articles
JWT Token Decoder: How to Debug Authentication Issues
Learn how to use a JWT token decoder to diagnose 401 errors, expired tokens, missing claims, and auth misconfiguration. Practical debugging guide with code examples.
JWT Decoder Online — Inspect JSON Web Tokens Instantly
JWT decoder online — paste any token to see the header, payload, expiry time, and claims decoded in seconds. No library required. Learn how JWT works with code examples.
JWT Decoder Online: Inspect JSON Web Tokens Without a Library
Decode and inspect JWT tokens online for free. Learn JWT structure, how to read claims, verify signatures, and debug authentication issues in your apps.
JWT Tokens Explained: How to Decode and Debug Them
Understand JSON Web Tokens from header to signature. Learn how to decode JWTs, read their claims, debug authentication issues, and use free online JWT tools.
Best Free JWT Decoder Tools in 2026
Compare the best free JWT decoder tools available in 2026. Decode, inspect, and debug JSON Web Tokens without leaving your browser—no installation required.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →