Loading…

Auth0
Cloud-native platform that provides authentication (verifying who a user is) and authorization (verifying what a user can access) services for applications.
- 65 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Scaling AI Agent Identity with CIMD and Application Profiles in Auth0
The rise of AI agents and MCP-based ecosystems introduces identity challenges when onboarding numerous clients without manual overhead. Auth0 expands its Client ID Metadata Document (CIMD) support with two registration modes — manual pre-registration and dynamic registration — for OAuth clients. Manual pre-registration requires an administrator to submit a metadata URL for review and approval, while dynamic registration enables just-in-time client discovery during authorization flows. CIMD uses an HTTPS URL as the client identifier pointing to a metadata document with the client’s name, redirect URIs, and authentication methods; Auth0’s implementation uses shared caching to reduce database write pressure and support more dynamic clients without latency. Application Profiles centrally manage security policies such as refresh token rotation and DPoP across dynamically registered clients, aiming to provide a practical identity foundation for MCP servers and agentic applications.
Introducing Terraform Auth0 Modules
Teams building B2B SaaS on Auth0 repeatedly configure applications, APIs, M2M clients, MFA, attack protection, branding, custom domains, and enterprise SSO. The new Terraform Auth0 Modules package this foundation into ready-made modules, starting with the b2b-saas-starter module on the Terraform Registry. A single module block creates an application, API, tenant settings, attack protection, and MFA, with security defaults like RBAC enforcement, PKCE, rotating refresh tokens, and TOTP MFA. Roles, permissions, and enterprise SSO connections for customer organizations are described as data inside the module, which validates input to prevent errors. The module supports multiple applications per tenant by letting other instances skip tenant-wide resources, and each default can be overridden via module inputs.
Your Agent Can Better Drive the Auth0 CLI with Agent Mode
The Auth0 CLI’s original design assumed a human operator, causing agents to waste round trips guessing commands and parsing prose error messages, and a misspelled command would exit 0, misleading scripts. Agent Mode introduces a single –agent-mode flag that enables structured JSON output, disables interactive prompts, and guarantees non-zero exit codes on failure, and it can be auto-detected from known coding agents. The new auth0 commands –flat and –detailed let an agent discover the entire CLI surface in one call instead of multiple –help lookups. Flags like –schema, –data, and –query allow agents to inspect expected payloads from the OpenAPI spec and send validated data without guessing field names. Structured error responses with stable codes and field-level details enable agents to programmatically recover from failures without parsing natural language.
ID-JAG, Explained: The New OAuth Grant for Cross-App Access
ID-JAG (Identity Assertion JWT Authorization Grant) is a new OAuth grant designed for agent-to-app and app-to-app authorization. It addresses consent fatigue and lack of central visibility by letting an enterprise identity provider issue a signed assertion that one app may access another’s API on a user’s behalf, moving decisions from user clicks to enterprise policy and giving IT teams governance. The flow involves three actors: the Requesting App, the Resource App with its own authorization server, and the enterprise IdP. The user logs in via SSO, the Requesting App exchanges the ID token for an ID-JAG from the IdP, then trades that ID-JAG for an access token from the Resource App’s authorization server, all without browser redirects or consent screens. The ID-JAG is used in Auth0’s Cross App Access feature and MCP’s Enterprise-Managed Authorization, and is defined in an in-progress IETF draft with Auth0’s implementation in Early Access.
Securing AI Agents with Auth0 CIMD and Token Exchange
AI agents break three OAuth assumptions: static permissions, predictable life cycles, and direct delegation. Auth0’s Strict Mode for APIs enforces a permission ceiling by requiring explicit Client Grants and PKCE, structurally preventing rogue dynamically registered clients. Client Initiated Metadata Documents (CIMD) allow agents to host a metadata document at a stable HTTPS URL; Auth0 fetches and validates it to issue a client ID with automatic default permissions. RFC 8693 Token Exchange enables multi-hop delegation: the agent presents the user’s token and its own credentials to Auth0’s /oauth/token endpoint, which returns a token with the original user as ‘sub’ and the agent’s client ID as ‘act’. The post walks through a workflow from CIMD bootstrap to user consent to token exchange, and notes that record-level access requires Auth0 Fine-Grained Authorization.
Securing the Front Door of Agentic Commerce: Four Channels, One Identity Layer
Agentic commerce identity authenticates autonomous AI agents acting for human shoppers, using open standards like Poppy and OAuth to verify the agent, the customer, and authorized actions. The post identifies four emerging channels: first-party embedded agents, third-party MCP connectors, UCP-based commerce protocols, and personal agents with their own browsers, each with different owners, protocols, and trust models. Each channel requires a unified identity layer that recognizes the agent, links customer accounts, scopes permissions, steps up for high-risk actions like address changes, and enables one-click revocation. Okta’s Auth0 supports open standards like Poppy and UCP to provide this layer, with Poppy standardizing personal agent recognition via cryptographic signatures and UCP’s Identity Linking carrying loyalty benefits across platforms. The commercial opportunity is significant, with Bain projecting $300-500 billion in US agentic commerce and Target reporting 2,000% year-over-year AI-driven traffic, and identity architecture determines how much of that spend a business captures.
On-Behalf-Of Is a Pattern. Token Exchange Is the Standard.
The post distinguishes the On-Behalf-Of pattern from the OAuth 2.0 Token Exchange standard (RFC 8693) and Microsoft’s implementation, warning against forwarding a user’s token downstream as it breaks the audience trust boundary. Token Exchange uses a subject_token for the user’s identity and an optional actor_token to record the calling service, with a chainable act claim for multi-hop calls. Microsoft’s implementation uses a jwt-bearer grant, only works for user principals, and can mint SAML assertions for legacy integrations, but the resulting token must never be relayed back to the client. For AI agents, neither OBO nor Token Exchange handles explicit user delegation, so integrators must log act claims, scope tokens to specific tasks, issue per-agent credentials, and build audit trails. The post notes the confused deputy problem resurfaces with agents, and regulatory transparency requirements around automated decision-making are already in effect.
Agentic Development: Time to Shift the Focus
The post argues that the ability to go from idea to pull request using AI agents is now a commoditized problem, with two main approaches: vibe coding for rapid prototyping and human-supervised agentic development for mature products. The real challenges lie in deciding what to build—using criteria such as customer value, clear objectives, product fit, and financial strategy—and validating that the generated code is safe to ship. Validation must cover functional correctness, performance, security, resilience, compliance, and internal code quality using tools like unit tests, contract tests, AI-generated runtime tests, DAST, SAST, dependency scanning, code quality analysis, LLM-based code review, progressive rollout, and formal methods. A risk-based approach applies deeper validation to high-risk components—such as security-critical or data-damaging code—while allowing automated merges for low-risk areas like documentation or demo apps. The focus should shift from code generation to crisp product definition and robust verification pipelines.
One SDK, Multiple Platforms: Introducing the Auth0 SDK for Kotlin Multiplatform
Auth0 released its official Kotlin Multiplatform SDK for Android and iOS, enabling unified authentication logic in shared common code. Developers write login, logout, token management, and direct API calls once in commonMain using Kotlin suspend functions and a sealed Result type for exhaustive error handling. Native security is maintained through platform-specific implementations: Android uses Keystore-backed DataStore and Custom Tabs, iOS uses Keychain and ASWebAuthenticationSession, with Swift async/await interop via SKIE. The SDK is available on Maven Central as com.auth0.kmp:auth0:1.0.0-beta.1 as a single artifact or separate modules, requiring Kotlin 2.3.21, Android minSdk 24, and iOS 14.0+. It includes a Credentials Manager for token storage and automatic renewal, and supports advanced features including WebAuthn passkeys, DPoP token binding, custom storage, and configurable retry with fixed or exponential backoff.
Introducing the Auth0 SDK for TanStack Start
Auth0 released a dedicated SDK for TanStack Start, a full-stack React framework, to replace hand-rolled OIDC flows or adapted SDKs. The SDK provides hooks, components, route guards, server middleware, and server helpers that integrate with TanStack Start’s server functions, middleware, and file-based router. Setup involves installing the package, configuring environment variables for the Auth0 application, creating a server-side Auth0 instance, registering the auth0Middleware in the start file, and wiring the router context and Auth0Provider in the root route. The SDK automatically mounts auth routes for login, callback, logout, profile, and backchannel logout, and supports features like login, logout, protected routes via requireAuth, session reading on the server with getSession, and additional capabilities such as passkeys, organizations, MFA, and API scope checks. The fastest way to try it is the official quickstart, which scaffolds a fresh app and adds the SDK step by step.
Multi-Tenant SaaS Apps with Auth0 Organizations — Part One
Auth0 Organizations provide an isolated workspace per tenant with dedicated members, identity provider connections, metadata, and role-based access control, addressing enterprise requirements like Acme Corp’s SSO ultimatum. Login flows differentiate between B2C users (no organization parameter) and B2B users (organization parameter scopes connections, branding, and token claims including org_id). Home Realm Discovery automatically matches users to their enterprise IdP by email domain when an organization is set, requiring the Identifier First authentication profile and eliminating password prompts. Authorization is per-organization via org_id claims in access tokens, with organization-level roles and permissions resolved through RBAC. The post also covers invitation tickets, tenant context switching where users obtain new tokens with a different org_id, recommends one Auth0 Organization per app tenant, describes Auth0 Actions for custom metadata, and introduces this as part one of a five-part series on B2B identity.
Turning Customer Identity into A Growth Engine
Customer Identity and Access Management (CIAM) has traditionally been viewed as a security obligation, but Auth0 argues it can be a growth driver when optimized for conversion. The Auth0 Identity Conversion Suite combines Anonymous Sessions and Experiment Center to transform identity from a rigid gatekeeper into a dynamic growth engine. Anonymous Sessions issue scoped access tokens to track anonymous users from their first interaction, preserving cart contents, preferences, and consent selections when they convert to authenticated accounts. Experiment Center enables native A/B testing and gradual rollouts of authentication flows, allowing teams to test changes on controlled traffic segments before global deployment with audit trails. The suite addresses high cart abandonment in retail, cross-device context loss in travel, and onboarding friction in financial services by enabling seamless guest transitions, cross-channel journey unification, and progressive trust and compliance.
Auth0 Metadata Explained: user_metadata vs app_metadata
Auth0’s user_metadata and app_metadata define a security boundary: user_metadata is writable by users through the update:current_user_metadata scope, while app_metadata requires privileged scopes available only to confidential clients via the client credentials grant. Post-login Actions reading authorization data like subscription plans or feature flags from user_metadata allow users to escalate privileges by modifying their own metadata, for example setting plan to enterprise and beta_access to true. Writing to app_metadata demands a server-side M2M application with update:users_app_metadata scope, which no public client or user token can obtain. The correct practice is to store access-control data such as roles, tenant membership, and IP allowlists in app_metadata, and non-sensitive preferences like theme or language in user_metadata. A third field, client_metadata, holds application-level properties readable via event.client.metadata in Actions.
Architecting Secure Identity: Extending Auth0 PrivateLink with Intelligent Gateways
Enterprises centralize authentication into a single Auth0 environment but must comply with frameworks like PCI-DSS, HIPAA, and SOC 2 that restrict data to private channels. Auth0 Outbound PrivateLink provides a secure unidirectional connection between Auth0 and AWS infrastructure, avoiding the public internet. However, a single PrivateLink connection per environment cannot directly reach multiple isolated VPCs for staging and production. The Intelligent Gateway Pattern solves this by deploying an API gateway or reverse proxy at the PrivateLink termination point to fan out traffic. Auth0 Actions append context such as custom headers like X-Target-Env or specific paths, and the gateway inspects these to route requests to the appropriate isolated VPC, decoupling secure transport from internal routing. This pattern unblocks identity consolidation by allowing a single Auth0 tenant to serve both staging and production workloads while maintaining strict VPC isolation.
Seven Architectural Readiness Checks Before Production Launch
Auth0’s free tier supports up to 25,000 MAUs for MVPs, but teams must complete seven architecture checks before production launch to avoid blockers. The checks cover Auth0 Organizations for multi-tenancy, Enterprise Connections for SSO, Custom Domains, JIT hash migration, Fine-Grained Authorization, MFA factor progression, and tenant lifecycle management. The free plan caps Organizations at five, Enterprise Connections at one plus unlimited Okta, and MFA at passwordless and passkeys only. Upgrading to B2B Essentials or Professional unlocks unlimited organizations, up to five enterprise connections, and advanced MFA including TOTP, WebAuthn, push, and SMS; Professional also enables Custom Database migration scripts. Teams must add a credit card for Custom Domains, add a secondary admin to prevent tenant deletion after 150 days of inactivity, and note that FGA free trial supports 100 MAUs and 50,000 tuples for prototyping.
Integrating Claude Code with Auth0 APIs
This tutorial explains how to integrate Claude Code with Auth0’s Management API using the Auth0 MCP Server, enabling AI-driven authentication configuration management from the terminal. The setup uses the OAuth 2.0 Device Authorization Flow to obtain scoped access tokens stored in the OS keychain, avoiding static secrets that risk exposure in source control. Developers initialize the MCP server with explicit scopes like read:clients or update:actions, then register it with Claude Code via the claude mcp add command, with credentials never stored in plain text. A CLAUDE.md file provides project context and constraints, guiding the agent to respect environment-specific configurations and security policies such as never modifying production callback URLs without confirmation. The tutorial demonstrates refactoring JWT validation code in a single terminal session, with human-in-the-loop confirmation ensuring safe agentic changes and all auth-critical paths undergoing manual PR review.
Introducing IdentiFlows.dev: A Visual Reference for Identity Flows
Developers often struggle to quickly find accurate sequence diagrams for OAuth 2.0 and OpenID Connect flows. IdentiFlows.dev is a new website that provides a visual reference for common identity protocols, organized into four categories. Each flow page includes an introduction explaining the flow’s purpose, a sequence diagram showing the full exchange, and a step-by-step breakdown of each stage, with an interactive mode to walk through the steps. The initial release covers eight flows, including OAuth 2.0 Authorization Code with PKCE, the recommended login flow for most modern apps, SAML 2.0 SP-Initiated SSO, DPoP-Bound Access Token requests, and OpenID Connect Discovery. The project is an early release with plans to add more flows like Client Credentials, Device Authorization, and WebAuthn, and the author invites feedback to guide development.
Securing Agentic Commerce Using Auth0 and the Universal Commerce Protocol (UCP)
Auth0 is bringing secure identity to the Universal Commerce Protocol (UCP) so retailers can safely let AI agents discover and purchase products on shoppers’ behalf. UCP is an open standard that gives AI agents a consistent way to interact with a merchant’s catalog, cart, and checkout, reducing the need for separate integrations per platform. Auth for UCP provides the identity and trust layer, handling agent registration, account linking, and scoped temporary token issuance through an on-behalf-of token exchange. This ensures that every purchase ties to a verified human with time-limited access and a full audit trail, while agents see only the authenticated shopper’s data. Auth0 is opening Auth for UCP Limited Early Access to select customers through its Agentic Commerce Partnership Program.
Auth0 for ChatGPT - Build and Manage Identity by Just Asking
The Auth0 plugin for ChatGPT enables developers to configure authentication, manage tenants, and generate integration code through natural language prompts without leaving the ChatGPT session. It connects to a real Auth0 account, producing SDK code that matches the actual tenant configuration rather than generic boilerplate that requires fixing later. Users can create applications, set up connections, query tenant data, and get accurate answers grounded in Auth0’s documentation right in the conversation, all without opening the Auth0 dashboard. The plugin addresses the common pattern where identity setup is postponed until after the app demo, disrupting development flow. By integrating identity management into the conversational workflow, it allows developers to describe what they need and receive working identity infrastructure directly in the chat, including enterprise capabilities like Organizations and MFA.
Stop Building MFA from Scratch (And What to Do Instead)
Building multi-factor authentication (MFA) in-house is a much larger project than teams expect, requiring authenticator app integration, QR code generation, secure backup recovery codes, and edge cases like lost phones. Auth0 positions its MFA offerings as a way to offload that work so developers can focus on core product features. The company’s paid plans include MFA directly, with Pro MFA covering standard authenticator apps in B2C and B2B Essentials plans. Enterprise MFA adds WebAuthn, push notifications, SMS, and voice, available as an add-on to B2B Essentials or included in Professional tiers. Auth0 argues that using its MFA helps teams pass compliance, unblock enterprise deals, and avoid weeks of building login infrastructure.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.