Authentication Method
oauth_2- OAuth 2.0 user authentication
OAuth 2.0 Setup
Step 1: Create a Box App
- Go to Box Developer Console
- Click Create New App
- Select Custom App
- Choose Standard OAuth 2.0 as the authentication method
- Enter your app name and click Create App
Step 2: Configure OAuth Settings
- In your app settings, go to the Configuration tab
- Under OAuth 2.0 Redirect URI, add your callback URL
- For CLI flow:
http://localhost:<port>
- For CLI flow:
- Under Application Scopes, select the required permissions:
Read all files and folders stored in BoxWrite all files and folders stored in Box
- Click Save Changes
Step 3: Get Client Credentials
- In the Configuration tab, copy the Client ID and Client Secret
- Store these securely
Required Credentials Summary
| Credential | Required For | Where to Find |
|---|---|---|
| Client ID | OAuth 2.0 | Developer Console → App Configuration |
| Client Secret | OAuth 2.0 | Developer Console → App Configuration |