OAuth Credentials Management

Overview

Keep your Client Secret confidential — never ship it in client-side code. Single-page (JavaScript) and native apps can’t protect a secret, so plan accordingly and do not use Client Credentials as your grant type.

Once you have registered a new application on the Developer Portal you will work with two sets of OAuth credentials - one set for your development sandbox and a separate set for the production environment. Initially during the development phase, you use the sandbox credentials to make API calls to your sandbox company account. Once you have promoted your sandbox application manifest to production, you will have access to your production credentials. See Promoting a Sandbox Manifest to Production for additional information. You will use your Client IDs, which are considered public information, to build login URLs or include in Javascript source. Your Client Secrets, on the other hand, must be kept confidential.

Once a user successfully authorizes your app to access their data in Procore, the Procore authorization server redirects them back to your app with either an authorization code or access token in the URL depending on the particular OAuth 2.0 grant type you have implemented. To ensure that the user’s browser is directed back to the proper location, you are required to define one or more Redirect URIs for your application. You can optionally manage two distinct sets of Redirect URIs for the sandbox and production environments, though this is not required. The http://localhost redirect URI is registered by default when you create a new application in the Developer Portal. Please note that dynamic URIs are not supported at this time.

Manage Sandbox Credentials

Using the OAuth Credentials section on the Manage App page you can view and manage the OAuth credentials and Redirect URIs for your sandbox. Your sandbox Client ID and Client Secret is accessible in this section and you can reset the Client Secret as needed. You can also add, update, or delete Redirect URIs for your sandbox.

Sandbox Account screenshot

Manage Production Credentials

Using the OAuth Credentials section on the Manage App page you can view and manage the OAuth credentials and Redirect URIs for your production environment. Your production Client ID is accessible in this section and you can reset the Client Secret as needed. It is important to note that your production Client Secret is hidden from view in the OAuth Credentials section and only visible to you once when you initially obtain production credentials through the manifest promotion process.

App Credentials screenshot

Was this page helpful? Thanks for your feedback!