Skip to main content
Solved

Unable to use API login type with Resource Owner Password Credentials Flow

  • November 19, 2024
  • 7 replies
  • 109 views

KurtBauer
Jr Varsity III
Forum|alt.badge.img

We want to provide access for customers to certain data via the API using the resource owner password credentials flow.  We can successfully login to get a token if the login type is UI or unrestricted, but we need to limit the user to API so they can’t login directly through the UI.  Is this possible?

Details

  1. The first screenshot shows the normal token request when the username has a login type of UI or unrestriced.
  2. The second screenshot we limit the user type to API only
  3. The third screenshot shows how the same Postman request from #1 now provides an error that only API requests are available for the user.

Is it not possible to lock the user account down to only allow API access but also get a token?

 

Best answer by Dmitrii Naumov

Hi ​@KurtBauer I’ve tried in 23r2 and searched the bug tracker.

This issue has already been reported and resolved in 24r2. Unfortunately, in earlier versions the bug indeed presents. 

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

7 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 629 replies
  • November 20, 2024

@KurtBauer looks like a bug to me. 

We’ll check and report to engineering if it is.


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 47 replies
  • November 26, 2024

@Dmitrii Naumov were you able to determine if my post above is a bug?  I’d like to let the client know.

Thanks


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 629 replies
  • November 27, 2024

@KurtBauer we need more time to verify that.


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 47 replies
  • December 10, 2024

@Dmitrii Naumov Are there any updates if this is a bug or should I open a case?  


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 629 replies
  • December 11, 2024

@KurtBauer what version do you have? 

We’ve checked on our side and it seems to work fine with the scenario you’ve described.


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 47 replies
  • December 11, 2024

The site is on 23.211.0017


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 629 replies
  • Answer
  • December 13, 2024

Hi ​@KurtBauer I’ve tried in 23r2 and searched the bug tracker.

This issue has already been reported and resolved in 24r2. Unfortunately, in earlier versions the bug indeed presents. 


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