Enabling JWT (JSON Web Token) single sign-on

Return to top
Have more questions? Submit a request

97 Comments

  • Cyndi Lopez

    What is the 'locale' id passed in the payload used for? Currently after logging in a user is directed to <your-domain>.zendesk.com and not sure how it knows what language to default to and whether this default language can be changed by passing in a locale through the payload

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Cyndi,

    I see this is your first post in the forums so I just wanted to say welcome!

    Regarding your question, are you asking what language would be presented to the user when they navigate to your Help Center? You may want to take a look at the following article: Help Center default locales and language detection

    Let me know if that doesn't get you the information you're looking for.

    Cheers!

    0
  • Mike Riforgiate

    Once we set up SSO JWT in Zendesk and Wordpress Zendesk plugin, what link can we provide our customers that will use their creds from our site and send them to any tickets they have open in our zendesk?

     

    We currently have a link called "tickets" on our website for our customers with the target being https://ourcommpany.zendesk.com/agent and they get an access denied result.

    0
  • Nathan Owens

    The documentation states that the tags value should be a JSON array.  So, assuming I have two tags, let's say "tag1" and "tag2", I would expect it to look like this: "[\"tag1\",\"tag2\"]" however this doesn't work.  What does work is simply making the tags value a comma separated list like so: "tag1,tag2".  This is not a JSON array, but it seems to work.  

    The one I just can't figure out is user_fields.  The documentation states it should be a JSON hash, so I would expect something like this: "{\"enrollment_date\":\"2014-10-08\", \"is_admin\":true}" etc.  This causes an error that states the JWT token is invalid.  In fact, including any value at all in the user_fields, causes that error.  Can someone please provide an example of the format for the user_fields claim?

    0
  • Raghav Mishra

    Thanks for this amazing Article. 
    I have been working on a custom support, that will have a login page. I want my users to login to their zendesk from this login. I guess SSO using JWT may be the best way. 
    I have a React application, How can I Proceed with this? 

    I have added the steps below, can someone please confirm if I'm missing something? 

    1. Send the user credentials to My server, (when the user logs in).
    2. Authenticate the user. 
    3. Once authenticated, Generate a JWT token and send it with the new URL generated to the react app as response. 
    4. The webapp redirects to zendesk and back to my application. This process includes saving the session for Zendesk (now my browser holds session for zendesk).

    Did I miss out anything? Also Please let me know how can I authenticate my user? 
    Note: I'm using Node on the Backend. 

    Thanks for the help in advance. 

    1
  • Raghav Mishra

    Hi, 
    The process works fine as expected and I get logged into Zendesk with the url along with token. But, I want to jump to a different page, once the zendesk session is set. 
    Here is the behavior I'm expecting : 

    1. I login with the user credentials on my custom application.
    2. User is authenticated from my server and I also get a JWT.
    3. I want to redirect to Zendesk with the JWT and then back to my application. (so the Zendesk session is saved and whenever I open zendesk, It opens up as logged in).

    I tried adding return_to with a non Zendesk URL, but it does not work. How can I get this thing to work? 

    Thanks in Advance for the help.

    -1
  • Balaji

    Hi,

    I followed the exact steps as given, but always the page is always navigated to the login page only and doesn't navigate to the home page of Zendesk. 

    Upon research in the Network tab of the browser, the first request is seen as "301 Moved Permanently", has the implementation at Zendesk for JWT been modified, if so, can you please point me to the right documentation or what am I missing here?

    Thanks.

    1

Please sign in to leave a comment.

Powered by Zendesk