Using restricted help center content with Web Widget (Classic)

Return to top

9 Comments

  • Robert Dahlborg

    Hi. Trying to understand how to use jwt tokens with the web widget. Do I need one jwt for each integration(support,guide,chat) signed with 3 different keys? 

    Robert

    0
  • Miranda Burford

    Hi @...,

    >Hi. Trying to understand how to use jwt tokens with the web widget. Do I need one jwt for each >integration(support,guide,chat) signed with 3 different keys? 

    Yes, that's correct.  You'll need one JWT for each integration with 3 different keys.  We're hoping to simplify this in the future.

    - Miranda.

    0
  • Robert Dahlborg

    Hi Miranda, 

    Thank you for the answer. May I suggest that you implement support for JWT signing using the HS256 algorithm which is an asymmetric algorithm? This would be super easy for you to implement and the same token can be used across all your api's. It would also eliminate the need to create a purpose built service for zendesk tokens, i.e. one could use an external identity provider without having to exchange jwt tokens. 

    Regards

    Robert

    0
  • Arno Lindroos

    User segments are not discussed in this article, and does someone know or even has experience about this: if customer user is authenticated with SSO, does widget then automatically limit/allow the KB content according to the user segments of the user in question? 

    0
  • Anna Roussanova

    Hi Sovellin, yes, if the user is authenticated into the widget as described in this article, they will see the articles appropriate to their user segment.

    0
  • Miranda Burford

    Hi @...,

    Thanks for your feedback on this.  Much appreciated!  I've passed this suggestion onto the team to consider in the future.

    - Miranda. 

    0
  • Kornelia Szabo

    Hi Tech Support, 

    I would be also very interested in this: https://support.zendesk.com/hc/en-us/articles/222874768/comments/360000717727

    Namely how to do the setup for the allow list so local development is also possible? 

    1
  • Noe Landaverde

    Hi, 

    I've been trying to make this work to no avail. My subdomain and even localhost are already whitelisted, made my subdomain run locally by adding it to my machine's hosts file but still the content is not loading. This is also true when running my app on localhost. Do I really have to deploy this code to be able to test it?

    1
  • Miranda Burford

    HI @...,

    In order to test this in your development environment, you should be able to specify localhost or 127.0.0.1 as a valid domain in the allow list.  Please give that a try (should also work with Help Center articles) and let us know how you go.

    Thanks,

    - Miranda.

     

    0

Please sign in to leave a comment.

Powered by Zendesk