This bundle contains functions to help generate OAuth access tokens for your application's users.
To use the Choreos in this bundle:
You'll need a Box account. If you don't already have one, you can sign up for a free one here. NOTE: make sure to use a password that is at least 8 characters long and contains at least 2 numbers (you'll see why later).
Run the InitializeOAuth choreo, specifying your Box app's Client ID (you can get this value by choosing to 'Edit' your Box app in their developer console).
In a new tab, navigate to the authorization URL returned by the InitializeOAuth choreo, and click "allow" to grant the app access to your Box account.
If you can't log in to your Box account at this point, visit their developer console and create a new Enterprise developer account password. If this is the case, you'll need to run the InitializeOAuth choreo again and visit the authorization URL it returns to grant your app access to your Box account.
Run the FinalizeOAuth choreo, specifying the callback ID returned by the InitializeOAuth choreo, to obtain an OAuth access token that can be used to access the Box API.
At this point, you should have a valid short-lived AccessToken and RefreshToken. The AccessToken is all you'll need to get started running the Box Choreos.
When your access token expires, you can use the RefreshToken Choreo to generate a new one. Note that refresh tokens are valid for 14 days. If your app does not use the refresh token before it expires, you'll need reinitialize the OAuth process.