Messenger authenticated chat returning 401

Hi,

I have a problem where the authenticated messenger chat returns the following while calling the
https://api.mypurecloud.ie/api/v2/webdeployments/token/oauthcodegrantjwtexchange:

{
"message": "Failed to identify user for token: 25f9e794323b453885f5181f1b624d0b deploymentId: 67f27026-xxx
"code": "unauthorized",
"status": 401,
"contextId": "0d1c265c-a23e-4315-a511-b3e6c0f68895",
"details": [],
"errors": []
}

From our IDP I can see that Genesys is calling discovery endpoint, token endpoint and then it retrieves the keys from the keys endpoint. I can see the returned token validates in jwt.io but maybe there is something that fails to validate in Genesys. Is there any way to see the logs on the Genesys Cloud to see why is it returning 401?

Hi,

Thanks for reaching out.

From the logs, I could see that there's a mismatch in the nonce config.

You are setting this security parameter in one leg, but not in the other.
If you set, it must be filled everywhere. If filled, it must be identical everywhere.
If you don't use it, do not specify it.

Hope this helps,
Regards.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.