Skip to content

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.

  1. Discovery: GET /.well-known/oauth-protected-resource/api/mcp (RFC 9728) and GET /.well-known/oauth-authorization-server (RFC 8414). A 401 on /api/mcp carries the WWW-Authenticate header with the discovery URL.

  2. Dynamic registration (RFC 7591): POST /oauth/register with client_name and redirect_uris returns a client_id (public client, no secret).

  3. Authorization: GET /oauth/authorize in the browser. Sign in and choose companies and module permissions. PKCE S256 and the target resource protect token exchange.

  4. Token: POST /oauth/token with authorization_code and code_verifier returns an access token (1 hour) and a rotating refresh token (30 days).

  • Each call includes explicit company_id within consented companies. X-Tario-Company is 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.