Skip to main content
Version: main

Authentication

To interact with ServiceNow using the SDK, you must first authenticate your client. The SDK supports multiple authentication methods to accommodate different security requirements and deployment environments.

Choose an authentication method

Pick the flow that matches how your application runs:

Your situationUseWhy
Server-to-server integration, no user presentClient CredentialsThe app authenticates as itself with a client ID and secret.
Server-to-server with key-based trustJWT TokenSigned assertions instead of a shared secret; best for non-interactive services with strict credential policies.
A user signs in interactively, and the app can keep a secret (server-side service, desktop app)Authorization Code — PrivateStandard OAuth2 with a confidential client.
A user signs in interactively, and the app can't keep a secret (CLI tool, SPA)Authorization Code — PublicSame flow secured with PKCE instead of a secret.
Legacy or tightly controlled environment where interactive login is impossibleROPCExchanges a username/password for OAuth tokens; use only when the flows above are unavailable.
Local development, testing, quick scriptsBasicSimplest to set up; avoid for production integrations.

ServiceNow provides multiple OAuth and non‑OAuth authentication models.
The SDK currently supports:

Each page provides a playbook‑style guide describing:

  • Required ServiceNow configuration
  • Required values for your application
  • How to initialize the SDK

Next steps

Once authenticated, you can begin performing operations:

Was this page helpful?