Direct users via SSO to the right Help Center (locale)

Answered

4 Comments

  • Simon Celen
    Comment actions Permalink

    Dag Ron,

    You should be able to do that with JSON Web Token SSO. Your SSO server can set a "return_to" parameter on the Zendesk endpoint with the JWT payload, which Zendesk will follow. 

    On successful authentication you could use the culture variable on your backend to direct the user to the relevant language. 

    Dutch culture => /hc/nl

    German => /hc/de

    All other => /hc/en-gb

     

    So for a user with Dutch culture:

    https://yourcompany.zendesk.com/access/jwt?jwt=yourpayload&return_to=https://your.guide.com/hc/nl

     

    Feel free to get in touch if you have any further questions.

     

    groeten,

    Simon Celen

    0
  • Devan - Community Manager
    Comment actions Permalink

    Hello Simon,

    Thanks for this awesome response!

     

    0
  • Ron de Vries
    Comment actions Permalink

    Hi Simon, 

     

    Thanks a lot! That option is very applicable. However, normally the locale should be based upon the browsers language. Now it seems that the Help Center uses the '' best guess'' (compatible_browser_locale) method rather than the default locale. 

    It's under review of the Product Management team of ZenDesk now. 

    Your solution to use the return_to parameter in the JWT request was also recommended by ZenDesk to use in the meantime. 

    Nevertheless thank you for the time to comment on my post! 

    Best regards,

    Ron

    0
  • Simon Celen
    Comment actions Permalink

    Hi Ron,

    I'm not aware of the specific setup you have but during the SSO authentication process the user's browser is redirected to your SSO server. As such, you have full access to the request headers and anything else you might need. With that information you can develop your own algorithm to determine the best language for a particular user. Setting that language in the return_to parameter circumvents any guesswork on Zendesk's side when the user is directed back to your Help Center.

    Specifically for your use case, the user's browser language can be found in the "Accept-Language" header.

    0

Please sign in to leave a comment.

Powered by Zendesk