Skip to main content
Solved

Authorization doesn't take effect when I use OAuth2.0 to call API


Hi Experts,

II’m trying to test Acumatica’s OAuth Authorization flow using Postman. I already created a Client in the Connected Applications screen, and set the flow to Authorization Code. Also I got the access token after I called the authorize api.

I can call the OData service successfully as below.

But when I call the web service to get sales orders with the access token, I always get a message “You are not logged in.” Here is the screenshot.

Do we still need to call LogIn api again when we call the web service with access token?

Thanks in advance!

Best answer by Naveen Boga

Hi @DennyYang14  According  to me, before we working with Authorization code flow, we have to do the authentication using login API call.

 

View original
Did this topic help you find an answer to your question?

3 replies

cmoreland
Semi-Pro III
Forum|alt.badge.img
  • Semi-Pro III
  • 106 replies
  • July 27, 2021

In my experience you will always need to “login”

 


  • Author
  • Freshman I
  • 2 replies
  • July 28, 2021

@cmoreland I agree with you. But the sample in Wiki doesn’t ask us to login.

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3375 replies
  • Answer
  • July 28, 2021

Hi @DennyYang14  According  to me, before we working with Authorization code flow, we have to do the authentication using login API call.

 


Reply


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