OAuth 2.0 connection with Workday

Brian15
Tera Guru

Has anyone made an OAuth 2.0 connection to their Workday tenant?  I am following the Workday HR spoke documentation in order to retrieve a RAAS report.  I have the oauth_entity record created using the client id & client secret values provided by Workday. 

 

When I click "Get oauth token", I receive a windows message find_real_file.png 

 

If I am logged into my Workday tenant before clicking get token, then Workday opens a new window asking me to allow or deny access to my account.  But I don't get an access token back.  Also, my Workday account does not have access to the data I need. 

 

My support case on this has been open awhile.  Now I am reaching out to Community members to see if anyone has specific experience making an oauth 2.0 connection with Workday.  

 

Thank you,  Brian Watkins

 

1 ACCEPTED SOLUTION

Kit Cheong
Giga Guru

When you click "Get OAuth Token" a popup should appear with Workday login screen.
Log in to Workday using the "API client" credentials created in workday for ServiceNow.
You're then taken to a screen with an Allow and Deny button. Click Allow.

 

Ensure the API client configuration in workday has the redirect URL: https://[your insance].service-now.com/oauth_redirect.do

 

If you're not getting the Workday login screen when clicking "Get OAuth Token", open the Application Registry [oauth_entity] record in ServiceNow, add this param' to the Authorisation URL: ?redirect=n
E.g. https://x.myworkday.com/[your tennant]/authorize?redirect=n

 

If none of this works try logging into workday on a new tab using the "API client" credentials, then click "Get OAuth Token" in the ServiceNow tab.

View solution in original post

9 REPLIES 9

Kit Cheong
Giga Guru

When you click "Get OAuth Token" a popup should appear with Workday login screen.
Log in to Workday using the "API client" credentials created in workday for ServiceNow.
You're then taken to a screen with an Allow and Deny button. Click Allow.

 

Ensure the API client configuration in workday has the redirect URL: https://[your insance].service-now.com/oauth_redirect.do

 

If you're not getting the Workday login screen when clicking "Get OAuth Token", open the Application Registry [oauth_entity] record in ServiceNow, add this param' to the Authorisation URL: ?redirect=n
E.g. https://x.myworkday.com/[your tennant]/authorize?redirect=n

 

If none of this works try logging into workday on a new tab using the "API client" credentials, then click "Get OAuth Token" in the ServiceNow tab.

Hi @Kit Cheong ,

 

We are also facing the same issue. We tried your solution but we get the error. Attached the screenshots.

 

Any suggestions for these!

 

The authorisation URL entered into service now is not correct. Get your Workday admin to provide the authorisation URL, it is listed in the API config section of Workday.

Thanks @Kit Cheong.

 

After clicking "Get OAuth Token" it took to the login page of workday & logged in

However, we do not get the access tokens back & still could see the message tokens are not available.

 

 

The redirect URL in Workday in API client config might be incorrect.

https://<instance>.service-now.com/oauth_redirect.do