---
title: Generate OAuth access and refresh tokens
description: "Go to the Ping OAuth Configuration Service at the following URL: https://oauth.pingone.com/ocs/ppm/rest/v1/oauth/oasrequestform"
component: box
page_id: box:setup:pf_box_connector_generate_oauth_access_and_refresh_tokens
canonical_url: https://docs.pingidentity.com/integrations/box/setup/pf_box_connector_generate_oauth_access_and_refresh_tokens.html
revdate: June 27, 2024
section_ids:
  steps: Steps
---

# Generate OAuth access and refresh tokens

## Steps

1. Go to the Ping OAuth Configuration Service at the following URL: <https://oauth.pingone.com/ocs/ppm/rest/v1/oauth/oasrequestform>

2. In the list, select **Box Connector**.

   ![A screen capture of the OAuth Configuration Service screen.](_images/mfz1563995179128.png)

3. Enter the **Client ID** value you previously obtained into the **ClientID** field.

4. Enter the **Client Secret** value you previously obtained into the **Client Secret** field.

5. Click the **Connect** button.

6. Sign on to Box as an administrative user for your organization.

   |   |                                                                                                                                                              |
   | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   |   | If you are already signed on to Box you will not be asked to sign on again. Make sure that the account you are signed in under is an administrative account. |

7. Click **Grant access to Box** to generate your access and refresh tokens.

8. You should be redirected to the OAuth Configuration Service and presented with an access token and refresh token.

   ![A screen capture of the OAuth Configuration Service response.](_images/qei1563995179770.png)

9. Copy the **Access Token** and **Refresh Token** to use when configuring the Box Connector.
