ADP
ADP API Authentication
How Toku authenticates with the ADP API using OAuth 2.0 client credentials and mutual TLS
Toku connects to ADP Workforce Now using ADP's OAuth 2.0 client credentials flow combined with mutual TLS. Every call — token requests and API requests alike — is authenticated with both a client ID/secret and an ADP-issued X.509 client certificate.
OAuth 2.0 + Mutual TLS Flow#
Issue credentials
Your ADP administrator creates a dedicated API project for Toku in ADP API Central, which issues the client ID, client secret, and X.509 client certificate and key. (For ADP Marketplace subscriptions, credentials are granted through the Consent Manager instead.)
Request a token
Toku's backend presents the certificate and client credentials to ADP's token endpoint and receives a bearer access token.
Refresh
Tokens expire after 60 minutes. Toku requests a fresh token automatically before expiry — the connection stays live without manual intervention.
A successful response:
Authenticated API requests carry the bearer token and the same client certificate:
Mutual TLS Requirements#
| Requirement | Detail |
|---|---|
| Client certificate | ADP-issued X.509 certificate and private key, presented on every call |
| Hosts | Required for both accounts.adp.com (tokens) and api.adp.com (APIs) |
| TLS version | TLS 1.2 |
| Token lifetime | 3,600 seconds (60 minutes), auto-refreshed by Toku |
Because ADP validates the certificate on every request, a leaked client secret alone cannot access your data — the certificate is required as a second, independent factor.
Environments#
| Environment | Token endpoint |
|---|---|
| US | https://accounts.adp.com/auth/oauth/v2/token |
| EU | https://accounts.eu.adp.com/auth/oauth/v2/token |
Credentials and certificates are generated in your own ADP API Central project, so your ADP admin controls (and can revoke) Toku's access at any time. See ADP's developer documentation and the mutual TLS guide to validate any of the calls referenced in this section.
Next#
How Toku reads your worker roster
How Toku tracks pay cycles and payroll output