Got to know we need to configure API endpoint URL in "Authentication URL" in Widget section.
Ex. https://IP Address:8443/AuthenticatedWebChat/authServlet. Is this url is ok?
How to pass the signed jwt token in create chat script. Pls share the script format.
As I am not sure to which widget version you are referring to, please note that Authenticated Web Chat is only supported with Widgets version 1.0 and Widgets version 1.1.
Authenticated Chat is not supported with Widgets v2.
See Widget feature comparison.
You don't need to configure a link to your authServlet. The example assumes that you have made a request from your web page/server before invoking/initializing the widget.
JWT/token can be sent using the API directly or the widget provided by PureCloud.
Using the API it should be sent via the memberAuthToken property when starting the chat.
Using the widget it should be sent via the headers containing a Client-Token property.
We are using API and need pass via memberAuthToken.
Enclosed is the snapshot where it's mentioned that API endpoint URL in "Authentication URL" in Widget section in Genesys Cloud needs to be configured
If you are using the API (Guest Chat API), I don't think that the Authentication URL (in the Widgets configuration - in Admin/Contact Center/Widgets) matters.
The Authentication URL, which is declared in Admin/Contact Center/Widgets) is meant for the built-in Widgets v1.0/v.1 UI.
It would indeed be the url of the service you have developed to get the token (authServlet).
When you use the Widgets v1.1 UI and you invoke the authenticateGuest (as shown in the example), the provided/built-in widgets in fact retrieves the Authentication URL from the config and issues a request to this URL automatically. The Authenticated Chat page leverages the Widgets v1.0/v.1.1 built-in/provided UI.
If you use the Guest Chat API, then you manage this part yourself (making a request to your auth servlet).
Then, when the jwt token is returned to the web client, you have to send it as part of the Create Chat request.
If I remember properly, the body would be like this:
The data from the signeddata request will be added to the conversation context as participant attributes.
Note that you can check what has been attached using a GET /api/v2/conversations/{conversationId}
I just did a quick test and if you pass an attribute with keyname "mySignedData1" (as an example) in the signeddata request, it will be added to the conversation context as "context.verified:mySignedData1".