Hi Team,
I created a Web service using user defined credential type to get a token from azure and pass the token to my custom action created using the same integration.
I am able to generate the token successfully as below
Now after I got success in the above I'm going to create another data action to fetch data from the endpoint API or update the endpoint for this action it will ask me to pass two parameters (Token_type, Token_access) my question is how I can pass this parameter from the "Custom Auth Data Action "
as per the documentation
How to use the User Defined (OAuth) credential type - Genesys Cloud Resource Center In step 3 it is mentioned -
The header of the custom action request includes the authorization. authResponse is a static keyword. token_type and access_token are the values returned from the web service
So I am adding - The header "
Authorization": "${authResponse.token_type} ${authResponse.access_token}", While testing the custom data_action is through error as below.
{
"message": "No authentication bearer token specified in authorization header.",
"code": "authentication.required",
"status": 401,
"messageParams": {},
"contextId": "869a5ae7-616f-42dc-9af2-ccf4acb83d2f",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
Why I am not getting the
${authResponse.token_type} ${authResponse.access_token}"? If I hard code the token is working fine. but I can't because the token is valid for 1 hour only.
Can you suggest to me where this is going wrong?
#Integrations------------------------------
Saravanakumar sakthivel
Accenture Solutions Private Limited
------------------------------