• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
mthadley

mthadley

saml-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 milliseconds.
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
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.