TF Fiscal

Platform & integrations

SSO

2 endpoints

SSO — Automatic Login via Token

Base URL (Production)
https://api.tffiscal.com
Authentication
Headers: sign, timestamp, token
Ticket Validity
60 seconds — single use

SSO (Single Sign-On) allows the integrator's ERP to generate a direct access link to TFiscal for the user, already authenticated in the corresponding company and in the desired language — without requiring them to enter credentials.

How it works:
  • The ERP calls POST /api/sso/create_ticket sending the company token.
  • TFiscal returns a redirectUrl containing a single-use opaque ticket.
  • The ERP redirects the user's browser to that URL.
  • The page consumes the ticket and the user logs in automatically on the company panel.
Security: the actual company token never appears in the URL. Only the ephemeral ticket (valid for 60 seconds and single use) is exposed to the browser.

Restrictions and Security

Ticket characteristics

CharacteristicValue
Validity60 seconds after generation
UsageSingle use — once consumed, cannot be reused
Rate limitTicket creation is subject to the call rate limit of the token (configured by TF for each integrator) · 60 consumptions/minute per IP
StorageExpired tickets are removed automatically by the platform

Navigation restrictions

Users logged in via SSO have access only to the corresponding company screens (/invoice/company/*) and to the accountant management screen (/invoice/accountant-requests). Attempts to access other areas (reseller panels, general reports, administration) are automatically redirected to the company panel.

Session after login

After exchanging the ticket for a JWT, the user has a normal TFiscal session (JWT valid for 365 days, same as traditional login). The 60 seconds are only the window between generating the ticket and opening the link — afterwards the user remains logged in normally until they sign out.

Important: the create_ticket must be called exclusively server-side by the ERP. Never call this endpoint directly from the browser — that would expose the company token in the front-end.