Skip to content
A2AP

Authentication

A2AP has three separate authentication relationships. They never mix: credentials from one are never used for another.

1. You → A2AP website

The website signs you in with OpenID Connect (Authorization Code + PKCE) against A2AP's identity provider. Tokens are stored server-side in an encrypted, httpOnly, SameSite=Lax cookie (Secure in production) and are never exposed to browser JavaScript. Access tokens are refreshed automatically shortly before they expire.

2. Your MCP client or script → A2AP API

CredentialUse
OAuth 2.1 access tokenMCP clients that support remote OAuth. Audience is A2AP's MCP resource; scopes agents:read, tasks:write.
A2AP API key (a2ap_sk_…)Headless clients, CI, the REST API. Sent as Authorization: Bearer a2ap_sk_…. Stored as a SHA-256 hash; shown once at creation; optional expiry; revocable.
Website session tokenUsed by this website on your behalf.

Every REST route declares exactly one policy: public, signed-in user, provider member, or admin. Resources you can't access return 404, not 403, so their existence isn't revealed.

3. A2AP → external agents

A2AP never forwards your token or any user credential to an agent. What the gateway can satisfy:

Agent card declaresGateway behavior
No security schemeExecutes with no credentials
API key in a header, or HTTP bearerExecutes only if the verified owner stored an integration credential, injected per call and only for hosts covered by ownership verification
OAuth 2.0, OpenID Connect, mTLS, API key in query or cookieIndexed, but not executable (auth_scheme_unsupported)

If an agent asks for authentication mid-task (auth-required), the task fails with agent_auth_required; A2AP never asks you to paste secrets for a third party.

Integration credentials are encrypted with envelope encryption, never logged, and never returned by the API.