---
title: OAuth 2.0
url: https://www.tines.com/docs/credentials/oauth/
updated: 2025-04-23T19:32:26+00:00
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Credentials](https://www.tines.com/llm/docs/credentials.md)*

# OAuth 2.0

*[View on tines.com](https://www.tines.com/docs/credentials/oauth/)*

## Introduction

OAuth 2.0 is the industry-standard protocol for authorization.

## Create app

Before you can begin the OAuth process, you must first register a new app with the service you wish to integrate with Tines (e.g.: Google, Facebook, Okta). When registering a new app, you usually register basic information such as application name, website, a logo, etc. In addition, you must register a redirect/callback URL. The callback/redirect URL you should enter when registering the app is provided on the "Create new credential" page and takes the form: `https://<tenant-domain>/oauth2/callback`

## Creating the credential

**Client ID & secret**: After registering your app with the 3rd-party service, you will receive a client ID and a client secret. The client ID is considered public information, the client secret must be kept confidential.

**Scope**: Enter one or more scope values indicating which parts of the user's account you wish to access.

**Grant type**: Tines supports [*client_credentials*](https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/) and [*authorization_code*](https://www.oauth.com/oauth2-servers/access-tokens/authorization-code-request/) grants. Chose the type corresponding to the application you registered.

**OAuth URL and OAuth token URL**: Enter the OAuth URL and OAuth token URL corresponding to the service with which you registered your app. This information is typically provided when registering the app.

## Saving the credential

After entering the required information, press "Save credential". When using an authorization_code grant, you will be directed to the 3rd-party service and asked to authorize access to your account.

## Refreshing the access token

Tines will automatically fetch a new access token for the credential every 30 minutes.

### Credential logs

If refreshing the access token fails, you can navigate to the logs tab to see the logged error message to help with debugging.
