Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Instance address (URL)StringYesInstance URL, e.g. https://yourcompany.service-now.com.
Client IDStringYesClient id of the OAuth application registry entry.
Client secretCredentialYesClient secret from the vault.
Grant typeStringNopasswordpassword: sign in as a user; client_credentials: as the application.
UserStringNoUser name (password grant).
PasswordCredentialNoPassword from the vault (password grant).
SessionStringNoKeep this sign-in for the steps after it under this name; the toolkit's default session when empty (G6).
ShareBooleanNofalseAgents this one runs use the same session (G6).

Outputs​

OutputTypeWhat it is
access_tokenCredentialAccess token; map it to access_token of later actions.
refresh_tokenCredentialRefresh token, when the instance returns one.
expires_inNumberSeconds until the access token expires.