Skip to main content
POST https://authproxy.turnkey.com/v1/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

All three fields are required. First initialize, verify the target, and encrypt on the client. Encode encryptedMessage as a string, not a nested object. Don’t include the legacy authCode, codeVerifier, or nonce fields; they travel inside encryptedMessage.

Response

Continue OAuth Login or signup with the same client session key you used to compute the nonce. See Auth Proxy auth flows for the full sequence and the encrypted payload for the fields to encrypt.