Legacy Dev Forum Posts

 View Only

Sign Up

Web messaging with authentication

  • 1.  Web messaging with authentication

    Posted 06-05-2025 18:37

    dgarciac | 2024-01-30 15:34:08 UTC | #1

    Hi all,

    I wants to use web messaging with authentication. I have configured the “OpenID Connect Messenger Configuration” and activated the “Authentication” flag in the widget Messenger configuration, but I cannot guide to the Customer for the Javascript code required in widget deployment

    Does anyone know the following parameters and can help me? Or maybe provide me with an example?

    • authCode: <brand auth code>, (// pass your authorization code here)
    • redirectUri: <your redirect uri>,(// pass the redirection URI configured in your Authentication provider here)
    • nonce: <your nonce>, ( pass the random string preferably in uuid format. Applicable for OKTA provider. )
    • maxAge: <your maxAge>, (pass elapsed time in seconds. Applicable for OKTA provider and it is an optional parameter.)
    • codeVerifier: <your code verifier> (pass your code verifier here when PKCE flow is enabled)
    • iss: <your iss>, (pass your iss here. It is an optional parameter provided in the authorization response by your Authentication provider.)

    (From: https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/authenticatedMessenger)

    Please, can you help me?

    Thanks in advanced and best regards


    vpirat | 2024-02-02 15:09:14 UTC | #2

    Hi,

    I would advise in first place to play only with authCode and redirectUri. All other parameters are optional and provide extra security. They can be added in a second step. redirectUri is easy: that's the url configured in the authorization server for your app to redirect the user after successful authentication. It has to be strictly identical. Otherwise login will fail. authCode: this parameter is set when the authorization server redirects the user after successful authentication, it adds some url parameters like the temporary code \<redirectUri>?code=\<code> This code is valid for a short period of time (usually 1 minute) and can be used only once.

    Settings those 2 parameters should guide you to successful authentication. I would also advise to test first manually (outside of Messenger) to request a code and then doing the login (all with http requests). You may want to read those articles that go more in details for the Http requests.

    https://developer.genesys.cloud/forum/t/getting-an-error-while-authenticating-user-with-help-of-openid-connect-messenger-configuration/24077

    https://developer.genesys.cloud/forum/t/i-want-to-enable-authentication-for-web-messenger-using-openid-integration/23956

    Hope this helps,

    Regards, V.P.


    system | 2024-03-03 15:08:58 UTC | #3

    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: 24380