JSON Web token grant workflow
Use this flow when a client application needs secure, unattended access to ServiceNow resources, either as itself or on behalf of a user.
Before you begin
Role required: oauth_admin, mi_admin, admin
About this task
The client application generates a signed JWT with identity-related claims such as the user or system it represents. The client application sends the JWT to the ServiceNow instance to request an access token.
-
- When acting on behalf of a user:
- The token represents a previously authenticated user. It enables secure, seamless access without prompting the user for credentials or consent. ServiceNow trusts the request by validating the user's identity from the signed token, eliminating the need for real-time user interaction.
-
- When acting as itself:
- The token identifies and authenticates the client application. Instead of using a shared secret, the application signs the token with a private key. This offers a more secure alternative to the client credentials grant.