Skip to main content
Solved

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

  • Jul 27, 2021 9:25 AM UTC
  • 3 replies
  • 1214 views
  • Translate All

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

3 replies

cmoreland
Semi-Pro III
Forum|alt.badge.img
  • Semi-Pro III
  • Jul 27, 2021 12:36 PM UTC

In my experience you will always need to “login”

 

Translate

  • Author
  • Freshman I
  • Jul 28, 2021 9:21 AM UTC

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

 

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Answer
  • Jul 28, 2021 9:50 AM UTC

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

 

Translate