OAuth 2.1 for connectors
Discovery, dynamic registration, PKCE, authorized companies and module permissions for external agents.
Web connectors discover and authorize access on their own, with OAuth 2.1 and PKCE. To connect from claude.ai: Settings → Connectors → Add custom connector with the URL https://app.tario.io/api/mcp; the consent screen opens automatically.
Discovery:
GET /.well-known/oauth-protected-resource/api/mcp(RFC 9728) andGET /.well-known/oauth-authorization-server(RFC 8414). A401on/api/mcpcarries theWWW-Authenticateheader with the discovery URL.Dynamic registration (RFC 7591):
POST /oauth/registerwithclient_nameandredirect_urisreturns aclient_id(public client, no secret).Authorization:
GET /oauth/authorizein the browser. Sign in and choose companies and module permissions. PKCE S256 and the target resource protect token exchange.Token:
POST /oauth/tokenwithauthorization_codeandcode_verifierreturns an access token (1 hour) and a rotating refresh token (30 days).
- Each call includes explicit
company_idwithin consented companies.X-Tario-Companyis not a substitute and does not change the active browser company. - Scopes separate read, prepare and execute access by module. Authorizing an agent does not approve sensitive operations: open the link in the card or summary and confirm on Tario's website with your authenticated session, not inside the chat. Invoice and estimate drafts are the intentional exception and may save directly with prepare and execute permissions. Expanding access requires new authorization.
- Revoke access under Integrations → Agent connections. Membership, permissions and 2FA still apply. Personal tokens do not replace an OAuth grant for MCP operations.