---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# OAuth 2.0

# OAuth 2.0 {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of OAuth 2.0

OAuth 2.0 enables users to access ServiceNow instance resources via external clients by using tokens instead of repeatedly entering login credentials.
This streamlines secure access for third-party applications either pulling data from your instance (inbound) or your instance pulling data from external providers (outbound).
Show full answer Show less  
Managing OAuth requires the **securityadmin** role. OAuth 2.0 supports both simple and high security frameworks, with high security recommended to enhance protection. Tokens eliminate the need for continuous user authentication until they expire.

## Key Features

* **Supported scenarios:** Inbound OAuth for third-party clients accessing your instance; outbound OAuth for your instance accessing third-party data.
* **Core OAuth concepts:**
  * **Resource Owner:** The user account granting access.
  * **Client:** Application requesting resource access on behalf of the user.
  * **Resource Server:** Hosts protected resources.
  * **Authorization Server:** Issues access tokens upon successful authorization.
  * **Authorization Request and Grant:** Mechanisms for clients to request and obtain access rights.
  * **Access Token:** Secure token with defined scope and lifespan (default 30 minutes for instance-issued tokens, 30 days for third-party tokens).
  * **Refresh Token:** Enables clients to request new access tokens without user reauthorization (default lifespans: 100 days for instance-issued, 365 days for third-party).
  * **OAuth Grant Types:**
    * **Authorization Code Flow:** Obtain authorization code first, then exchange for access token.
    * **Resource Owner Password Credentials:** Use user credentials directly to get access token.
    * **Client Credentials:** Use client ID and secret from application registry.
  * **User Agent:** The user delegating access rights to the client application.
* **Credential Storage:**
  * OAuth client secrets stored encrypted with KMF using password2 fields.
  * User passwords stored as SHA-256 hashed values in the User table.
* **Certificate Support:** Self-signed certificates are not supported for OAuth endpoints.

## Practical Implications for ServiceNow Customers

By implementing OAuth 2.0, customers can securely integrate third-party applications with their ServiceNow instances without compromising user credentials. This enables seamless, token-based authentication for resource access, improving both security and user experience. Ensuring the use of high security settings and understanding token lifespans helps maintain robust access control. Additionally, leveraging the appropriate OAuth grant type allows flexible integration tailored to your application's needs.  
OAuth 2.0 lets users access instance resources through external clients by obtaining a token rather than by entering login credentials with each resource request.{#c_OAuthApplications__ph_short-desc-oauth-2.0}

You must have the security_admin role to manage the OAuth integration. Configure OAuth 2.0 for
the following scenarios:

* OAuth external client scenario (Inbound): Your instance provides an endpoint for third-party clients to pull data from the instance.
* OAuth provider scenario (Outbound): Your instance pulls data from a third-party provider.

{#c_OAuthApplications__ul_xfk_yzw_pr}  
Note:  
You must authenticate for the first time to fetch the token post which, you don't need to authenticate using a user account before the token expiry.

Both, simple security and high security frameworks support OAuth 2.0. High Security is recommended. For OAuth 2.0 supported versions and how to activate high security, see [High Security Settings](https://www.servicenow.com/docs/_g5o20kuRsWDHQZC7ejjuw "High Security Settings refer to several security options available in your instance.").

## Key concepts of the OAuth 2.0 implementation

{#c_OAuthApplications__table_jlt_dmv_yq__entry__2}

| Concept | Description |
|-|-|
| Resource Owner | An entity capable of granting access to a protected resource. A resource owner who is a person is called an end user. The resource owner is always a user account. |
| Client | An application that, with the authorization of the resource owner, makes requests for protected resources on behalf of the resource owner. |
| Resource Server | The server that hosts the protected resources, capable of accepting and responding to requests for protected resources. |
| Authorization Server | The server that issues access tokens to the client after successfully authenticating the resource owner and obtaining authorization. |
| Authorization Request | The permission that a client requires to access a protected resource. The authorization request is always an HTTP POST message that contains the ID of the client that is acting on behalf of the resource owner and credentials that authorize the request. |
| Authorization Grant | A credential that represents the authorization from the resource owner to access a resource. The authorization grant is either user login credentials or a refresh token. |
| Access Token | A secure string that a client uses to access protected resources. An instance issues access tokens to clients that have a valid authorization grant. Each access token has a specific scope, lifespan, and other attributes. By default, an instance issues access tokens with a 30-minute lifespan in the scenario where the instance is the OAuth provider. For third-party tokens, 30 days. |
| Refresh Token | A credential that a client uses to obtain new access tokens without requiring additional user authorization. An instance issues a refresh token to a client when it is first authorized to have an access token. By default, an instance issues refresh tokens with a 100-day lifespan in the scenario where the instance is the OAuth provider. For third-party tokens, 365 days. |
| Self-signed certificates | The ServiceNow AI Platform does not support self-signed certificates. The OAuth client does not utilize the certificate trust store or allow connection to OAuth endpoints that incorporate a self-signed certificate. |
| User agent | The user who delegates access rights to a client application, which is often a website. The access rights permit the client application or website to access data in the instance that the user has access rights to. The user agent is used in the scenario. |
[ ]

{#c_OAuthApplications__table_jlt_dmv_yq}

## OAuth grant types

A grant type is the way that the client obtains the access token. The following grant types are supported:

* Authorization code: The consumer first gets an authorization code and then uses it to get an access token. You can [Specify an OAuth profile](https://www.servicenow.com/docs/access?context=t_SpecifyAnOAuthProfile&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) and specify this grant type. The process that uses the authorization code is also referred to as auth code flow or authorization code flow.
* Resource owner password credentials: The consumer of the resource already has the user credentials to get the access token. This process is also referred to as password flow.
* Client credentials: The consumer of the resource uses the client ID and client secret that is already configured in the application registry.{#c_OAuthApplications__client_credential}
{#c_OAuthApplications__client_credential} {#c_OAuthApplications__ul_tlv_kxq_rs}

## Storage of authentication credentials

The OAuth client secret is stored as a password2 type field, which is
encrypted with KMF. User passwords, which are used to check incoming endpoint requests, are
stored as a hash value in the User table in a password type field (SHA
256). For details on this encryption, see [Password2 encryption with
KMF](https://www.servicenow.com/docs/CQ8Bc7zlvQIcn0z8OFFL2w "Supported by the Key Management Framework, use the Password2 (2-way encrypted) field type to encrypt and decrypt custom fields with segregation of duties, key protection, and life-cycle management. It works in accordance with NIST 800-57 guidelines and provides FIPS 140-2-L3 protection.")

