Skip to content

Instantly share code, notes, and snippets.

@hn3000
Created April 12, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hn3000/c63aee600a03fbb9d7b5019716e5cb46 to your computer and use it in GitHub Desktop.
Save hn3000/c63aee600a03fbb9d7b5019716e5cb46 to your computer and use it in GitHub Desktop.
real simplistic SAML request decoder
#!/usr/bin/env node
var { Buffer } = require('buffer');
var zlib = require('zlib');
var param = process.argv[2];
var raw = Buffer.from(decodeURIComponent(param), 'base64');
var decoded = zlib.inflateRawSync(raw);
console.log(decoded.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment