Accessing Session Token in server-side app | Community
Skip to main content

Accessing Session Token in server-side app

  • September 13, 2023
  • 3 replies
  • 0 views

Simon32

Our agents are logging into Zendesk using SSO. We want to create a server-side app running in our own account and use the token generated when agents log in to Zendesk for authentication so they can access the server-side app. How can we allow the server-side app to access the token generated for the parent Zendesk application? 

Thanks, Simon 

3 replies

Simon32
  • Author
  • September 27, 2023

Hi, I posted this 2 weeks ago now, can you help me with an answer please? thanks 

 


Hi Simon,
 
The app would not be able to access the token received when authenticating the agent session.  But you can use ZAF JWT to ensure that the server-side app's remote URL is being requested by your Zendesk instance (which could only happen during an active agent session).  This accomplishes the goal of securing the server-side app.  Would this fit your use case?

Simon32
  • Author
  • October 31, 2023

Thanks, this is what we've done now