Generate a JWT - Plain / PEM key
Generate and encode a JWT using a secret plain text key or a private key as signature. The private key must be generated through a PEM file.
To use an asymmetric algorithm (generate a JWT using a PEM key), a PEM file must be generated to obtain a private and public key.
Consult the Google documentation to generate these keys.
Implementation steps
1. JSON Web Token (JWT) configuration
 Header
Algorithm type
Algorithm (alg)
Key Id (kid
 Payload
Token Id (jti)
Expiration (exp)
Not Before (nbf)
Issued At (iat)
Issuer (iss)
Subject (sub)
Audience (aud)
Custom claims 
No custom claims to show...
 Signature
Secret key
(min. 16 bytes long)
2. Configure the corresponding action
Create a submit action (tipically a screen action) to handle the JWT generation. 
To generate a JWT based on a plain secret key
Open the submit action (GenerateJWT) created previously and drag the following action:  
Fill in the action parameters, with the values configured for the JWT from the previous step.
To generate a JWT based on a PEM private key
Open the submit action (GenerateJWT) created previously and drag the following action:  
Fill in the action parameters, with the values configured for the JWT in the previous step.
3. Validate the generated token
Verify the success parameter. An encoded token is returned, and can be separated to obtain the header, payload and the signature individually using a String_Split action. 
Generated encoded token
No token...
Click here to see your activities