Zoomed Image

AMSX Scripting Language - Command : readjsonwebtoken

Summary

Parse a JSON Web Token and store its claims into variables

Description

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.

Parameters

ParameterDescription
cmdThe JWT token string to parse
Argument 0Variable name to store the Subject claim (default: jwtsubject)
Argument 1Variable name to store the Issuer claim (default: jwtissuer)
Argument 2Variable name to store the Audience claim (default: jwtaudience)

Syntax


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)"

Return to the AMSX Command Reference