Authorization Is a Runtime Decision
See how an agent request becomes an allowed or denied tool action through identity context, policy checks, scoped credentials, and an auditable decision trail.
Loading…
Topic
19 posts about OAuth2. Every summary links to the original.
See the idea
See how an agent request becomes an allowed or denied tool action through identity context, policy checks, scoped credentials, and an auditable decision trail.
See how an Auth0 login becomes an API decision: redirect the user, issue the right token, validate its claims, and apply audience, scope, and access policies.
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.
Newest first
MongoDB Atlas App Connections enables builders to securely connect AI coding tools to their MongoDB Atlas account with a single click, eliminating the need to share long-lived service account credentials. Built on OAuth 2.1, it allows AI clients to act on the user’s behalf through the Atlas MCP Server without generating or managing credentials. Supported tools include ChatGPT, Claude, Codex CLI, Cursor, Devin, and Grok, which can provision, manage, and query Atlas resources based on the user’s existing permissions. Administrators can opt in to delegation, set read-only or full access, and revoke connections at any time, with all actions attributed to both the application and the user. The feature is available now, with a five-step connection flow that includes installing a plugin, requesting connection, and approving via a consent screen.
Supabase announced the MCP Server block that lets developers give their Supabase apps an MCP server, enabling customers to use app actions as tools from clients like ChatGPT or Claude after signing in with their existing account. Every tool call runs as that user, so RLS policies decide what each agent can access. The block adds an Edge Function using the official MCP TypeScript SDK and Supabase authentication helpers to verify tokens and provide a user-specific Supabase client. Developers write tool functions that can query RLS-protected tables, call database functions, or invoke Edge Functions, keeping business rules in the code the tool calls. The server can also display app UI inside the chat via MCP Apps, and the block includes a Copy agent prompt button and works with Cloudflare Workers and other Web-standard backends.
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.
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.
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.
Google announced DPoP (RFC 9449) support for its OAuth platform, specifically binding refresh tokens to a client-generated asymmetric keypair to neutralize token theft and replay attacks from Infostealer malware and AiTM threats. Access tokens remain standard bearer tokens to avoid the per-request asymmetric cryptographic verification overhead on high-QPS APIs like Gmail and Drive, delivering a pragmatic tradeoff between security and performance. The implementation follows RFC 9700 best practices for sender-constrained refresh tokens and is recommended for Backend-for-Frontend (BFF) and Token-Mediating Backend architectures. DPoP operates at the HTTP header level, making it resilient in multi-hop environments such as Model Context Protocol (MCP) agent chains, though multi-agent delegation requires Google Cloud Secure Token Service (STS) to preserve key isolation. Complementary protections against cookie theft are offered by Device Bound Session Credentials (DBSC), which cryptographically binds browser session cookies to device hardware for a defense-in-depth strategy.
Intercom announced platform updates to make it easier for developers to build integrations and automate workflows, reflecting its commitment to supporting unexpected business use cases. The Acquire API now provides full API and webhooks support for logged-out users (Contacts), including creating, converting, and merging Contacts and Users. The Conversations API has been expanded to support initiating, replying, opening, closing, assigning conversations, and sending attachments. Intercom now maintains official client libraries for Ruby, Node.js, PHP, Java, and Go, with community-contributed clients for Haskell, Python, and Perl, downloaded approximately 300,000 times. Additional improvements also include a Stripe integration for syncing user data and live events, a fully asynchronous Bulk API for large operations, a WordPress plugin, and OAuth support initially in the Salesforce integration, while third-party apps like AskNicely, Gini, and Talkdesk have built on the platform for NPS tracking, reports, and phone call management.
The post presents a tutorial for building a TypeScript Model Context Protocol (MCP) client that uses Cross App Access (XAA) to securely bridge enterprise apps across trust domains. The sample app is an employee onboarding dashboard that signs in through an identity provider, exchanges identity for an Identity Assertion JWT Authorization Grant (ID-JAG), trades it for an access token, and fetches data from a protected MCP server. The tutorial uses the MCP TypeScript SDK’s CrossAppAccessProvider to automate the four-step XAA flow, including token exchange and retry on 401 responses. Developers test against xaa.dev, a free playground that hosts the IdP, authorization server, and a todo MCP server. The post explains key concepts like ID-JAG claims, separate client credentials per trust domain, and how XAA enables AI agents and enterprise apps to act on behalf of users without OAuth consent screens.
Twilio’s Q3 2026 fraud update covers phishing trends, third-party safety, and new releases. Over 80% of phishing originating from SendGrid was due to account takeovers, with attacks centered on delivery service spoofing, invoice fraud, and targeted Japanese campaigns impersonating brands like Amazon and Mercari. Attackers used fabricated forwarded threads, typosquatted domains like tvvilio[.]org, familiar names, AI-generated email templates, and associated phone calls, sometimes spoofing Twilio’s help line. To secure third-party integrations, Twilio recommends scoping access strictly, practicing credential hygiene, and reviewing audit integrations regularly, and now recommends OAuth 2.0 Client Credentials over auth tokens or API keys for scoped short-lived tokens. New releases include IP ACL with Dry Run mode, which logs blocked requests without enforcement to prevent accidental lockouts before real enforcement.
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.
The tutorial shows how to add Google login to a Vite-based React single-page app without implementing OAuth directly, using Auth0’s React SDK and Google social connection. It covers installing @auth0/auth0-react, creating an Auth0 Single Page Web Application, checking RS256 and OIDC Conformant settings, registering callback, logout, and web-origin URLs, and supplying the domain and client ID through Vite environment variables. The React code wraps the app in Auth0Provider, uses useAuth0 for loading and authentication state, and calls loginWithRedirect with connection: 'google-oauth2' to bypass provider selection. For production, it explains replacing Auth0’s shared development keys with Google Cloud credentials whose origin and redirect URI target the Auth0 domain, then storing them in the Auth0 social connection. It also points to route protection with withAuthenticationRequired, API access tokens from getAccessTokenSilently, and exact redirect-URI matching as important follow-on considerations.
Auth0 access tokens can lack a permissions claim despite apparently configured RBAC, and the post identifies five silent causes. The authorization request may omit the API audience, the API’s “Add Permissions in the Access Token” setting may be disabled, or a permission-bearing role may not be assigned to the user, including at the relevant organization level. Developers may also be decoding an ID token rather than the API access token, whose aud identifies the API. Client Credentials tokens represent applications rather than users and typically carry granted scopes instead of a permissions array. For custom Post-Login claims, the post advises using a namespaced claim rather than colliding with Auth0’s reserved permissions claim.
MongoDB has launched the Atlas Managed MCP Server, a fully hosted service that lets AI coding tools connect to Atlas data without manual infrastructure setup. The server uses OAuth 2.1 to replace shared service accounts with individual user delegation, so agents act with the developer’s own permissions and every action is auditable. Developers can connect via one-click OAuth consent in tools like Claude Code, Codex, Cursor, Grok Build, and Devin AI, with no connection strings or credentials to manage. Admins can enforce read-only mode, configure token lifetimes, and revoke access from the Atlas UI or Admin API. The announcement also includes Atlas App Connections, native connectors for frontier AI tools, and an integration with Vercel v0, aiming to close the gap between prototype and production.
xaa.dev is a free, beta playground for exploring Cross App Access (XAA) end to end without local setup, infrastructure provisioning, or signup. It addresses the difficulty of testing XAA, which otherwise requires configuring an Identity Provider, resource authorization server, resource API, and requesting application before a token exchange can be observed. The site pre-configures these roles and guides users through authentication, token exchange, access token request, and resource access while exposing requests, responses, and cryptographic claims. Developers can also connect their own apps, including MCP clients, and test both OIDC and SAML identity assertions; it is currently in beta and requires no account.
The tutorial shows how to build a native iOS sign-in flow using Okta DirectAuth and push notification MFA. It starts with an Okta Integrator Free Plan org, configures an OIDC Native Application and enables Okta Verify push notifications, while noting additional authorization policies may be required for a custom authorization server. In Xcode, the app uses Swift, SwiftUI, Swift Package Manager, and the Okta mobile Swift packages OktaDirectAuth and AuthFoundation to handle credentials, tokens, and MFA challenges without browser redirects. An AuthService coordinates authentication state, user and token information, sign-out, access-token refresh, and session restoration from stored credentials. The completed flow is described as phishing-resistant and able to maintain an active session directly within a SwiftUI app.
The tutorial builds a React Progressive Web App (PWA) called Lister, combining offline support with authentication through Okta and Google Social Login. It creates an Okta OIDC single-page application, configures Authorization Code and Refresh Token grants, sets localhost redirect URIs, and wires Okta React and AuthJS into React Router routes. The implementation uses environment variables for the Okta domain and client ID, OAuth 2.0 and OpenID Connect scopes including openid, profile, email, and offline_access, and a Vite PWA plugin to provide a manifest, service worker, and installable behavior. Authenticated users receive a todo-list interface with CRUD operations, while the article notes that production deployments would need more advanced service-worker configuration and a proper database.
Notion’s hosted Model Context Protocol (MCP) server describes its move from a downloadable MCP server to an all-in-one hosted service that lets AI clients such as Cursor and Claude Desktop interact with workspaces. The initial proof of concept generated MCP tools from Notion’s OpenAPI schema, mapping endpoints one-to-one to API calls, but setup required API keys or Docker and the approach consumed substantial context when handling hierarchical block JSON. The hosted version uses a code-generation pipeline that converts OpenAPI schemas to Zod, combines rewritten AI-oriented tools with wrappers for existing v1 APIs, and exposes them through a central integration. Users connect through one-click OAuth; the server manages sessions and tokens, with streamable HTTP and SSE supported for client compatibility. A design change is Notion-flavoured Markdown, which represents blocks including callouts, columns, pages, and databases more efficiently for agent conversations, while semantic search can span Notion and over ten third-party apps.
Sohail Pathan describes his path from Android development to a Senior Developer Advocate role at Okta, tracing how curiosity about technology grew into community and developer relations work. After studying Computer Science and adopting Kotlin for Android app projects, he moved from an EdTech startup’s Android team into its first Developer Community Manager role, organizing meetups, answering forum questions, and supporting learners. At a deeptech startup, he led Developer Relations for a cloud-based Android Studio tool, using meetups, hackathons, and feedback to seek product-market fit before technical roadblocks and limited demand forced closure after four months. At ApyHub, he created Go and Node.js tutorials, sample apps, API documentation, and community programs while gaining hands-on experience with REST architecture, microservices, API gateways, containers, load balancing, DevOps, OAuth, and identity management. He says that exposure led him to Okta, where he plans to share API and identity knowledge with its community.
Fly.io describes a security problem in its Rails-based platform: as the application accumulated secrets, Rails became the part of the attack surface least trusted, yet still handled many operations involving bearer tokens. It compares model encryption, Vault or KMS, and narrowly scoped secret-handling services, noting that each leaves gaps or creates operational overhead when secrets must be read for arbitrary third-party APIs. The proposed Tokenizer is a stateless HTTP proxy holding a Curve25519 private key; encrypted secrets travel in Proxy-Tokenizer headers, and the proxy injects plaintext or computes HMACs while host allowlists constrain misuse. A companion SSOkenizer performs OAuth2 flows outside Rails, tokenizes resulting bearer tokens, and returns credentials usable only through Tokenizer. The tools are open source, and the design provides a path for third-party integrations and SSO without adding raw secrets to Rails.
The best engineering reads, once a week.