Skip to main content
Solved

Oauth Logout question


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
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+6
  • Captain II
  • 556 replies
  • 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
  • 632 replies
  • 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
  • 41 replies
  • August 26, 2023

Got it. Thanks for the feedback. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings