Solved

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

  • 27 July 2021
  • 3 replies
  • 784 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!

icon

Best answer by Naveen Boga 28 July 2021, 11:50

View original

3 replies

Userlevel 4
Badge

In my experience you will always need to “login”

 

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

 

 

Userlevel 7
Badge +17

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

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved