Auth & SSO Endpoints | TTF Docs
Skip to main content
api reference

Auth & SSO Endpoints

Login, token refresh, OAuth2 PKCE authorize, code exchange, userinfo, and central logout endpoints.

Login (POST /api/auth/login)

POST/api/auth/loginAuth: None

Body Parameters

ParameterTypeDescription
email
requiredbody
stringUser email address
password
requiredbody
stringAccount password
Try itInteractive API Playground
POST
Generated cURL
curl -X POST "https://api.timetofuture.com/api/auth/login" \
  -H "Content-Type: application/json" \
  -d '{ "email": "demo.admin@timetofuture.com", "password": "your-password" }'

SSO Endpoints (/api/sso/*)

MethodPathPurposeAuth
GET/api/sso/authorizeStart OAuth2 + PKCE (S256) flowBrowser session / None
GET/api/sso/client-infoFetch client metadata & icon for login/consent UINone
POST/api/sso/loginSubmit credentials on hosted SSO pageNone
POST/api/sso/consentApprove or deny third-party profile / email scopesSession
POST/api/sso/tokenExchange authorization code + code_verifier for JWTNone
GET/api/sso/userinfoRead { sub, name, email } for third_party tokensBearer <identity-token>
POST/api/sso/logoutClear central SSO session cookieSession
GET / POST / PATCH / DELETE/api/sso/clientsManage registered SSO clientsSUPERADMIN JWT