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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

JWT generation in Adobe Campaign Classic

nitesha38268385
Level 2
Level 2

Hey Folks,

 

I am trying to consume some third party API's in the workflow to get the data. and those API works on the OAuth Mechanism and to use these API's, I need to create the JWT inside the workflow.

 

Can you please suggest, how I can generate the JWT programmatically and utilize it further into the workflow for the API Call authentication?

 

Regards,

Nitesh.

API Api call in workflow jwt
1 Accepted Solution
DavidKangni
Correct answer by
Community Advisor
Community Advisor

Hi Nitesh,

 

You will need to download some crypto js libraries and write down some functions.

You can take a look at Creating JSON Web Token in JavaScript or this demo video 

 

Thanks,

David

View solution in original post

3 Replies
DavidKangni
Correct answer by
Community Advisor
Community Advisor

Hi Nitesh,

 

You will need to download some crypto js libraries and write down some functions.

You can take a look at Creating JSON Web Token in JavaScript or this demo video 

 

Thanks,

David

View solution in original post

Sukrity_Wadhwa
Employee
Employee

Hi @nitesha38268385,

Were you able to resolve this query with the given solution? Do let us know.

Thanks!

 

nitesha38268385
Level 2
Level 2

Hi @Sukrity_Wadhwa ,

Solution Shared was helpful and I could have solved as per the solution shared, but my requirement was to generate the JWT using the RSA algorithm which is not supported by this crypto.js library. But later on, I build my own jar file and deployed on the on-premise marketing server and executed it using the executedCommand() function for each record int the workflow.