Enterprise Architecture Blog Posts
Need a little more room to share your thoughts with the community? Post a blog in the SAP Enterprise Architecture group to explain the more complex topics.
cancel
Showing results for 
Search instead for 
Did you mean: 
Prabhugoud_Gogi
Explorer
2,064

Introduction:

Recently I got a requirement where BTP CI/SAP CPI should integration with workday using OAuth 2.0 authentication and replicate master data / transactional data from S/4HANA to Workday by consuming workday webservice's, since BTP CI workday adapter supports only basic authentication as a workaround solution to authenticate via OAuth 2.0.

Prerequisite:

  1. Workday authentication details like Token URL, client ID, Client Secret, refresh token with required roles/permissions (read/write).
  2. Check workday webservices are up and running.

I assume that you have any workday webservice to test.

 

Steps:

Below is the sample integration design to post cost center in workday through OAuth 2.0 authentication.

sample Iflow.jpg

Step 1: Get Access token using Token URL, client_id, client_secret, refresh_token.

  • Set the header with parameter Content-Type with the value “application/x-www-form-urlencoded” and configure the connection like below to get a token.
  • Adding client_id and client_secret in basic user credentials of security material.
  • Set Body with refresh_token and grant_type

Security Material.jpg

 

set Content Type.jpg

 

set body.jpghttp_connection.jpg

 

Step 2:

Once we get a token, set it in the header of type Bearer.

 

set token.jpg

Step 3:  Call workday web service to post data.

call webservice.jpg

Hope you find this article helpful and if you have any suggestion and comments, please reply to the Comments section below.

Reference Links:

!!! Happy Learning !!!

 

Best regards,

Prabhugoud Gogi

 

3 Comments