Zoomed Image

AMSX Scripting Language - Command : JsonWebToken

Summary

Create a signed JSON Web Token and store it in the result buffer

Description

Generates a signed JWT using the HS256 algorithm. The resulting token string is placed in the result buffer. Use this to create tokens for authenticating outbound API calls.

Parameters

ParameterDescription
cmdSubject claim for the token
Argument 0Issuer
Argument 1Audience
Argument 2Expiry in minutes
Argument 3Secret
Argument 4Claims in the form key1:value1,key2:value2

Syntax


JsonWebToken "Subject claim for the token", "Issuer", "Audience", "Expiry in minutes", "Secret", "Claims in the form key1:value1,key2:value2"

Return to the AMSX Command Reference