clientId
Box Connector 5.0 Additional Configuration
To use Box Connector in a Mule app, configure a global Box configuration element to use by as many Box connectors as needed for your application.
Configure the Box Connector Global Element
-
Click the Global Elements tab at the base of the canvas.
-
In the Global Configuration Elements screen, click Create.
-
In the Choose Global Type wizard, expand Connector Configuration and select Mule-box-connector Config and click OK.
In the configuration screen forOAUTH 2.0with Authorization Code, grant type displays. This is the only configuration that Box Connector supports. -
Configure the properties as described here.
Parameter Description Specifies the client identifier as assigned by the authorization server when the client application was registered.
clientSecretSpecifies the client application’s client secret.
hostThe host where Box exposes its API.
portThe port where Box services listen for incoming requests. Default: 443
basePathThe base path for the Box services' base URI.
protocolThe protocol which Box services follow. Default: HTTPS
localCallbackPathThe local callback path. Default: /callback
localCallbackConfigThe HTTP Listener configuration that is used to configure the local authorization URL.
externalCallbackUrlThe redirect URL that is configured in the client application.
localAuthorizationUrlLocal authorization URL that is used to initiate an
OAuth2dance.authorizationUrlThe authorization URL to request for an authorization code.
accessTokenUrlSpecifies the URL for requesting an access token.
In the
OAUTH 2.0configuration screen, the placeholder values refer to a configuration filemule-artifact.propertiesplaced in thesrc/main/resourcesfolder of your project.You can either enter your credentials into the global configuration properties, or reference a configuration file that contains these values.
Use a configuration file for simpler maintenance and better reusability of your project. Keeping these values in a separate file is useful if you need to deploy to different environments where your access credentials are different, such as production, development, and QA. -
Click OK.
Next
Now that you have completed configuration, you can try out the Box Connector Examples.



