Authenticated Web Messaging Error

Hello,

I am trying to get Web Messaging working for Authenticated Users for my application. However, whenever I attempt to authenticate using the AuthProvider I get an error from this endpoint from Genesys https://api.usw2.pure.cloud/api/v2/webdeployments/token/oauthcodegrantjwtexchange

Here is the following error:

code: "unauthorized"
contextId: "49f86070-e06c-4978-abc8-57cd17308c2f"
details: []
errors: []
message: "Failed to identify user for token: a459b103f8f2b13a53b6647cff67b8ba deploymentId: REDACTED"
status: 401

I have validated that the OAuth flow is working as intended e.g.

  1. Make a request to obtain an AuthCode on my Authorization Servers endpoint /oauth/authorization
  2. Using that code to obtain a token /oauth/token

Is there any context on why this is failing for me?

Hi,

Thanks for reaching out.
It looks like that your /token url in the discovery document uses http:// scheme instead of https://
Using http:// is not allowed.

Hope this helps,

Regards,
V.P.

1 Like

Thanks @vpirat! Looks like that solves it!

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