Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Turso 7 min read Deep dive mediumAdept

Giving Agents Their Own Turso Accounts with AgentID

AgentID is an OpenID Connect provider for AI agents: instead of a human completing a browser login, the agent approves an OIDC Authorization Code + PKCE request by signing a compact ES256 JWS (request ID plus inbox ID) with a P-256 key it holds, registered via AgentMail. Turso, as a relying party, receives a stable agent `sub` and verified AgentMail inbox email in the ID token, with the human owner's name and email served separately from the userinfo endpoint. This keeps agent, owner and application identities distinct. The inbox doubles as a live channel for account notifications. Live checks on credential revocation, inbox deletion, org suspension and transaction expiry gate every sign-in, and JWKS can be cached by kid thanks to overlapping key rotation.

Assumes: OpenID Connect basicsJWT/JWSOAuth Authorization Code with PKCE

Related posts

  • Agentic Platform: Open-Sourcing the Agentic Identity Broker

    Zalando Engineering hardMaster

    Zalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens. Running on Kubernetes alongside kagent and agentgateway, the broker records grants of admin-defined permission sets from users to agents, holds encrypted per-user provider sessions, and performs RFC 8693-style token exchange at the gateway so OAuth ceremonies stay out of agents and MCP servers. Effective access is the intersection of user and agent permissions, and per-tool-call authorization is layered on via OPA through agentgateway's ExtProc. Planned additions include central tool approvals, CIBA for high-risk actions, and SPIFFE to separate agent attestation from user identity and avoid per-hop STS latency.

  • Add Cross App Access to Your OIDC Resource Application

    Okta Developer mediumAdept

    Cross App Access (XAA) lets an OIDC-federated resource server accept API calls from agents by redeeming an Identity Assertion Authorization Grant (ID-JAG), a short-lived JWT issued by the customer's IdP, for a locally issued access token. The resource authorization server must bind the token's iss to a registered IdP connection before verifying the signature against that connection's JWKS. It then checks typ, aud and client_id, resolves the user on iss + sub (plus tenant for multi-tenant IdPs), and treats email only as a just-in-time provisioning hint. It should issue no refresh token, so the IdP keeps revocation control, and it should advertise only the id-jag grant profile in its metadata without listing trusted issuers. A walkthrough then configures requesting and resource app integrations and an AI Agent in Okta, and tests the setup with xaa.dev.

  • Agents aren’t humans (but they kinda are)

    Cloudflare easyNovice

    Remotely hosted AI agents act as intermediaries that hide the user from the site. A site can no longer recognize, serve or hold that user accountable, and it ends up absorbing costs such as friendly fraud, credential stuffing and commingled traffic. Cloudflare's "Intermediation Principle" says user–site relationships and security responsibilities must survive intermediation. That requires identity, reputation and accountability, which human-in-the-loop CAPTCHAs and scoped permissions don't provide. The proposed path combines Web Bot Auth request signing, MOLE for privacy-preserving rate limiting, a graduated identity spectrum (none, session, account, unique), verifiable claims and machine-readable site agent policies, coordinated through a new Trusted Agent Delegation coalition at the IETF, plus Cloudflare analytics that show which agents visit a site.

  • Build "Sign in with Your App" using Supabase Auth

    Supabase mediumAdept

    Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with [Your App]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO. It uses the authorization code flow with PKCE, issues JWT access tokens carrying a client_id claim alongside the usual user_id and role, and also provides ID tokens, a UserInfo endpoint, refresh tokens, a JWKS endpoint and discovery documents at /.well-known/oauth-authorization-server and /.well-known/openid-configuration. MCP clients can register themselves through dynamic client registration. Existing login methods, Custom Access Token Hooks and Row Level Security all apply to OAuth tokens, so RLS policies can limit each client to specific data by checking the client_id claim. Granular scopes are planned but not yet available.

  • Connections: managed credentials and per-caller identity for Managed Deep Agents

    LangChain mediumAdept

    Connections in Managed Deep Agents (v0.7.0+) store named credentials in the LangSmith workspace instead of `.env` or the build, and tools fetch them at run time by slug via `connections.get()`. Each connection has an owner (agent or caller) and a credential type (static secret or OAuth grant), chosen independently. Agent-owned secrets suit shared capabilities like web search and can be rotated without redeploying. User-owned OAuth connections resolve per caller, so actions such as filing a GitHub issue carry the requesting user's identity. When grants are missing, the platform pauses the run with a single interrupt, so the project needs no callback route, token store or refresh logic, and MCP servers with dynamic client registration need only a URL.

The quest for software engineering knowledge.

Look:
Layout: