Configure the OAuth authentication method development instance

task australia Updated Oct 28, 2026 3 min read configure-oauth-auth-method.md
Raw file servicenow.com

Set up OAuth authentication for instance-to-instance Scan Engine integrations using several stages, an integration user account, an OAuth2 configuration record, and provider and client application registries.

About this task

OAuth requires a minimum of one provider record and two client records per connection direction. The provider is created on the instance that receives connections (typically Production); the client is created on the initiating instance (typically Development) and must also be present on the provider instance.

Note:

ServiceNow platform UI labels the outbound client record as consumer. This documentation uses the term client to align with standard OAuth terminology. The OAuth API endpoint for clients registry type is deprecated. Use Connect to a third-party OAuth Provider instead.

Before you begin

Role required: Scan Engine Admin (sn_se.scan_engine_admin).

Procedure

  1. Stage 1: Confirm the integration user account

  2. Confirm that the integration user account exists in both development and production instances, has the required roles assigned, and that the account password is recorded in a secure location for use in later stages.

    If the account has not been created yet, complete Create an integration user account before continuing.

  3. Stage 2: Create an OAuth2 configuration record in the development instance

  4. Navigate to sys_auth_profile_oauth2.list and select New.

    If the username and password fields aren't visible, customize the form to display them.

  5. Populate the Name, Application scope (Scan Engine), Username (matching the integration user ID), and Password fields.

  6. Submit the record.

    If this record is imported to another instance, re-enter the password on that instance before use.

  7. Stage 3: Configure the provider on the development instance

  8. Set the Application scope to Scan Engine.

  9. Navigate to ALL > System OAuth > Inbound Integrations > New integration.

  10. Select Resource Owner Password Credential Grant.

  11. Complete only the fields in the following table.

    Field Value
    Name OAuth Client Dev
    Provider Name Leave empty.
    Client ID Copy the client id to a text file for later use.
    Client secret Enter the password used for the integration account for alignment purposes. The client secret must be at least 32 characters.
    Comments Leave empty.
    Active True
    Auth scope useraccount
    Advanced options (optional): Token Format Opaque
  12. Select Save.

    The new OAuth Client Dev account will be listed in the inbound integrations list.

  13. Stage 4: Create the OAuth provider application registry

  14. Navigate to ALL > System OAuth > Application Registry > New.

  15. Select Connect to an OAuth Provider (simplified)- Outbound.

    Field Value
    Name OAuth Provider Dev
    Client ID Enter or paste the client id from the Resource Owner Password Credential Grant step.
    Client Secret Enter the same password from the client integration account.
    Default Grant Type Resource Owner Password Credentials
    Authorization URL N/A
    Redirect URL Select the redirect URL. Example: https://instancename.service-now.com/oauth_redirect.do
    Token URL Use the redirect URL with a suffix of "token", Ex: https://instancename.service-now.com/oauth_token.do
  16. Save the record.

    [Omitted image "scan-engine-oauth-client-record.png"] Alt text: OAuth Provider Dev record.

  17. For the OAuthAPI Script, select OAuthUtil.

  18. Save the record.

  19. Stage 5: Set up the SN instances

  20. Navigate to All > Scan Engine > My SN Instances.

    If the My SN Instances record for this instance has not been created yet, complete Register your instance before continuing.

  21. Open the existing instance record and configure the OAuth-specific fields as follows.

    Field Value
    Authentication Type OAuth
    OAuth Application Registry OAuth Provider Dev
    OAuth User Profile New: Use the same integration account name, username, and password.
  22. Select Submit.

  23. Stage 6: Validate connection

  24. Save the record, then select Validate Connection.

    Connection Status updates to Connection Valid.

    Note: If the Connection status returns an Error: User not setup on target instance, refer to the Key Management Framework setup step in Validate your instance connection.

  • Configure the OAuth authentication method production instance
    Export OAuth records from the development instance, import them into the production instance, and correct Key Management Framework (KMF) credential encryption. Configure development-to-production authentication so that both instances can validate their connections to each other.

Parent Topic:Register your instance

Search documentation
Search document titles and file paths on the australia branch