---
title: Updating Box OAuth tokens
description: Use the following procedure to manually update the Box OAuth tokens.
component: box
page_id: box:troubleshooting:pf_box_connector_updating_box_oauth_tokens
canonical_url: https://docs.pingidentity.com/integrations/box/troubleshooting/pf_box_connector_updating_box_oauth_tokens.html
revdate: June 27, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Updating Box OAuth tokens

## About this task

Use the following procedure to manually update the Box OAuth tokens.

## Steps

1. Obtain new Box OAuth tokens. Learn more in [Generate OAuth access and refresh tokens](../setup/pf_box_connector_generate_oauth_access_and_refresh_tokens.html).

2. If using the flatfile method for token storage, delete the `boxoauthtoken.conf` file located at `<pf_install>/server/default/data/adapter-config`. If using the database method for token storage, delete the row that contains the Box tokens from the `saas_connection_fields` table.

3. On the **Target** screen of the SP connection, update the following fields with the new OAuth token values:

   * `OAUTH_ACCESS_TOKEN`

   * `OAUTH_REFRESH_TOKEN`

4. Restart PingFederate. This will regenerate the flatfile or repopulate the database with the new credentials.
