Skip to main content
Answer

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

  • July 27, 2021
  • 3 replies
  • 1137 views

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.

 

3 replies

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

In my experience you will always need to “login”

 


  • Author
  • Freshman I
  • 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
  • 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.