Legacy Dev Forum Posts

 View Only

Sign Up

Authenticated Web Messaging Error

  • 1.  Authenticated Web Messaging Error

    Posted 06-05-2025 18:38

    TonyE | 2024-07-16 01:49:55 UTC | #1

    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?


    vpirat | 2024-07-16 06:41:55 UTC | #2

    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.


    TonyE | 2024-07-16 14:12:20 UTC | #3

    Thanks @vpirat! Looks like that solves it!


    system | 2024-08-15 14:13:14 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 27253