Sign in with TTF (SSO Overview) | TTF Docs
Skip to main content
sso

Sign in with TTF (SSO Overview)

Central OAuth 2.0 Authorization Code + PKCE authentication powering every TTF app and third-party Developer Console integrations.

How "Sign in with TTF" Works

Sign in with TTF is built on master-backend (/api/sso/*) using standard OAuth 2.0 Authorization Code + PKCE (S256) — the same flow as "Sign in with Google". Log into one TTF app, and every other TTF app silently signs you in via the central session cookie.

  1. Your app redirects the browser to GET /api/sso/authorize with client_id, redirect_uri, response_type=code, state, code_challenge, and code_challenge_method=S256.
  2. If the visitor holds an active central session cookie (SSO_SESSION_TTL_HOURS, default 12h), the server immediately redirects back with ?code=...&state=.... Otherwise, it displays the hosted login page.
  3. Your callback route calls POST /api/sso/token with code + code_verifier.
  4. First-party apps receive { token, refreshToken, user } matching POST /api/auth/login. Third-party apps receive a scoped identity token (aud: 'ttf-identity') valid for GET /api/sso/userinfo.

Choose Your Integration Path

Last updated on