Manage OAuth tokens
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Platform Security
Open OAuth tokens to provide access to restricted resources.
Before you begin
About this task
OAuth tokens issued by the instance and third party OAuth provider are stored in oauth_credential table.
Some of the important columns in this table:
- Token: Value of the token issued by ServiceNow instance.
- Type: Determines if the token is Access Token or Refresh Token.
- Expires: Data/Time when the Access or Refresh Token expire.
- Token Received: Value of the token issued by a 3rd party OAuth Provider. This value is in encrypted format.
Token Expiration and Validity is as follows:
- Access Token: By default, an instance issues access tokens with a 30-minute lifespan in the scenario where the instance is the OAuth provider.
- Refresh Token: By default, an instance issues refresh tokens with a 100-day lifespan in the scenario where the instance is the OAuth provider.
Procedure