API Reference tango v#0.3.0

Copy Markdown View Source

Modules

OAuth2 integration library for Elixir applications.

Ready-to-use OAuth API for Phoenix applications.

CORS (Cross-Origin Resource Sharing) plug for Tango OAuth API.

Reusable OAuth API router for Phoenix applications.

Provides data sanitization for audit logging to prevent information disclosure.

Main OAuth2 flow orchestrator.

Stages and verifies short-lived OAuth authorization candidates.

Verifies the identity represented by an ephemeral OAuth credential.

Nango provider catalog integration.

Context module for OAuth connection management with multi-tenant isolation.

Credential-free view of a stored OAuth connection.

Convenience module for using Tango LiveView components.

LiveComponent that encapsulates the OAuth connect flow.

Provides the JavaScript hook name for the Tango OAuth popup flow.

Manages database migrations for Tango.

Tango V01 Migration - Initial schema setup.

Tango V02 Migration - Provider rejection tracking on connections.

Tango V03 Migration - staged authorization candidates and authorization intent.

Context module for OAuth provider configuration management.

Closed refresh-failure values for token refresh.

Ecto repository for Tango OAuth library.

Comprehensive OAuth activity logging for security and compliance.

Active OAuth connections with encrypted token storage.

Temporary OAuth flow sessions with PKCE support.

OAuth provider configuration schema.

Inserts providers and connections for consumer test suites.

Sends token-endpoint requests (authorization-code exchange and refresh) with the per-provider options recorded from the Nango catalog in provider metadata (see Tango.Schemas.Provider.catalog_metadata/1).

Custom Ecto type for encrypting binary data using Tango.Vault.

Comprehensive input validation for the Tango OAuth library.

Encryption vault for OAuth token storage.

Mix Tasks

Shared functionality for Mix tasks related to provider management.

Helper functions for Tango Mix tasks.

Creates a provider with OAuth credentials from the Nango catalog.

Shows detailed configuration for a specific provider.

Refreshes locally configured providers from the Nango catalog.

Generates an Ecto migration that installs Tango's schema (providers, connections, OAuth sessions, audit log) by calling Tango.Migration.up/0.