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:
- Workday authentication details like Token URL, client ID, Client Secret, refresh token with required roles/permissions (read/write).
- 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.
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
Step 2:
Once we get a token, set it in the header of type Bearer.
Step 3: Call workday web service to post data.
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