Auth & SSO Endpoints
Login, token refresh, OAuth2 PKCE authorize, code exchange, userinfo, and central logout endpoints.
Login (POST /api/auth/login)
POST
/api/auth/loginBody Parameters
| Parameter | Type | Description |
|---|---|---|
emailrequiredbody | string | User email address |
passwordrequiredbody | string | Account 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/*)
| Method | Path | Purpose | Auth |
|---|---|---|---|
GET | /api/sso/authorize | Start OAuth2 + PKCE (S256) flow | Browser session / None |
GET | /api/sso/client-info | Fetch client metadata & icon for login/consent UI | None |
POST | /api/sso/login | Submit credentials on hosted SSO page | None |
POST | /api/sso/consent | Approve or deny third-party profile / email scopes | Session |
POST | /api/sso/token | Exchange authorization code + code_verifier for JWT | None |
GET | /api/sso/userinfo | Read { sub, name, email } for third_party tokens | Bearer <identity-token> |
POST | /api/sso/logout | Clear central SSO session cookie | Session |
GET / POST / PATCH / DELETE | /api/sso/clients | Manage registered SSO clients | SUPERADMIN JWT |
Last updated on
