Just wondering if anyone can help. We have a customer want to integrate their CRM (Momentus) into Genesys Cloud. And to call API of momentus, need to generate JWT token.
They give us snippet code to generate JWT token as following:
And once we get JWT, we can call API Momentus normally using JWT:
type: method,
url: ungerboeckApiUrl, //Make sure you pick an endpoint the API User is allowed to access
headers: {
**'Authorization': 'Bearer ' + jwt,**
'Content-Type': 'application/json'
},
Just wondering is there any way in Data Action to generate JWT token (constructJWT), can we implement this in Data Action Integration ?
Data acton authentication and credential types currently do not support a generic JWT. We have worked with JWT for Google and Adobe authentication and that experience showed us that the vendor implementation were veried enough that we could not make a general mechanism that would handle the claims and Bearer veriations well enough to be common code.
Using a Lambda based Action with the JWT authentication in the Lambda and credentials to do the JWT signing being passed to your Lambda on invocation would likely be the best solution.
Thanks for the advise, this will help us to advise the customer accordingly.
Just wondering with AWS lambda, means we need to create a Lambda externally, to generate JWT token and might also retrieve CRM data through their API in the lambda, and then hook that lambda into Genesys Cloud Data Action isnt it ?
Just wondering with AWS lambda, means we need to create a Lambda externally, to generate JWT token and might also retrieve CRM data through their API in the lambda, and then hook that lambda into Genesys Cloud Data Action isnt it ?