You need to create a Box developer App before you can crawl Box files and
folders.
Before you begin
You must create a Box account at Box. Enable 2-step verification in Box
Security.
Procedure
Create an RSA keypair
-
Run the following shell commands.
openssl genrsa 2048 > private-box.pem
openssl rsa -in private-box.pem -pubout -out public-box.pem
Make a copy of public-box.pem.
If you create a RSA key-pair with a passphrase, you must install unlimited strength JCE Policy
files (local_policy.jar and US_export_policy.jar). For
more information, see Installing JCE Unlimited Strength Files.
Create an App on the Box developer site
-
Log in to Box
Developers and create a new Enterprise Integration App.
-
Select OAuth 2.0 with JWT (Server Authentication) and create the App.
-
View the App and select Configuration.
-
Copy the Client ID and Client Secret. You will use these items when configuring the
crawler.
-
Select Enterprise as Application Access.
-
Enable all options of Application Scopes.
-
Enable Perform Actions as Users and Generate User Access Tokens options in Advanced
Features.
-
Click Save Changes.
-
Click Add a Public Key and enter the content of
public-box.pem.
-
Copy Public Key 1 ID. You will use this item when configuring the crawler.
Authorize the App
-
Go to Admin
Console.
-
Select any department, check that you are managing a team, and thern click Get Started.
-
On the Admin Console click Business Settings.
-
On the Account info tab, copy the Enterprise ID. You will use this item when configuring the
crawler.
-
On the Apps tab click Authorize New App.
-
Enter the Client ID as API Key, and then click Authorize.
If you modify the App, you will have to authorize it again.