Skip to main content
Solved

Oauth Logout question

  • Aug 25, 2023 6:54 PM UTC
  • 3 replies
  • 343 views
  • Translate All

jamest
Varsity I
Forum|alt.badge.img

I’m a little confused with the OAuth logout method. I have the login/token method working, but once the token is issued and the api’s are finished do I need to post a logout? Or can I continue to use that token for subsequent calls. 

Also, if I need to logout, what do I pass? I see the methods in the videos about Postman, but I’m using Power Automate Desktop actions for the automation. Thanks!

Best answer by Dmitrii Naumov

@jamest you don’t need to logout unless you use api_concurrent access scope. 

If you have that scope, each new request can create a new user session, and in that case you need to log them out. 

 

As to what to pass to logout, you need to pass a cookie with SessionID to indicate what session you want to close.

View original

3 replies

Forum|alt.badge.img+8
  • Captain II
  • Aug 25, 2023 7:56 PM UTC

I’m not sure about the logout part but your token will only last for about an hour unless you refresh it.

Translate

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • Answer
  • Aug 25, 2023 9:29 PM UTC

@jamest you don’t need to logout unless you use api_concurrent access scope. 

If you have that scope, each new request can create a new user session, and in that case you need to log them out. 

 

As to what to pass to logout, you need to pass a cookie with SessionID to indicate what session you want to close.

Translate

jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • Aug 26, 2023 2:39 PM UTC

Got it. Thanks for the feedback. 

Translate