Skip to content
Last updated

Box integration

Box is a cloud content management platform for storing, sharing, and collaborating on files and folders. Integrating Box with Frontegg allows your application to access files, folders, and collaborations on behalf of your users using OAuth 2.0.


Prerequisites

Connect Box

Step 1: Open the developer console

Log in to Box and navigate to the Box Developer Console. The console lists all your platform apps.

Box developer console

Step 2: Create a new application

Click New App. In the dialog that appears:

  • App Name — Enter a descriptive name, for example Frontegg Integration.
  • App Type — Select OAuth 2.0 (User or Client Authentication).

Click Create App.

Box create new app dialog

Step 3: Copy your credentials

After the app is created, you are taken to the Configuration tab. Scroll down to the OAuth 2.0 Credentials section. Copy your Client ID and Client Secret — you will need both when configuring the Frontegg portal.

Client Secret visibility

The Client Secret is masked on screen. Use the Copy button next to the Client Secret field to copy it to your clipboard.

Box OAuth 2.0 credentials

Step 4: Configure redirect URIs

Scroll down to the OAuth 2.0 Redirect URIs section. Enter the following URI in the Redirect URI field and click Add:

  • https://YOUR_MCP_GATEWAY_URL/integration-callback

Box redirect URI configuration

Step 5: Configure application scopes

Scroll down to the Application Scopes section. Select the following scopes:

ScopeDescription
Read all files and folders stored in BoxRequired to read files and folders
Write all files and folders stored in BoxRequired to create, update, and delete files and folders
Manage usersRequired to manage user accounts
Manage groupsRequired to manage groups
Manage webhooksRequired to manage webhooks

Default scopes

The Read and Write scopes for files and folders are enabled by default when you create an OAuth 2.0 app.

Box application scopes

Step 6: Save changes

Click Save Changes at the top of the configuration page to apply all settings.

Box configuration saved

Configure the Frontegg portal

Once you have obtained your Client ID and Client Secret from the steps above, enter them in the integration configuration page of the Frontegg portal:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT] → Integrations → Box.
  2. Enter the Client ID and Client Secret in the corresponding fields.
  3. Select the required scopes.
  4. Click Save.

Keep your credentials secure

Never share or commit your Client Secret to version control.

Additional resources