Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Cue the extraordinary. Show-stopping experiences that raise the digital bar. Apply now for the 2023 Adobe Experience Maker Awards.

Rest api for JWT generation

Avatar

Level 1

Hello! We have a requirement where ServiceNow integrates with adobe to get customer's data (CCPA). In this process, the first step is to generate jwt token. For ServiceNow we need a rest api to be able to automate this process. I see we have rest apis for generating access token, submit access/delete requests and also to check job status. But there is no api to generate jwt token. From other thread (https://forums.adobe.com/thread/2640985), I could find a python script to automatically generate jwt token, but, ServiceNow cannot use a script. It requires an api. Is there anyway we can achieve this automation using java or a rest api? Has anybody ever tried to integrate from ServiceNow? Also, wondering why adobe doesn't have an api for jwt generation?

4 Replies

Avatar

Level 2

Hi, I think you want to use service now so that your JWT token won't expire after 24 hours(OAuth case).

 

What I did for this problem to generate JWT dynamically whenever it require. Please check screenshot for the code which can help you. Just add your keys and let me know if it helps you.

JWT generationJWT generation

Regards

Lalit 

Avatar

Level 8
Hi @lalit , I have a similar situation and really appreciate your help. If I use the above python script can I generate a access a JWT automatically? I am ideally looking for monitoring set up for the different Adobe API endpoints via blazemeter monitoring system. Can you provide me some guidance.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now