access-tokenbox-api

Box API token request enterprise configuration issue


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?


Solution

  • 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.