Verify SSO authentication between Entra ID and Workday
Before configuring watsonx Orchestrate, verify the SSO authentication between Entra ID and Workday. UseCURL
or Postman
to run the commands.
1
Set your environment variables
Run the following commands in the terminal.Replace
BASH
<entra_app_client_id>
, <entra_app_client_secret>
, <entra_directory_tenant_id>
, <workday_api_client_id>
, <username_of_user>
and <password_of_user>
with the appropriate information.2
Add permissions to access the Workday API
Before you can exchange tokens and access Workday APIs by using Entra ID, you need to configure the permissions for your app in Microsoft Entra.
a. Open Microsoft Entra admin center and navigate to App registrations.
b. Select your application used for token exchange.
c. Go to API permissions and select Add a permission.
d. Choose the Workday API.
e. Select Delegated permissions and add the required scopes.
For detailed steps, see Configure an application to access a web API in the Microsoft documentation.
a. Open Microsoft Entra admin center and navigate to App registrations.
b. Select your application used for token exchange.
c. Go to API permissions and select Add a permission.
d. Choose the Workday API.
e. Select Delegated permissions and add the required scopes.
For detailed steps, see Configure an application to access a web API in the Microsoft documentation.
3
Get a login token from Entra ID
Use the following command to get a login token. The
password
grant type is used to simulate user logging in to Entra ID.BASH
4
Exchange the login token for a SAML assertion
Use the following command to get SAML assertion from Entra ID. The
JWT bearer
grant type is used to exchange the access token for a SAML assertion.Replace the $TOKEN
with the token you received in the Step 3.BASH
5
Exchange the SAML assertion for Workday access token
Run the following command to get SAML assertion. Replace the Replace the placeholders with your app’s details.
$SAML_ASSERT
with the SAML assertion that you received in the Step 4.BASH
Parameter | Description |
---|---|
<workday_domain> | The domain of your Workday instance. This is where API requests are sent. |
<workday_tenant> | Your Workday tenant identifier. |
$SAML_ASSERT | The SAML assertion token received from Entra ID. Used to request a Workday access token. |
6
Trigger the Workday API
Use your access token received from Step 5 to call Workday API.
BASH
7
Result
If the token is valid and the API is correctly configured:
- Workday returns a JSON response containing a list of workers for the specified tenant.