Hi,
I need to generate Okta token using following credentials with Genesys Data Action:
client_id
client_secret
scope
grant_type
I have created the data action as below:
However, i'm getting following errors:
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "8da5b55c-2952-4732-bf40-89aea673df64",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"error":"invalid_request","error_description":"The token request must specify a 'grant_type'. Valid values: []"} [8da5b55c-2952-4732-bf40-89aea673df64]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Can you please advise how should i configure my grant_type & scope value?
I have tried configured requestTemplate with "grant_type
=client_credentials" as below, but i still hitting error of "scope" value missing?
Your advise would really appreciated.
Thanks!
Best Regards,
Charlene