Skip to main content
Solved

Oauth Logout question

  • August 25, 2023
  • 3 replies
  • 271 views

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.

3 replies

Forum|alt.badge.img+7
  • Captain II
  • August 25, 2023

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


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • August 25, 2023

@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.


jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • August 26, 2023

Got it. Thanks for the feedback.