Skip to main content

Zeq Auth — PKCE Cross-Domain

Cross-domain PKCE OAuth flow for third-party apps. 'Sign in with Zeq' — apps get a scoped token without ever seeing the equation.

EndpointPOST /api/auth/pkce/authorize
Authnone
Rate limit10/min
Categoryidentity

Parameters

NameTypeRequiredDescription
clientIdstringYesRegistered app client ID.
codeChallengestringYesPKCE code challenge (SHA-256, base64url).
scopestringNoRequested scopes (e.g. 'identity vault:read'). Default: 'identity'.
redirectUristringYesCallback URL.

Returns

{ authorizationCode, expiresIn, redirectUri }

Example

curl -sS -X POST \
-H "Content-Type: application/json" \
-d '{
"clientId": "<clientId>",
"codeChallenge": "<codeChallenge>",
"scope": "<scope>",
"redirectUri": "<redirectUri>"
}' \
"https://zeqsdk.com/api/auth/pkce/authorize"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-auth-pkce.