WhoBuilt

CIAM for AI: Authn/Authz for Agents

Jul 21, 2025· 20 min· 2.0K views·Watch on YouTube

Speaker

Michael Grinich, CEO of WorkOS, speaks at AI Engineer about identity and access management for AI agents.

Why agents need identity

Grinich describes customer identity and access management as OAuth login for agents. He warns that an agent with broad access could delete a production database while trying to clear files, and argues that agents need identities tied to people and scoped to their work.

The hard parts of agent access

Agents need headless sign-in, credentials that persist and refresh securely, and permissions that can change as tasks unfold. Grinich also highlights accountability and observability: organizations need to know who authorized actions and track agents that can act rapidly or spawn other agents.

Four patterns for authorization

Grinich outlines persona shadowing, where an agent gets a scoped identity linked to a person; delegation chains, which carry authorization between systems; and capability tokens for specific, time-bound actions. Human approval is another option, though repeated prompts can lead to consent fatigue, so he recommends combining patterns based on the application and its constraints.

Protocols and middleware

He reviews OAuth and OIDC, User-Managed Access, GNAP, OpenID Connect for Agents, and verifiable credentials as approaches with different tradeoffs. OAuth is widely integrated but uses static scopes and human-oriented consent, while GNAP supports dynamic scope negotiation but has limited adoption. Grinich says a middleware layer can treat agent code as untrusted while logging and enforcing access between applications and enterprise systems.

A shift toward agent-driven software

Grinich expects agent activity to grow from a small share of interactions with software toward 50%, and potentially 95%, though the pace will vary by product. He points to hotel bookings through Perplexity and imagines software that people use only through agents. He says this shift makes secure identity essential to preserving user trust.

Takeaways

  • Give agents distinct identities linked to the people who authorize their actions.
  • Use narrowly scoped, time-bound capabilities when an agent needs to perform a specific action.
  • Plan for credentials that can persist securely and refresh in headless agent workflows.
  • Log agent actions and connect them to authorization so teams can investigate what happened.
  • Treat agent code as untrusted and enforce access through a monitored middleware layer.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • ceo of
    CEO
    “Michael Grinich, CEO of WorkOS”
    YouTube
    Unverified1 source· Talk
  • feature
    WorkOS: Provides identity services to SaaS businesses and B2B products
    “We provide identity services to lots and lots of different SaaS businesses and B2B products”
    YouTube
    Unverified1 source· Talk
  • feature
    agent identity middleware: Creates a trust boundary between agent code and enterprise systems, with logging and enforcement
    “a trust boundary between their agentic code and enterprise systems”
    YouTube
    Unverified1 source· Talk
  • feature
    agent identity middleware: Treats agents as untrusted and provides a managed, dynamic layer for logging and enforcement
    “a managed, dynamic layer in between that can log and enforce things”
    YouTube
    Unverified1 source· Talk
  • uses
    “Cursor uses this at WorkOS today.”
    YouTube
    Unverified1 source· Talk
  • built
    “We also have something called FGA for authorization and granular access to permissions.”
    YouTube
    Unverified1 source· Talk
  • feature
    WorkOS: AuthKit provides identity services, including for MCP
    “We have an identity product called AuthKit. That's what I was mentioning for MCP.”
    YouTube
    Unverified1 source· Talk
  • feature
    Cloudflare: Has work on MCP authentication and networking-stack middleware
    “Cloudflare's work on MCP auth”
    YouTube
    Unverified1 source· Talk
  • metric
    agent identity middleware: 95% of activity may eventually be agents and 5% people
    “eventually 95% of traffic and activity will be agents interfacing with products, with 5% of it done by us mere mortals”
    YouTube
    Unverified1 source· Talk
  • launched
    Perplexity: Hotel booking through Perplexity
    “Perplexity just launched the ability to book hotels through Perplexity”
    YouTube
    Unverified1 source· Talk

Related talks