axox-ea
axox-ea

Reputation: 21

Workday REST Api OAuth2.0 flows

I'm looking to integrate to Workday's REST Api services. Sadly enough, I do not have access to Workday's resource center - where all the documentation resides - it takes forever to get access to there.

I was hoping to get some help from the community regarding the overall process.

My main questions are:

  1. Which OAuth flows are supported?
  2. How can I find which scopes are needed for the client functionality I am looking for? (Basically I am looking to get users meta-data information).

From what I managed to collect online so far (without having access to the workday community center) Ive found that Workday supports an authorization code grant flow, and an implicit grant flow.

I also have a basic question regarding the authorization code grant flow:

If I understand correctly, the authorization code grant works as follows:

  1. Send a GET request to the authorization endpoint you get from client registration.
  2. Obtain an access token after authorization is granted via user approval.
  3. Send a POST request to the token endpoint, along with the access token obtained from step 2 in order to obtain an access token.
  4. Use the API with the access token obtained from step 3.

If so, I wonder if step 1 is ALWAYS required? by always I mean once per "access token obtainment" or rather just only once?

I also wonder - if user approval is required, how does this formally happen? where does the window of approval pop up if the requests are sent from a remote server?

Are there any workflows which do not require active user approvals for authorization?

thanks!

Upvotes: 2

Views: 1842

Answers (1)

user23739282
user23739282

Reputation: 1

For #2, assuming you are talking about the scope to include when creating the API Client. You would need to do a security analysis (with something like View Security for Securable Item delivered report)on the fields you want to expose and see the Functional Area the security domain(s) that secure them belong to.

e.g.

  • Field: Job Requisition ID
  • Secured by Domain: Set Up: Career Sites
  • Functional Area: Recruiting/Talent Pipeline

You would need to add Recruiting and Talent Pipeline as part of the scope of your API Client

Upvotes: 0

Related Questions