Topic

OAuth 2.0

All digests tagged OAuth 2.0

Your Agent Just Authorized What?! — Jay Mok & Ben Coumes, Paypal thumbnail

· 16:07

Your Agent Just Authorized What?! — Jay Mok & Ben Coumes, Paypal

The talk outlines a framework for agent authorization in payments, arguing that security requirements depend entirely on the context: specifically, the stakes and whether the transacting parties are known to each other. The discussion moves from low-stakes scenarios (e.g., coding agents using tool permissions) to high-stakes autonomous transactions with unknown counterparties. Solutions include leveraging OAuth scopes for controlled authority in medium-stakes environments, or implementing advanced primitives like layered selective disclosure JWTs and the PayPal approval token to verify mandates autonomously.

Key takeaways

  1. The Three Authorization Questions 0:01

    Any agent authorization system must answer: 1) Did the human authorize this? (e.g., passkey); 2) Is it allowed right now in this scope? (e.g., time-bound token, amount, merchant); and 3) Can we prove it later? (Dispute resolution proof).

  2. Stakes vs. Counterparties Matrix 0:02

    The required security model changes based on context: Low stakes (coding agents) rely on system logs and reversibility; Medium stakes (shared vaults/OAuth scopes) use controlled mandates; High stakes (never-met counterparties) require verifiable proof.

  3. High Stakes Solution 0:10

    For autonomous payments between unknown parties, the industry should converge on a multi-layered selective disclosure JWT. This allows merchants and processors to verify their specific mandate without knowing each other's relationship.

Watch on YouTube Full article

5 Ways to Connect AI Agents to Tools: From APIs to MCP thumbnail

· 11:28

5 Ways to Connect AI Agents to Tools: From APIs to MCP

The video outlines a five-step progression of architectural patterns for securely connecting AI agents to external tools, moving from simple direct API connections to highly secure systems utilizing vaults and token exchanges. The evolution emphasizes improving user visibility, eliminating impersonation, and ensuring the use of short-lived credentials.

Key takeaways

  1. Pattern 5: Direct Connection (Basic) 1:42

    Agents connect directly to tools using existing methods like API keys or service IDs. This is simple but lacks user visibility, as the tool cannot determine who the end-user is.

  2. Pattern 4: OAuth Flows Added 3:25

    Integrating an Identity Provider via OAuth flows allows authentication of the user (e.g., GitHub, Jira). While improving security, this pattern introduces impersonation and risks long-lived access tokens.

  3. Pattern 3: Model Context Protocol (MCP) Layer 5:20

    Adding an MCP layer abstracts the connection process. The agent only needs to know how to interact with MCP, rather than needing specific knowledge of every tool's API structure.

  4. Pattern 2: Token Exchange and Delegation 6:50

    This pattern requires the agent to authenticate itself and operate on behalf of the user (delegation). A token exchange mechanism is used, which significantly improves security by providing full observability into both the user's actions and the agent's role.

  5. Pattern 1: Vault Integration (Top Pattern) 9:00

    The most secure pattern involves introducing a dedicated vault. Instead of passing long-term tokens, the vault stores credentials and issues only short-lived credentials to MCP for the user, minimizing replay attack risks.

Watch on YouTube Full article