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

Répondu

3 Commentaires

  • Dwight Bussman
    Zendesk Customer Care

    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

    0
  • Groffer Anderson

    Thanks @...
    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 Customer Care

    HeyO @...

    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

Cette publication n’accepte pas de commentaire.

Réalisé par Zendesk