Authenticate
Get an OAuth access token from the instance (user and password, or client credentials) for the other ServiceNow actions.
Command in the ServiceNow toolkit · id ooa.servicenow/authenticate · 8 inputs (3 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Instance address (URL) | String | Yes | Instance URL, e.g. https://yourcompany.service-now.com. | |
| Client ID | String | Yes | Client id of the OAuth application registry entry. | |
| Client secret | Credential | Yes | Client secret from the vault. | |
| Grant type | String | No | password | password: sign in as a user; client_credentials: as the application. |
| User | String | No | User name (password grant). | |
| Password | Credential | No | Password from the vault (password grant). | |
| Session | String | No | Keep this sign-in for the steps after it under this name; the toolkit's default session when empty (G6). | |
| Share | Boolean | No | false | Agents this one runs use the same session (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| access_token | Credential | Access token; map it to access_token of later actions. |
| refresh_token | Credential | Refresh token, when the instance returns one. |
| expires_in | Number | Seconds until the access token expires. |