Authenticate to a ServiceNow instance using OAuth 2.0 with the ServiceNow SDK
Use OAuth 2.0 authentication to connect to a ServiceNow instance with the ServiceNow SDK.
Vorbereitungen
To use OAuth 2.0 authentication, your instance must have ServiceNow IDE (version 1.1 or later) installed or have the required XML configuration imported. By default, instances on the Australia release include ServiceNow IDE version 1.1.4 and support using OAuth 2.0 authentication with the ServiceNow SDK. For more information, see Configure a ServiceNow instance for OAuth 2.0 authentication with the ServiceNow SDK.
An administrator must install the ServiceNow IDE (version 1.1 or later) on the instance or configure the instance to support using OAuth 2.0 with the ServiceNow SDK. For more information, see Install or update the ServiceNow IDE or Configure a ServiceNow instance for OAuth 2.0 authentication with the ServiceNow SDK.
The default System Administrator (admin) user must configure the instance to support using OAuth 2.0 with the ServiceNow SDK. For more information, see Configure a ServiceNow instance for OAuth 2.0 authentication with the ServiceNow SDK.
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
This procedure uses the ServiceNow SDK command-line interface (CLI). From a command-line tool, enter now-sdk --help to get information about the available commands and global options. To get additional information about a
command and its parameters, enter the command and --help or -h. For example, now-sdk auth --help. For more information about the CLI, see ServiceNow SDK CLI.
Prozedur
Ergebnisse
The alias and credentials are stored in the device keychain or credential manager on your system and are set as the default credentials.
Nächste Maßnahme
Add an application to your local system with the ServiceNow SDK. For more information, see Adding applications with the ServiceNow SDK.