You are correct, and that is what I said, Genesys Cloud does not support JWT directly. The only way you will be able to support a payment gateway that requires you to generate a JWT for authentication is to use either the AWS Lambda Data Actions or Web Service Data Actions to call a service that is external to Genesys Cloud to execute the code that you need to handle that payment.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com------------------------------
Original Message:
Sent: 07-28-2023 11:28
From: Raghavapvds pvds
Subject: Jwt Token
Hi Jim,
Thanks for your response.
But Genesys cloud was not support JWT token directly. And kindly let me know what are the options available other than lambda function.
------------------------------
Raghavapvds
Original Message:
Sent: 07-28-2023 10:54
From: Jim Crespino
Subject: Jwt Token
Generating JWTs is a little outside the scope of what is built into Genesys Cloud. However, you can use the AWS Lambda Data Action integration to call an AWS Lambda, and once in the Lambda you can execute any NodeJS code that you might need to be able to integrate to the payment gateway.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com
Original Message:
Sent: 07-27-2023 11:19
From: Raghavapvds pvds
Subject: Jwt Token
Hi Team,
I need a help to generate JWT token to integrate for payment integration.
Generate JWT and sign with a private key
Steps to get Jwt encoded key:
- Needs to generate the jwt encoded key using JWT libraries in Nodejs using the below provided info.
Go to JSON Web Tokens - jwt.io and updated the header and payload.
In payload data iat value needs to take current Unix Timestamp. Fyi Unix Time Stamp - Epoch Converter
- After filling in the data , copy the encoded key.
- Use the encoded key to call the https://secure4.paymentus.com/api/token/AFLC API to get the JWT key for next API calls.
Now the issue is we are unable to write the nodejs code in genesys to generate the jwt encoded key. Is there a way to generate jwt encoded key in Genesys?
#ArchitectureandDesign
#Integrations
#Security
------------------------------
Raghavapvds
------------------------------