/a2a-multi-agent:a2a-authenticationfrom a2a-multi-agent
Implements agent-to-agent authentication using API keys, Bearer tokens, OAuth 2.0, OpenID Connect, and mutual TLS. Configures Agent Card security schemes for A2A protocol.
Ships in a2a-multi-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://a2a-protocol.org/latest/specification/ for the authentication and security sectionsite:github.com a2aproject A2A authentication security schemes for auth scheme detailssite:github.com a2aproject a2a-samples authentication for auth implementation examplesIn multi-agent systems, agents must verify each other's identity and authorize access:
A2A supports the same security scheme types as OpenAPI 3.0:
apiKey)A static key sent in a header or query parameter.
http with scheme: bearer)A bearer token (JWT or opaque) in the Authorization header.
Authorization: Bearer <token>oauth2)Standard OAuth 2.0 flows for token acquisition.
Common flow for agent-to-agent: Client Credentials (machine-to-machine, no user involvement).
openIdConnect)OIDC discovery-based authentication.
openIdConnectUrl)mutualTLS)Client certificate-based authentication.
Authentication requirements are declared in the Agent Card using two top-level fields, securitySchemes (a map of named scheme definitions) and security (an array of required scheme references):
{
"securitySchemes": {
"oauth2_auth": {
"type": "oauth2",
"flows": {
"clientCredentials": {
"tokenUrl": "https://auth.example.com/token",
"scopes": {
"agent:read": "Read access",
"agent:write": "Write access"
}
}
}
}
},
"security": [
{ "oauth2_auth": [] }
]
}
The agent/authenticatedExtendedCard method allows agents to return a richer Agent Card to authenticated clients — exposing additional skills or capabilities that aren't visible to unauthenticated discovery.
If a task requires authentication mid-flow:
auth-required stateworkingauth-required task state for dynamic auth challengesFetch the specification for exact authentication schema structures, security scheme field names, and the extended card method before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
a2a-protocol, agent-authentication, security-schemes, oauth, jwt, mtls
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin a2a-multi-agent16 skills in this plugin
/a2a-agent-cardCreate and configure A2A Agent Cards — the discovery document describing an agent's capabilities, skills, authentication, and endpoint. Use when defining what your agent exposes to other agents./a2a-clientBuild an A2A client — the agent-side code that discovers other agents, sends tasks, handles responses, and manages multi-turn conversations. Use when implementing the client side that delegates work to A2A agents./a2a-dev-patternsApply A2A cross-cutting development patterns — orchestration topologies, idempotency, observability, agent registries, versioning, and production deployment. Use when architecting multi-agent systems or solving cross-cutting concerns.Other plugins' skills for the same job