Box Profiles Configuration

The Box Profiles configuration file allows you to configure 0 or more Box profiles with the information required by Box services. To modify the Box Profiles configuration, click on siteConfig from the bottom of the Sidebar, then click on Configuration and select Box Profiles from the dropdown list.

Configurations - Open Box Profiles Configuration

Sample

{REPOSITORY_ROOT}/sites/SITENAME/config/studio/box/box.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Box profiles configuration file. This files configures 0 or more
    profiles with the information required by the Box API.

    For every profile you need to specify:
    <profile>
        <id/>
        <clientId/>
        <clientSecret/>
        <enterpriseId/>
        <publicKeyId/>
        <privateKey/>
        <privateKeyPassword/>
        <uploadFolder/>
    </profile>

    id:     a unique id for this profile, this will be referenced in the
        control defined in the content type
    clientId: Box client id
    clientSecret: Box client secret
    enterpriseId: Box enterprise id
    publicKeyId: Box public key id
    privateKey: Actual private key text in a CDATA
    privateKeyPassword: Password used to decrypt the private key
    uploadFolder: Name of the folder where files will be uploaded

-->
<box>
    <profile>
        <id>box-default</id>
        <clientId>...</clientId>
        <clientSecret>...</clientSecret>
        <enterpriseId>...</enterpriseId>
        <publicKeyId>...</publicKeyId>
        <privateKey><![CDATA[...]]></privateKey>
        <privateKeyPassword>...</privateKeyPassword>
        <uploadFolder>videos</uploadFolder>
    </profile>
</box>

Box Configuration

To obtain the clientId, clientSecret, enterpriseId, publicKeyId, privateKey and privateKeyPassword you need to use a Box Developer Account to create a new App and configure it to use OAuth 2.0 with JWT.

For more details you can follow the official documentation.

Note

If you are using a JRE older than 1.8.0_151 you need to install the JCE Unlimited Strength Jurisdiction Policy Files. For newer versions you only need to enable the unlimited strength setting.