4

I am making a call to https://api.box.com/oauth2/token to get a token for a user.

I get a 400 with the following error:

Cannot obtain token based on the enterprise configuration for your app

I don't see this error message defined anywhere. Any ideas what I'm doing wrong?

srt32
  • 1,260
  • 1
  • 14
  • 27

1 Answers1

2

The issue here was that I was requesting a token for a non app user and my application was configured to allow access to app users only.

srt32
  • 1,260
  • 1
  • 14
  • 27
  • 1
    hmm do not understand what you mean – Nicholas DiPiazza Mar 15 '16 at 06:06
  • 2
    There are two kinds of Box users now that the developer edition is live: 1) app users and 2) normal Box users. The app users don't have a login and can be used only via API. Normal Box users have an email and password and a human can login via the UI. Depending on the configuration of the application, only certain types of users are allowed access via API. – srt32 Mar 29 '16 at 18:22
  • 1
    do you know what configuration parameter that is in the Box admin / developer UI to configure that? i'm struggling to find it. – Nicholas DiPiazza Feb 01 '17 at 15:51