Latest OAuth 2.0 Setup in ServiceNow

harshalthak
Mega Contributor

Hi everyone! I'm building a custom application and need to authenticate it with ServiceNow using OAuth 2.0 so it can securely access ServiceNow APIs. It seems that setup steps of OAuth has been changed from UI.

 

Can someone walk me through the setup steps?

- How do I register my application in ServiceNow as an OAuth client?

- How do I get the client ID and client secret?

- Any code examples or libraries that work well with ServiceNow OAuth?

 

Thanks for the help!

1 REPLY 1

Anand__99
Kilo Sage

Hi @harshalthak ,

 

ServiceNow now uses the Machine Identity Console to manage inbound integrations.

Follow Steps to setup:

  1. Create a New Integration.

  2. Select Authorization Code (or your preferred grant type).

  3. Fill in your application details.

  4. Define the OAuth Scopes to restrict unnecessary API access and keep it secure.

Refer Link:

https://www.servicenow.com/docs/r/platform-security/authentication/configure-an-oauth-authorization-...

 

Thanks

Anand