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,
Discussion posts and replies are publicly visible
The key format is correct. I'm able to generate the token manually in jwt.io
Could you pleas tell me what is the Test Connection section. Please share me any sample expression.
Hi shreekrishnat0001 ,I also have one use case related to JWT but i am not able to setup Third Party Credentials as i am getting confused in generation of appianprivatekey and appianprivatekeypassword. Can you please help me in this?
To test the connection:
docs.appian.com/.../Appian_Administration_Console.html
you were right. shreekrishnat0001 The key format must be in RSA.
We found that the Private Key was in the following format: "-----BEGIN ENCRYPTED PRIVATE KEY-----"However, the tool was expecting RSA: "-----BEGIN RSA PRIVATE KEY-----"
We used the following command to convert to the proper format:openssl rsa -in privatekey.pem -out privatekey_out.pem
Hi Vijay Gurav Is the public key to be configured in external system?
If you are saying External System means where the Appian is trying to connect then Yes, You need to configure the public key at external system.
Thank you Vijay Gurav , I am able to generate, but I have used createsignedjwt function from "Create JWT" plugin.
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'
Please check the code written for setAlg function which is mentioned at last line in screenshot,
Guess is - this might be overwriting default one.