Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Configuring Web Messaging Guest API for an authenticated session

    Posted 10-17-2024 08:58
    No replies, thread closed.

    Does anyone in the community have experience with Web Messaging Guest API and authenticated sessions?

    Summary

    We have a backend service that is using Web messaging Guest API to establish a WebSocket connection with Genesys and transfer a chat session to a live agent.

    Problem statement

    To comply with security requirements, we need to have an authenticated session with Genesys.

    Problem details

    For proof of concept, we are using ConfigureSession action which does not have authentication: https://developer.dev-genesys.cloud/commdigital/digital/webmessaging/websocketapi#configure-a-guest-session

    With these parameters:
    {

        "action": "configureSession",

        "tracingId": "{{tracingId}}",

        "deploymentId": "{{deploymentId}}",

        "token": "{{token}}"

    }

     

    What we want to use is ConfigureAuthenticatedSession action: https://developer.dev-genesys.cloud/commdigital/digital/webmessaging/websocketapi#configure-an-authenticated-session

    It has an additional parameter "Code"

    • code (required) A JWT token retrieved from Genesys platform API URLs during user authentication.

    Given that the authentication has to happen between two services (aka Service-to-Service authentication) how can our service get the "Code" parameter to be passed to ConfigureAuthenticatedSession  action?


    #DigitalChannels

    ------------------------------
    Colin Sims
    IT Senior Staff Specialist
    ------------------------------


  • 2.  RE: Configuring Web Messaging Guest API for an authenticated session

    Posted 10-17-2024 09:35
    No replies, thread closed.

    That token should come from the Open ID server that is required for authenticated web messaging.



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Configuring Web Messaging Guest API for an authenticated session

    Posted 10-17-2024 09:48
    No replies, thread closed.

    Thanks for the quick response,

    Yes, I agree that's what it seem to say. However, we can't see how to engage the Open ID server as part of the Web Sockets connection. The documentation isn't very clear as to how that process happens.

    Our application is server to server, there is no end user to perform this function mentioned in the documentation:

    • code (required) A JWT token retrieved from Genesys platform API URLs during user authentication.

    We are simply wanting to secure the Web Sockets sessions, not apply end user authentication to the Web Messaging.



    ------------------------------
    Colin Sims
    IT Senior Staff Specialist
    ------------------------------



  • 4.  RE: Configuring Web Messaging Guest API for an authenticated session
    Best Answer

    Posted 10-17-2024 10:22
    No replies, thread closed.

    Hi Colin,

    This is probably a good question to ask on the Developer Forum.  They should be able to help with how this can be configured



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------