---
title: "Okta SSO and Workday OAuth Sign-In for External Apps"
description: "Workday-side settings that decide whether an Okta SAML sign-in completes for an OAuth authorization code client: SP-initiated, ForceAuthn, clock skew, MFA and…"
url: https://kiweely.com/guides/workday-okta-sso-oauth-authorization-code-ai-assistants
---

# Okta single sign-on and Workday OAuth authorization code sign-in for AI assistants and external apps

When an external assistant sends an employee to Workday’s authorize endpoint, Workday hands the sign-in to your SAML IdP, such as Okta. These Workday settings decide whether it completes: SP-initiated SAML, forced re-authentication, clock skew, the allowed authentication type and token lifetimes.

-   **Checked** against Workday on November 24
-   Applies to **Workday Extend**
-   6 min read
-   Published November 24
-   By Kiweely

An AI assistant or external app that uses Workday’s OAuth authorization code grant sends the employee to Workday’s authorize endpoint. If the person is not signed in, Workday shows its sign-in step and, with SAML single sign-on set up, hands the sign-in to your identity provider, for example Okta. Whether that hand-off completes depends on a short list of Workday settings: SP-initiated SAML, forced re-authentication, clock skew, the allowed authentication type, and the lifetimes of the tokens that come back.

This guide covers the Workday side. For the exact Okta screens, use Okta’s own Workday SAML guide. For a redirect loop on the authorize endpoint, see [resolving SSO redirect loops on the OAuth authorize endpoint](https://kiweely.com/guides/workday-sso-saml-oidc-loop-external-oauth-authorize-endpoint).

## What happens at the authorize step

Workday’s Agent Gateway documentation describes the sequence for an agent using the authorization code flow:

1.  The client sends an HTTPS GET to the authorization endpoint with the client ID and `response_type=code`.
2.  Workday redirects to a Workday sign-in pop-up to authenticate. After a successful sign-in and the person’s consent, the client receives an authorization code.
3.  The client posts the code to the token endpoint and receives an access token and a refresh token.

Workday’s Extend authorization documentation adds that during the first authorization request two pages can appear: a page asking for the tenant alias, and the tenant’s sign-in page if the person is not already signed in. Workday says to add the `tenantAlias` parameter to the authorization endpoint if you want Workday users to open an Extend external app from within Workday without being required to reauthenticate. Workday also documents a `redirect=n` parameter for that gateway, for testing an app when you do not have an account in the customer’s identity provider. It signs in natively to the tenant and skips the IdP redirect, so use it only for tests.

With SAML single sign-on set up, the IdP’s own sign-in page, including any multifactor prompt it requires, takes the place of the Workday password step. Workday’s public documentation does not state what an IdP shows at this point, so use Okta’s documentation for that.

## Workday settings that decide whether Okta’s sign-in completes

All of these are on the Edit Tenant Setup - Security task, in the SAML Setup section, for each SAML IdP row.

| Setting | What Workday documents | Why it matters for OAuth clients |
| --- | --- | --- |
| SP Initiated | “Workday uses this IdP for SP-initiated SAML authentication in the selected environment.” | The authorize step starts at Workday, so Workday must be able to send the request to the IdP |
| IdP SSO Service URL | The URL to which Workday sends SAML authentication requests during SP-initiated authentication | A wrong URL sends people to the wrong place |
| Service Provider ID | Identifies Workday as the service provider in SAML messages sent to this IdP | Must match what the IdP app expects |
| Issuer | Workday validates a SAML message only if the Issuer matches a configured value and the tenant’s environment type is valid for that IdP | A mismatch rejects the assertion |
| Do Not Deflate SP-initiated Request | Disables deflate compression of requests sent to the IdP, because certain IdPs cannot parse a compressed request | Useful if the IdP cannot read Workday’s request |
| Always Require IdP Authentication | Requires the IdP to force reauthentication even if there is an existing IdP session; choose ForceAuthn and RequestedAuthnContext if the IdP expects both | Forces a fresh sign-in at every authorize step |
| Additional Negative and Positive Skew | Minutes added to the NotBefore and NotOnOrAfter window; Workday enforces a combined 3-minute maximum from the message issue time | Clock drift between Workday and the IdP |
| Authentication Request Signature Method | Workday requires SHA256 for SP-initiated requests | Signing mismatch |
| Used for Environments, Preview Only | Selects which environments, including Sandbox and Implementation, use this IdP | A Sandbox test can use a separate IdP app |

Workday also documents the redirection URLs. For mobile, its SSO page gives the SP-initiated login redirect as `https://<workdayhost>/<tenantname>/login-saml2.htmld`. Okta’s own Workday guide shows `[org URL]/login-saml2.flex` for the Login Redirect URL, and Microsoft’s Workday tutorial uses `login-saml2.flex` for its sign-on URL. The two forms both appear in vendor and Workday documents, so take the value your Workday team gives you.

Two points from Okta’s Workday SAML guide (as read in November 2026) are worth knowing, since they affect an OAuth rollout. Okta’s documentation says users will not be able to sign in through their regular login page if you enable SP-initiated SSO. Okta’s guide also gives a backup sign-in form, `[Your Workday URL]/login.flex?redirect=n`. Okta’s guide sets Service Provider ID to `http://www.workday.com`, while Microsoft’s Employee Self-Service page for Workday says the value must be unique and match the application identifier on the IdP side. Use the value your IdP app is configured with.

## The person must also be allowed to use SAML

Signing in through the IdP only works if the person’s authentication policy allows SAML. Microsoft’s setup page for its agent says to select SAML as an allowed authentication type for the users and to make sure SAML is enabled for the All Employees security group, then run Activate All Pending Authentication Policy Changes. If your policy limits employees to certain networks, an assistant’s sign-in can fail where a desktop sign-in works. See [restricting OAuth by IP](https://kiweely.com/guides/workday-maintain-ip-ranges-manage-authentication-policies-api).

The Name ID the IdP sends must also resolve to the Workday account. Microsoft’s Workday tutorial says the Workday account has to match the Name ID value, and shows the check on the worker’s Worker Security page. For choosing the right ID, see [matching Workday workers to Okta on the right ID](https://kiweely.com/guides/match-workday-workers-to-okta-on-the-right-id).

## Session and token lifetimes

Workday documents several clocks, and they do not all apply to every flow.

-   **Token timeout.** For the Extend authorization code flow, “the token timeout is tied to the session timeout configured for the user by the Workday administrator.”
-   **Extend access tokens.** Workday says all Workday Extend access tokens expire after 60 minutes.
-   **Agent Gateway.** The documented access token lifetime is 14,400 seconds (4 hours) and the refresh token lifetime is 24 hours.
-   **Refresh timeout.** The refresh timeout set when the client was registered begins at the first authorization step and is not extended when a new refresh token is issued. After it expires, the person goes through the authorization code flow again.
-   **Refresh tokens are tied to the user.** A refresh token is invalid if the username changes or the user is deactivated.
-   **IdP session.** Workday’s public documentation does not state how long an IdP keeps a person signed in; that is set in the IdP, so check Okta’s documentation. With Always Require IdP Authentication selected, Workday asks the IdP to reauthenticate regardless.

Pick the clock that applies to your connector, then test it by waiting out a short session in Sandbox. Workday’s Edit Tenant Setup - Security reference says that with Enable Signature KeyInfo Validation, a keyInfo public key that does not match the stored SAML key is rejected, and an error message appears on the Signons and Attempted Signons report.

[Kiweely Bridge](https://kiweely.com/bridge) (coming next) never uses a shared service account: every call uses the employee’s own Workday sign-in. These are the Workday settings your admin owns for that sign-in.

## Frequently asked questions

### Why does an employee have to sign in through Okta when an AI assistant connects to Workday?

The authorization code flow starts at Workday's authorize endpoint, which shows a Workday sign-in page if the person is not signed in. With SAML SSO set up, that sign-in is handed to your IdP, so Okta authenticates the person and Workday then returns an authorization code to the client.

### Should I turn on Always Require IdP Authentication for OAuth clients?

Only if you want a fresh sign-in each time. Workday describes the setting as requiring the SAML IdP to force users to reauthenticate even if they have an existing IdP session. Microsoft's Employee Self-Service setup page tells admins not to select it for its integration.

### Why does SAML sign-in fail intermittently with a valid certificate?

Clock difference between Workday and the IdP is one documented cause. Workday enforces a combined 3-minute maximum skew from the message issue time, and the Additional Negative and Positive Skew fields on Edit Tenant Setup - Security adjust the window within that limit.

### How long does a connected assistant stay signed in?

It depends on the flow. Workday documents that the token timeout follows the session timeout the administrator configured for the user. For agents through Agent Gateway it documents an access token lifetime of 4 hours and a refresh token lifetime of 24 hours. The refresh timeout set at API client registration is not extended when a new refresh token is issued.

## Sources checked

-   [Workday Administrator Guide: Reference, Edit Tenant Setup - Security](https://doc.workday.com/admin-guide/en-us/manage-workday/tenant-configuration/tenant-setup/dan1370796470031.html)
-   [Workday Administrator Guide: Enable Single Sign-On (SSO) for Mobile](https://doc.workday.com/admin-guide/en-us/manage-workday/tenant-configuration/mobile-setup/mobile-security-and-authentication/dan1370797995981.html)
-   [Workday Administrator Guide: Authenticate Agents to Agent Gateway](https://doc.workday.com/admin-guide/en-us/workday-ai/agents/onboard-partner-agent-to-agent-gateway.html)
-   [Workday Administrator Guide: External Agent ASU Considerations](https://doc.workday.com/admin-guide/en-us/workday-ai/agents/external-agents/concept--external-agent-asu-considerations.html)
-   [Workday Developer: Concept, Authorization Flows](https://developer.workday.com/documentation/axg1518029552225)
-   [Workday Developer: Authenticate Using the Authorization Code Grant Type](https://developer.workday.com/documentation/yai1528997518068)
-   [Workday Developer: Request a New Access Token with a Refresh Token](https://developer.workday.com/documentation/cqa1553122177664)

## Related guides

[All guides](https://kiweely.com/guides)

-   [### Match Workday People to Okta on the ID That Survives the Job Change Workday issues separate IDs for employees, contingent workers, and pre-hires, and can add one universal ID across those types. Okta matches the employee ID it imports and will not treat a contractor and a new employee as one person unless that universal ID is in place.](https://kiweely.com/guides/match-workday-workers-to-okta-on-the-right-id)
-   [### How to Configure User-Delegated OAuth 2.0 Authorization Code Grant in Workday Register a user-delegated Workday OAuth 2.0 client using Register API Client with Authorization Code Grant, PKCE (S256), and Bearer credentials so external applications authenticate employees through SSO and run under their own Workday permissions.](https://kiweely.com/guides/workday-authorization-code-grant-user-delegated-oauth-setup)
-   [### Managing Workday OAuth Refresh Token Expiration, Rotation, and Revocation Workday rotates user-delegated OAuth refresh tokens on every exchange while enforcing a fixed absolute Refresh Token Timeout measured from initial sign-in. Learn how access TTLs, Enforce 60 Minute Access Token Expiry, and admin revocation tasks work.](https://kiweely.com/guides/workday-oauth-refresh-token-expiration-rotation-revocation)
-   [### Restricting Workday OAuth access by IP: Maintain IP Ranges and authentication policy rules for browser, mobile and API clients An IP range does nothing until an authentication rule uses it and the policy change is activated. Workday’s own examples give separate rules for the corporate network, mobile self-service and integration users. Rule evaluation order is not public, so test it.](https://kiweely.com/guides/workday-maintain-ip-ranges-manage-authentication-policies-api)
-   [### Resolving SSO Redirect Loops on the Workday OAuth Authorize Endpoint Break SAML and OIDC redirect loops on Workday’s OAuth Authorize Endpoint by fixing IdP-initiated Login Redirect URLs in Edit Tenant Setup - Security, aligning SP-initiated SAML settings, and adding OAuth 2.0 to your Manage Authentication Policies rules.](https://kiweely.com/guides/workday-sso-saml-oidc-loop-external-oauth-authorize-endpoint)
-   [### Aligning Workday Session Timeouts with External OAuth Access Token Lifetimes By default, a Workday OAuth 2.0 access grant inherits the signed-in worker’s Workday session timeout from Maintain Password Rules or Edit Workday Account unless overridden on Register API Client, while Refresh Token Timeout (in days) sets an absolute re-authentication ceiling.](https://kiweely.com/guides/workday-anonymous-vs-authenticated-session-timeout-oauth)
-   [### How to Authenticate Workday Studio and External Tools Using an OAuth API Client with PKCE (When SSO Blocks Passwords) When SSO leaves consultants without a Workday password, register an API Client with Authorization Code Grant and Support Proof Key for Code Exchange enabled, then use that client ID with Studio or Vine OAuth sign-in instead of username and password auth.](https://kiweely.com/guides/workday-api-client-pkce-sso-without-workday-password)

### More guides on Tenants and developer accounts

[All 51 guides](https://kiweely.com/guides#tenants)

-   [Workday Payroll ‘Pay Results in Error’: 10 Root Causes and Exact Fixes](https://kiweely.com/guides/workday-payroll-pay-results-in-error-10-root-causes)
-   [Workday Payroll Garnishments, Tax Withholding, and SUI Configuration Errors](https://kiweely.com/guides/workday-payroll-garnishments-tax-withholding-sui-errors)
-   [Workday Off-Cycle and On-Demand Payroll Runs: Avoiding Tax and Deduction Traps](https://kiweely.com/guides/workday-off-cycle-on-demand-payroll-tax-deduction-traps)
-   [Workday Payroll Pre-Commit Audit: Retro Spikes and Zero-Net Checks](https://kiweely.com/guides/workday-payroll-pre-commit-audit-retro-zero-net-checks)
-   [Workday Sandbox Preview Testing: A 5-Week Release Runbook](https://kiweely.com/guides/workday-sandbox-preview-5-week-testing-schedule)
-   [Workday R1 and R2 Release Management: Auto-Enabled vs. Opt-In Triage](https://kiweely.com/guides/workday-release-management-auto-enabled-vs-opt-in-triage)
-   [Workday Retro Payroll: Calculation Triggers, NRPPT Limits, and Audit Procedures](https://kiweely.com/guides/workday-retro-payroll-calculation-triggers-audit)
-   [Workday Pay Groups, Run Categories, and Period Schedules: Setup Rules and Assignment Errors](https://kiweely.com/guides/workday-pay-group-run-category-period-schedule-setup)

### From the blog on Tenants and developer accounts

[All posts](https://kiweely.com/blog)

-   [Why One Generic AI Chatbot Can’t Run a Workday Tenant](https://kiweely.com/blog/why-one-ai-chatbot-cant-run-workday-specialist-ai-team)
-   [Proactive Workday Tenant Monitoring: Catch Breaks Before Employees Do](https://kiweely.com/blog/proactive-workday-tenant-monitoring-before-employees-complain)
-   [Workday Freelancer Guide: Managing Multiple Client Tenants on One Laptop](https://kiweely.com/blog/workday-freelancer-managing-multiple-client-tenants-safely)

## Let Workday check the work.

Kiweely writes WQL and builds orchestrations in your own tenant, and Workday, not Kiweely, says whether they passed.

[Start for free](https://kiweely.com/download) [Book a demo](https://kiweely.com/demo)

## Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.
