Third-Party Developer Console
Self-service OAuth2 registration at console.timetofuture.com for external apps requesting profile and email identity scopes.
Self-Service Registration
External developers can integrate "Sign in with TTF" without admin intervention through the TTF Developer Console (https://console.timetofuture.com):
- Developer Sign Up & Verification: Create a developer account (stored in
Developer, separate from internalUserrecords). - Create App (
POST /api/console/apps):client_idis generated server-side to prevent collisions with internal clients likehrmsormail.trustis locked to'third_party'andallowedScopesdefaults to['profile', 'email'].
- Configure Redirect URIs & Icon: Add exact callback URLs and upload an optional app icon shown on the user consent screen.
What Changes for Third-Party Clients
scopeis required onGET /api/sso/authorize(space-separatedprofileand/oremail).- User Consent Screen: First login asks the user to Allow or Deny access (
POST /api/sso/consent). Denying redirects back with?error=access_denied. Approval is remembered (SsoConsent) for subsequent logins. - Restricted Identity Token:
POST /api/sso/tokenreturns a short-lived (1 hour) JWT withaud: 'ttf-identity'and no refresh token.
Fetching User Identity
Use the identity token exclusively with GET /api/sso/userinfo:
bash
curl https://api.timetofuture.com/api/sso/userinfo \
-H "Authorization: Bearer <ttf-identity-token>"json
{
"sub": "6712a9e0f23b120014a9b10c",
"name": "Aarav Sharma",
"email": "aarav@company.com"
}Last updated on
