how to setup Oauth API configuration for the SAP REST API Integration

hemantnh
Tera Expert

how to setup Oauth API configuration for the SAP REST API Integration

 

I am doing the REST api integration between the SAP success factor to ServiceNow.

 

Please help me to the how can we setup the Oauth profile in servienow

 

 

 

 

5 REPLIES 5

Viraj Hudlikar
Giga Sage

Hello @hemantnh 

Step 1: Register Your Application in ServiceNow

  1. Log into your ServiceNow instance.
  2. Navigate to System OAuth > Application Registry.
  3. Click on New and select Create an OAuth API endpoint for external clients.
  4. Fill in the required details such as Name, Client ID, and Client Secret. These credentials will be used to authenticate your application.

Step 2: Configure OAuth in SAP SuccessFactors

  1. Generate a JKS Certificate: This is required for secure communication. The certificate should be generated on the SAP SuccessFactors side.
  2. Provide Public/Private Keys: Ensure you have the necessary keys to generate the JKS file.

Step 3: Set Up OAuth Profile in ServiceNow

  1. Navigate to Connections and Credentials:
    • Go to Connection & Credential Aliases.
    • Create a new alias for SuccessFactors_Comp_Emp and SuccessFactors_OData.
  2. Enter Credentials:
    • For OData: Use the format username@SAP-SuccessFactors-CompanyID (e.g., apiadmin@servicenowT1).
    • Provide the SuccessFactors password and API URL.

Step 4: Implement OAuth Client Credentials Grant

  1. Use the Access Token: Implement the OAuth 2.0 Client Credentials Grant within your application to obtain an access token.
  2. Make Authorized Requests: Use the access token to make authorized API requests to ServiceNow.

 

Few links which will be helpful to you.
https://www.saaswithservicenow.in/post/integrating-with-servicenow-via-oauth-a-step-by-step-guide

API Management: Unlocking OAuth Strategies - SAP Community

Simple and flexible OAuth 2.0 REST API Call from a... - SAP Community

SuccessFactors Integration with SuccessFactors Spo... - ServiceNow Community

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.