Skip to main content
POST https://authproxy.turnkey.com/v1/init_oauth2_authenticate_v2

Authorization

Send X-Auth-Proxy-Config-Id: <your Auth Proxy config ID> and Content-Type: application/json. OAuth must be allowed in that proxy configuration. Follow the Auth Proxy origin requirements.

Request body

Both fields are required. TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V2 is the only accepted suite. The proxy selects the credential registered for clientId in its configured parent organization. This is a flat body, not a public API activity envelope.

Response

Verify the signed target and encrypt on the client. Include the returned credential ID in the encrypted payload and the subsequent OAuth 2.0 Authenticate V2 request. A target completes one exchange and expires after five minutes, so initialize a new target for each login attempt. Take the parent organization ID, provider client ID, and provider for the encrypted payload from your client configuration. See Auth Proxy auth flows for the full sequence.