Using Box with JWT (Server Authentication)

I use JWT server authentication in the Box API API:

IAccessTokenCache accessTokenCache = new InMemoryLRUAccessTokenCache(100); Reader reader = new FileReader("D:\\config.json"); BoxConfig boxConfig = BoxConfig.readFrom(reader); BoxAPIConnection api = BoxDeveloperEditionAPIConnection.getAppUserConnection(USER_ID,boxConfig); 

but Box exception:

 {"error":"unauthorized_client","error_description":"This app is not authorized by the enterprise admin"} 

enter image description here

+5
source share
2 answers

The Box administrator must go to the Admin Console β†’ Enterprise Settings β†’ Applications and authorize your application.

+4
source

@kendomen is right. Here are some more details:

Go to api.box.com. Then select "Admin Console."

enter image description here

Now this is where he gets funky. Click on the security step.

enter image description here

Then fine print.

enter image description here

This gives a toolbar that should have been displayed three steps back. Click "Applications."

enter image description here

Then click "Authorize new application."

enter image description here

As a result, a pop-up window appears in which you enter the application key. This is referred to as the β€œClientID” in the json file that you may have downloaded from Box.com.

enter image description here

+4
source

All Articles