Set up the Box spoke
Integrate your ServiceNow instance and the Box APIs to automate the Box spoke actions. For example, you can set up a flow that removes a file in your Box account. When you set up the Box spoke, this flow is automated.
시작하기 전에
- Request an Integration Hub subscription.
- Activate the Box spoke.
- Access to Box developer's console.
- Role required: admin.
Create an OAuth application
Create a custom OAuth application from your Box account to enable OAuth 2.0 authentication with the Box spoke.
시작하기 전에
- Box account
- Box administrator credentials
- Role required: admin
이 태스크 정보
프로시저
Configure a connection record for the Box spoke
Add and configure a Box connection to authenticate ServiceNow requests in a Box spoke.
시작하기 전에
Role required: admin
프로시저
결과
The spoke connection is configured and ready to be used.
Regenerate Box OAuth token
Regenerate the Box OAuth token when it expires. The Box spoke OAuth token expires every thirty days.
시작하기 전에
Role required: admin
프로시저
- In your ServiceNow instance, navigate to .
- Select the Connections tab.
- Search for the Box connection alias.
- Select View Details.
- Select Get OAuth Token for the connection.
결과
Integrate ServiceNow instance with JWT Bearer grant type
Set up an OAuth provider with the JWT Bearer grant type to integrate your ServiceNow instance with Box.
시작하기 전에
Role required: admin
프로시저
-
Do the steps at the Box end.
- Sign Up for Box Developer Account.
- On the Developer Console, select Custom App.
- Confirm that the authentication method is OAuth 2.0 with JWT (Server Authentication).
- Enter a unique name for the app and create the app.
- View the app.
- On OAuth 2.0 Credentials, copy the Client ID and Client Secret.
- Create a new keystore and export a public key from that into BOX.
- Note the enterpriseID under the App Settings.
- Navigate to .
- Select your account name on the top of the Admin Console.
- In your account, create a folder and upload a text file.
-
Do the steps at the ServiceNow instance end.
- Navigate to .
- Attach the keystore certificate.
- Configure a JWT signing key by navigating to .
- Create OAuth application registry entry by navigating to .
- Under the OAuth entity profile (oauth_entity_profile) associate the created 'jwt provider'.
- Create a REST message.
- In the REST Message, select Get OAuth token to get the access token.
- Go to the 'Default GET' method and click on 'Test'.
- An the BOX end, share the folder and file.