Last active
April 11, 2024 12:05
-
-
Save Elektordi/87eb6e7f60e4190fbbf913df4e03fd05 to your computer and use it in GitHub Desktop.
Decode SAML payload from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
token="$1" | |
if [ -z "$token" ]; then | |
read token | |
fi | |
echo $token | sed -e "s/-/+/" -e "s/_/\//" | base64 -d | xmllint --format --recover - | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment