Question
Masking Technology
NL
Last activity: 8 Aug 2024 12:54 EDT
How can I forward the JWT token to the external services?
I want to forward the JWT token that the user used to log in to the Pega application to external services to retrieve data.
In a UI-kit scenario, where we have a stateful session on the server, we capture the JWT token and cache it in a requestor level data page. This way we can use the token to call the services. But with Constellation, the application becomes stateless and we can't use the same approach.
Ideally, we would cache the token somewhere in memory, or in a very fast and lightweight database like a Redis cache. Is there any out-of-the-box solution for this? Or is this something we can request on the Pega Cloud? Storing the token in the Pega database would be an option, but for performance reasons, we would like to avoid this. We also don't want to store the token in the browser, as this would be a security risk.