Skip to main content
January 31, 2024
Question

Generate JWT Token By External System Key

  • January 31, 2024
  • 19 replies
  • 1 view

Hi,

I need to create JWT token, for this installed JWT Tools Plugin,

createtoken() function is pasking for externalSystemKey as param,

I don't know how and where to configure it, and if it dependent on other 3rd party integration, what to configure there and how it will handshake with apian to test?

Kindly guide us on this.

Thanks,

19 replies

stefanhelzle0001
January 31, 2024
January 31, 2024

Hi Stefan,

Thanks for your quick response.

there is no proper tutorial mentioned there, like what are the things are required to do on external system and there is button on Test connection to test the details with the external system.

getiing error like this - 

"appianprivatekeypassword or appianprivatekey for Credential Store was null"(Text)

thanks,

Shree krishna tiwari

stefanhelzle0001
January 31, 2024

Typically, plugins contain some form of documentation when downloading.

https://community.appian.com/b/appmarket/posts/jwt-web-token-tools#

I hope that gets you started.

harshk1671
June 18, 2025

Did anyone get any success with this?
I am using 'createtoken' function and passing algorithm 'PS256' but when I decode the generated token it shows algorithm 'RS512'.

I have checked the source code for plugin and looks like algorithm is hardcoded to 'RS512' only. Anyone faces similar issue or help me how to change algorithm to 'PS256'

June 18, 2025

Hi, 

Please check the code written for setAlg function which is mentioned at last line in screenshot, 

Guess is - this might be overwriting default one.