USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Parse a JSON Web Token and store its claims into variables
Decodes and validates a JWT, then assigns the standard claims to named variables. Additional custom claims are stored in variables named jwtclaim_<claimname>. Use this to consume inbound JWT tokens.
| Parameter | Description |
|---|---|
| cmd | The JWT token string to parse |
| Argument 0 | Variable name to store the Subject claim (default: jwtsubject) |
| Argument 1 | Variable name to store the Issuer claim (default: jwtissuer) |
| Argument 2 | Variable name to store the Audience claim (default: jwtaudience) |
ReadJsonWebToken "The JWT token string to parse", "Variable name to store the Subject claim (default: jwtsubject)", "Variable name to store the Issuer claim (default: jwtissuer)", "Variable name to store the Audience claim (default: jwtaudience)"