Creating a generation JSON Web Token profile
Create a generation JSON Web Token (JWT) profile to specify how Pega Platform generates a given JWT.
To generate a JWT, Pega Platform processes this generation JWT profile
with the pxGenerateJWT
activity. The generation JWT profile data instance
consists of one or more headers, claims and a security configuration specifying no security,
a signed token, an encrypted token, or a combination that uses both signing and encryption.
The profile can specify a token lifetime, and timeout option, and if the profile should
include a processing JWT profile.
You can use JWTs to exchange information securely between Pega Platform and another party and to encrypt the data to be transmitted. Common uses for JWTs in Pega Platform include:
- Authentication – The JWT holds user information that can be used by another party to authenticate the identity of the user presenting the token.
- Session management – The JWT ensures the secure exchange of information during user authenticated sessions.
By default Pega Platform automatically adds the following parameters to the JWT header when it generates the token:
- alg – The configured JWS algorithm, if you added one, in the Security section, on the Generation tab.
- typ – The type is always JWT.
- kid – The Key ID is a unique ID generated by the JWT run time process for each token generated.
- crit – Headers that are marked as critical on the Generation tab.
After you create a generation JWT profile, you can view the details of the token that the profile will generate by clicking Preview.