How to logout uses when they've logged in on a custom portal

3 Kommentare

  • Dwight Bussman
    Zendesk team member

    HeyO Raghav,

    We also have a Sessions API endpoint documented here that would allow you to terminate the currently-authenticated session. If that doesn't help to do what you're looking for, I suspect that the method you're already using of directing folks to that access/logout URL is the best way to accomplish this.

    Dwight B. | Customer Advocate

    Zendesk Experience Research Panel

    0
  • Raghav Mishra

    Thanks Dwight Bussman
    So, The API does support deleting a session if I have a session_Id. Is there anyway to get the session_id when I login on the Zendesk console using the OAuth Grant? Or do we have a case where I can fetch the current session of zendesk, If I've used OAuth Grant flow? 
    If i won't have the session Id, I'll have to delete all the running sessions of the user, which does not seem to be the best option. 

    0
  • Dwight Bussman
    Zendesk team member

    HeyO Raghav Mishra

    Does this endpoint get you the session info you're after? https://developer.zendesk.com/rest_api/docs/support/sessions#show-the-currently-authenticated-session 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk