OAuth & authentication
Log users in and secure integrations the modern way.
Authentication decides who a user or system is. ServiceNow supports several methods; for integrations, OAuth 2.0 is the modern standard. This lesson covers the whole authentication landscape, then drills into the OAuth flows and where you configure them.
- Authentication options
- Inbound vs outbound OAuth
- Grant types
- Common mistakes
Authentication decides who a user or system is. ServiceNow supports several methods; for integrations, OAuth 2.0 is the modern standard. This lesson covers the whole authentication landscape, then drills into the OAuth flows and where you configure them.
Authentication options
Inbound vs outbound OAuth
Get this distinction right first, because they are configured differently:
Both live under the Application Registry (oauth_entity).
Grant types
The returned bearer token then authorises calls to the REST API (Authorization: Bearer <token>).
Common mistakes
- Confusing the inbound and outbound registry entries.
- Hard-coding secrets in a client-side app instead of the auth-code flow.
- Ignoring token expiry and never implementing refresh.
- Giving the integration account
admininstead of least-privilege roles.