Authenticated Web Messaging Help

Hi, I'm looking into implementing authenticated web messaging and need some advice please. If customers using our website have already logged into the website and have already gone through the authorisation code flow process to obtain a JWT for the website login is there a way to register that existing JWT with Genesys to enable authenticated web messaging to work? Or do we need to go through the authorisation code flow a second time to obtain a new authorisation code and run the code mentioned here: https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/authenticatedMessenger to exchange the new auth code with a new JWT for Genesys to use to enable authenticated web messaging to work?

Any help would be greatly appreciated.

Hello @Robert_Foote you may be trying to avoid the secondary Authorization Code cycle, so that already logged-in user doesn't have to re-authenticate. We see that with some vendors (like Okta) the additional Auth-flow is seamless, the redirection to End-User is almost unnoticeable. Additionally, Okta has an alternative response_mode that doesn't require redirect, known as okta_post_message.
I believe you are also suggesting a different Auth flow where JWT may be provided by the client directly: something for future consideration.

Hi @Angelo_Cicchitto,

We are using Auth0 for authentication. We have 2 websites currently using unauthenticated web messaging (2 different messenger deployments). Our customers have to be logged into these websites already before they can get access to the chat icon but we want the ability to have the chat sessions named as the customer as currently they all display as "Guest" so this is the main reason for looking into authenticated messaging.

Our customers login to each respective website and get redirected to Auth0 login page to enter details and get authenticated with Auth0 and are then redirected back to the website with JWT attached. If we've already got a JWT can that be used for authenticated web messaging in Genesys somehow with the same code mentioned here: https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/authenticatedMessenger or by some other code or command or is this not possible?

Do we need to add the Genesys SDK code to the Auth0 login page to obtain a second authorisation code and exchange for another JWT via the Genesys integration to Auth0?

Hi @Robert_Foote,

As of now, getting a second authorization code would be the way to go.
Feel free to create a feature request for you use case so that it can be reviewed and integrated in future developments.

Regards,
V.P.

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