FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
mthadley
mthadleysaml-helper
Public
Like
saml-helper
Home
Code
4
backend
2
frontend
2
shared
2
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://mthadley--a9b5b48a375111f082549e149126039e.web.val.run
README.md

SAML Response Debugger

A web-based tool for debugging SAML responses. Paste in a URL containing a SAML response to decode and analyze the assertions, with optional signature verification.

Features

  • URL Parsing: Extract SAML responses from URLs (supports both SAMLResponse and RelayState parameters)
  • Base64 Decoding: Automatically decode base64-encoded SAML responses
  • XML Parsing: Parse and display SAML XML in a readable format
  • Assertion Analysis: Extract and display all assertions with their attributes
  • Signature Verification: Optional signature verification using provided certificates
  • User-friendly UI: Clean interface with syntax highlighting and collapsible sections

Project Structure

├── backend/
│   ├── index.ts           # Main Hono server
│   └── routes/
│       └── saml.ts        # SAML processing endpoints
├── frontend/
│   ├── index.html         # Main HTML template
│   ├── components/
│   │   ├── App.tsx        # Main React component
│   │   ├── SamlDecoder.tsx # SAML decoding interface
│   │   └── AssertionViewer.tsx # Assertion display component
│   └── index.tsx          # Frontend entry point
├── shared/
│   ├── types.ts           # Shared TypeScript types
│   └── utils.ts           # Shared utility functions
└── README.md

Usage

  1. Navigate to the application
  2. Paste a URL containing a SAML response in the input field
  3. Click "Decode SAML Response" to parse and display the response
  4. Optionally provide a certificate for signature verification
  5. View the decoded assertions and their attributes

API Endpoints

  • GET / - Serves the main application
  • POST /api/saml/decode - Decodes SAML response from URL
  • POST /api/saml/verify - Verifies SAML response signature

Development

The application uses:

  • Backend: Hono framework with TypeScript
  • Frontend: React with TypeScript and TailwindCSS
  • XML Processing: DOMParser for XML parsing
  • Crypto: Web Crypto API for signature verification
HTTP
  • index.ts
    mthadley--a9…9e.web.val.run
Code
backendfrontendsharedREADME.md
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.