Connect your app to Workday
Connect your app to Workday so signed-in users can view their own worker profiles, team directory, and time off data. Each user logs in with their personal Workday credentials and only sees what they are permitted to see.
Builders who want to display personal HR, organization, or leave data to authenticated users from their company's Workday instance.
Do this, in order
- 1
In Workday, run the 'Register API Client' task and set Client Grant Type to 'Authorization Code Grant' and Access Token Type to 'Bearer'.
This configures the Workday client to support standard browser sign-in and token authentication.
- 2
Leave PKCE unchecked in Workday.
The Lovable connector requires a client secret, which Workday does not generate if PKCE is enabled.
- 3
Set the Redirection URI to 'https://connector-gateway.lovable.dev/api/v1/app-users/oauth2/callback' in Workday.
Workday needs to know where to securely send users back after they authorize the connection.
- 4
Check 'Non-Expiring Refresh Tokens' and select only the required functional areas under Scope, then click OK.
Non-expiring tokens keep users from being forced to log in again every 30 days, while functional areas control which data the app is allowed to request.
- 5
Copy the Client ID and Client Secret immediately after saving, then run 'View API Clients' to copy the REST API Endpoint, Token Endpoint, and Authorization Endpoint.
Workday only displays the Client Secret once, and Lovable needs all five values to connect.
- 6
In Lovable, navigate to Connectors, click Workday, choose 'App user connector', paste all five values, and click 'Create client'.
This stores the integration settings in Lovable's secure gateway so your app can communicate with your Workday instance.
- 7
In your Lovable project chat, ask Lovable to add the Workday connection flow and display the required data on your app page.
Lovable will build the user-facing 'Connect Workday' button and interface elements connected to the Workday endpoints.
Paste this into your project
Let each signed-in user connect their own Workday account and show their profile, job details, and time off balance on the dashboard.
Words decoded
- Tenant
- A dedicated, isolated instance of Workday reserved specifically for your company.
- PKCE
- An authentication security method used by apps that cannot securely store secrets. Lovable uses a server gateway, so this must be kept off to get a client secret.
- Refresh token
- A background credential that lets the app renew a user's expired login session without making them type their password again.
- Functional areas
- Workday's permission categories (like Staffing or Time Off) that control which sets of data an external app can view.
Where people get stuck
- Do not turn on PKCE in Workday, or Workday will not issue the client secret that Lovable requires.
- Make sure your app has user authentication enabled before adding Workday, because each user must sign in to connect their individual Workday account.
- If you leave 'Non-Expiring Refresh Tokens' unchecked, users will automatically be disconnected after 30 days of inactivity.
- You cannot make a single shared workspace connection; every request strictly executes under the logged-in user's personal Workday permissions.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.