OAuth client APIs

The OAuth client API provides methods to request and revoke OAuth tokens.

All APIs are available on the developer portal: https://developer.servicenow.com. Search for the following APIs:
  • GlideOAuthClient: Methods for requesting and revoking the refresh and access tokens.
  • GlideOAuthClientRequest: Methods for handling client requests.
  • GlideOAuthClientResponse: Methods for handling client responses.
  • GlideOAuthToken: Methods for retrieving the access token and information about the access token.

You can also customize the OAuthUtil script include to intercept the request parameters and also parse the responses from external OAuth providers.

OAuth supports application scoping by providing access to all OAuth methods in the available OAuth classes using the sn_auth prefix. See Scoped OAuth APIs.