Skip to content
Enable Professional Services
  • Home
  • Our Story
    • Case Studies
    • CSR
  • Services
    • All services
    • CASE
    • IRM
    • IoT
    • Industry Solutions
    • Tips & Resources
  • News
    • Insights
    • Events
  • Careers
  • Contact
Site Search
Resources

ServiceNow Integration with third party Using OAuth2.0

  • December 2, 2019December 2, 2019
  • by Nicole Bailey

Flow of OAuth Process (ServiceNow is using a third party OAuth Provider)

What Is OAuth?

OAuth 2.0 is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service.

It works by delegating user authentication to the service that hosts the user account, and authorising third-party applications to access the user account. OAuth 2.0 focuses on client developer simplicity while providing specific authorisation flows for web applications, desktop applications, mobile phones, and living room devices. When using ServiceNow as a client resource, OAuth 2.0 lets user access instance resources through external clients by obtaining a token rather than by entering login credentials with each resource request.

How OAuth and ServiceNow works?

OAuth 2.0 lets user access instance resources through external clients by obtaining a token rather than the need to enter login credentials with each resource request.

OAuth 2.0 can be configured in the below scenarios.

  1. OAuth external client scenario
  2. OAuth provider scenario

OAuth has below grant types

  1. Authorization code
  2. Resource owner password credentials
  3. Client credentials

 

What to consider when OAuth 2.0 is configured in ServiceNow?

  1. Make sure the OAuth plugin is active and the OAuth activation property is set to true.
  2. Make sure that the grant type is matching between the client and resource systems and the same is shared with OAuth provider.
  3. Client ID, Client secret are shared among the systems.
  4. In case of Resource owner password credentials, the consumer of the resource already has the user credentials to get the access token. The same user name and password has to be provided when accessing the token from the OAuth provider.
  5. In Case of Authorization code grant type consumer first gets an authorization code and then uses it to get an access token.
  6. Make sure to fetch the refresh token once the access token has expired, reusing the access token after it has expired will result in failure.

The below two scenarios helps you to understand what type of OAuth integration you need to set up in ServiceNow.

 

 

OAuth external client scenario

In this scenario ServiceNow provides an endpoint for third-party clients to pull data from the instance. This is done by creating an OAuth API endpoint for external clients.

The above Client secret is stored as password2 type field, which is encrypted in Triple DES. User passwords, which are used to check incoming endpoint requests, are stored as a hash value in the User table in a password type field (SHA 256).

 

 

OAuth provider scenario

In this scenario, ServiceNow consumes an endpoint for third-party clients to pull data from the 3rd party.

This is done by creating connection to a third party OAuth Provider.

Written by –
Saurabh Chamoli
SERVICENOW  CONSULTANT
Tribe – CSM
Date: 3/12/2019

 

 

 

Recent Posts

  • Benefits of full platform integration & built-in APIs
  • How to remain compliant under Security Legislation Amendment Bill 2021
  • Enable introduces Work from Anywhere & Extended Leave Policy
  • Enable achieves GRC Product Line Achievement
  • How Enable is winning the race for the best ServiceNow talent

Recent Comments

    Archives

    • February 2022
    • December 2021
    • August 2021
    • May 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019

    Categories

    • Awards
    • Case Study
    • Events
    • News
    • Resources
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    BACK TO TOP
    • Home
    • Our Story
    • Services

    Enable Professional Services

    • Contact
    • Terms of use
    • Privacy
    © 2022 Enable Professional Services