Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Refresh token runs into infinite loop

    Posted 09-11-2025 04:56

    Hello Community,

    We are in the process of setting-up Genesys Authenticated Web Messenger. Our OIDC provider is PING and we have managed to get it working to the extent that we get an authenticated web-message in Genesys. The messenger widget on the website works fine initially when it connects first-time, but then when the tokens expire, the process seems to get the new JWT tokens back from Genesys, but the messenger widget then endlessly runs in a loop displaying an error.

    We are not sure what is causing this and have already raised a support ticket, but would like to know if anyone had faced similar issue.

    I am attaching the flow that we think is failing and also the errors that we see.

    Regards


    #WebMessaging

    ------------------------------
    Vineet Kakroo
    Senior Technical Consultant
    ------------------------------


  • 2.  RE: Refresh token runs into infinite loop

    Posted 09-12-2025 03:53

    Hi Vineet,

    We didn't hear about similar issue on our plateform. We should investigate  how PING server is behave is such case

    you mentionned you already opened a support case, it will help me investigate if you can share case number . 

    regards



    ------------------------------
    Frederic Thomas
    Senior Manager, Development
    ------------------------------



  • 3.  RE: Refresh token runs into infinite loop

    Posted 09-12-2025 04:26

    Hi @Frederic Thomas, the support ticket number is 0003854550



    ------------------------------
    Vineet Kakroo
    Senior Technical Consultant
    ------------------------------



  • 4.  RE: Refresh token runs into infinite loop

    Posted 09-12-2025 06:14

    Thanks ! 

    I was able to quickly review log at the platform level. 
    I have the impression the refresh token is not sent to service which make failed the command

    May be something to fix at your Messenger integration with your web page 

    https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/

    feel free to update the case with more details and Messenger logs 



    ------------------------------
    Frederic Thomas
    Senior Manager, Development
    ------------------------------



  • 5.  RE: Refresh token runs into infinite loop

    Posted 09-12-2025 07:02

    Thanks @Frederic Thomas.
    As far as I understand from developers, and I have mentioned in the ticket too, we are using the same messengersdk and have followed the same steps mentioned on the link you provided, so not sure what we are missing here. Anything specific you can point at that we need to look at ?

    Also can you elaborate on what you mean by "the refresh token is not sent to service", what service are you talking about. If you look at the flow diagram I have attached here and to the ticket, we seem to have done everything and get the initial JWT and connection is established but the refresh fails.

    Regards



    ------------------------------
    Vineet Kakroo
    Senior Technical Consultant
    ------------------------------



  • 6.  RE: Refresh token runs into infinite loop

    Posted 09-15-2025 03:56

    Hi Vineet,

    Except this blueprint example based on Okta https://developer.genesys.cloud/blueprints/messenger-authentication-okta-integration-blueprint/ , i don't have more resource to provide you

    by the service I mean the Genesys Cloud platform  and the API which manage the Auth connection with the OIDC server . the Messenger client should provide a refresh token to the platform in order to validate/authenticate the connection. I will check if we get one at the initial connection time
    on you side you can check your OIDC server is supporting the refresh token and well send back on the connection  

    regards



    ------------------------------
    Frederic Thomas
    Senior Manager, Development
    ------------------------------