---
sourceDocument: Australia Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/platform-security

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Configuration

# Configure an OAuth authorization code grant {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 Minuten Lesedauer

Configure the OAuth authorization code grant to enable secure and interactive user authentication to enable applications to access resources on behalf of users. The OAuth authorization code grant verifies that the API access
is granted based on the user identity and permissions.

## Vorbereitungen

Role required: <kbd class="ph userinput">oauth_admin, mi_admin, admin</kbd>

## Prozedur

1. Navigate to Machine Identity ConsoleInbound integrationsNew integrationOAuth authorization code grant.  
   The New Record page appears.
2. Update the text fields in the Details form with the appropriate information.  
   {#configure-an-oauth-authorization-code-grant__table_nwn_z3x_r2c__entry__2}

   | Field | Description |
   |-|-|
   | Name of OAuth entity | Name of the OAuth entity. |
   | Provider name | Enter the name of the service provider you want to integrate with. Example: Microsoft, Google, Zoom, SAP, etc. Hinweis: Provider name is a mandatory field. |
   | Redirect URL | URL to which the authorization code should be sent after authentication. |
   | Client ID | Unique ID assigned to identify the application. |
   | Client Secret | The secret key that only the application and the authorization server can identify. The application uses this key to authenticate and obtain access tokens. |
   [Tabelle : 1. Details form]

   {#configure-an-oauth-authorization-code-grant__table_nwn_z3x_r2c}

   Select the This is a public client check box if the application can't securely store credentials, and doesn't require a secret key to prove its identity during authorization. The client secret
   information is processed for public clients.
3. Update the text fields in the Auth scope form with the appropriate information. The authentication scope defines the level of access an application has to a resource. Select the authentication scope for the specific REST APIs you want to access.  
   {#configure-an-oauth-authorization-code-grant__table_n1c_rw2_s2c__entry__2}

   | Field | Description |
   |-|-|
   | Auth scope | The level of access an application has to a resource. The authentication scope restricts the actions that an access token can perform on APIs or data. |
   | Limit authorization | The names of the APIs for which you want to restrict authorization. |
   | Allow access only to APIs in selected scope | Enable the option for the integration to only access APIs that are explicitly listed in the selected scopes. |
   [Tabelle : 2. Auth scope form]

   {#configure-an-oauth-authorization-code-grant__table_n1c_rw2_s2c}
4. Update the text fields in the Advanced options (optional) form with the appropriate information.  
   {#configure-an-oauth-authorization-code-grant__table_qdq_bw2_s2c__entry__2}

   | Field | Description |
   |-|-|
   | Enforce token restriction | The Enforce token restriction option limits the client to accessing only the APIs specified in the REST API Access Policies. If you unselect it, the client can access other REST APIs based on the user ACL permissions. |
   | Token Format | Format of token to generate. Options: * JWT * Opaque {#configure-an-oauth-authorization-code-grant__ul_v31_wxn_3hc} Hinweis: * The jwks url is available in the location: `api/now/oauth/jwks`. * The rotated (inactive keys) from jwks response after is removed after 105 days default. {#configure-an-oauth-authorization-code-grant__ul_n3m_yxn_3hc} |
   | Access token lifespan | Duration (in seconds) for which the OAuth access token remains valid before it expires. Hinweis: The default value is 1800 seconds. |
   | Refresh token lifespan | Duration (in seconds) for which the OAuth refresh token remains valid before it expires. Hinweis: The default value is 8,640,000 seconds. |
   | Login URL | HTTP redirection endpoint to authenticate with the authorization server. |
   | Logo URL | Web address of an image that represents the application during the authentication and authorization process. It's displayed on the authorization server's consent screen to help you recognize the requesting application. |
   [Tabelle : 3. Advanced options form]

   {#configure-an-oauth-authorization-code-grant__table_qdq_bw2_s2c}

   Enforcing token restriction applies limitations on how an OAuth access token can be used, enhancing security by verifying that tokens are valid only under specific conditions. Enable the Enforce token restriction check box to limit OAuth access tokens to specific APIs defined in the API access policy. If the Enforce token restriction is turned off, the token can be used across other REST APIs.
5. Select Create new auth scope to add a new auth scope.
6. Select Save.  
   A new OAuth authorization code grant is created.
7. Go to AllInbound integrationsApplication Registries to view the newly created OAuth authorization code grant.

