Reauthorizing app doesn't fix enterprise configuration
I've downloaded the Json Config file and tried to use the client ID and secret to authorize the app instead of the developer token. The line that I'm getting the error is
BoxDeveloperEditionAPIConnection client = BoxDeveloperEditionAPIConnection.getAppUserConnection("FakeUserID",boxConfig, accessTokenCache);
and the error that I'm getting is {"error":"invalid_request","error_description":"Cannot obtain token based on the enterprise configuration for your app"}.
The program reads the config file correctly, but I can't get past the invalid request error.
-
to use User Access Tokens you will need to enable "Generate User Access Tokens" in your app config on https://cloud.app.box.com/developers/console/
Please sign in to leave a comment.
Comments
3 comments