Enabling authenticated visitors in Web Widget (Classic)

Return to top

7 Comments

  • Chaos

    Hi, @... could you provide us with a complete downloadable example of this topic with php.
    please.

     
    0
  • Dave Dyson
    Zendesk Community Manager

    Hi David,

    Did you see the download link in the PHP section above? PHP

    0
  • Chaos

    hi,@....

    yeah I'm very confused by now, I did all the steps and it still doesn't work. so request the downloadable I think it will help us all.

    0
  • Dave Dyson
    Zendesk Community Manager

    @... Here's the link from above: PHP-JWT

    0
  • Andrew Reid (Agent)

    Hi Ramin Shokrizadeh thanks for this guide. After implementing the changes described, we're experiencing some odd behaviour. The user appears to be authenticated and sees their readonly profile information as expected. However, upon clicking the 'Start Chat' button, the following error message is displayed:

    There are no network or console errors visible in the browser, and when the logic in `webWidget.authentication.chat.jwtFn` is removed, the unauthenticated chat works as expected. Any insights into how to resolve this would be much appreciated!

    Edit:
    I have seen this article on this error message and have confirmed the 2 causes identified there are not applicable here.

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

    Andrew Reid (Agent) Thanks for letting us know about the issue you are experiencing. Can you please reach out to our advocacy team with the link to where the widget is located and authenticating visitors so we can have a look at what is going on with your implementation? 

    0
  • Andrew Reid (Agent)

    Thanks Ramin Shokrizadeh! We were able to identify the problem. In case it's helpful for anyone else, when adding the authentication logic we forgot to remove an existing usage of the identify command. After removing that, the authenticated user was able to start the chat without issue.

    0

Please sign in to leave a comment.

Powered by Zendesk