Help us improve
Share bugs, ideas, or general feedback.
From a2a-multi-agent
Implements A2A authentication schemes—API keys, Bearer tokens, OAuth 2.0, OpenID Connect, mutual TLS—for securing agent-to-agent communication and Agent Card security declarations.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin a2a-multi-agentHow this skill is triggered — by the user, by Claude, or both
Slash command
/a2a-multi-agent:a2a-authenticationThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Creates and configures A2A Agent Cards—JSON discovery documents detailing agent identity, capabilities, skills, authentication schemes, and endpoints for agent-to-agent delegation.
A2A agent card JSON templates with schema validation and examples for different agent types. Use when creating agent cards, implementing A2A protocol discovery, setting up agent metadata, configuring authentication schemes, defining agent capabilities, or when user mentions agent card, agent discovery, A2A metadata, service endpoint configuration, or agent authentication setup.
Designs an A2A Agent Card (.well-known/agent.json) manifest describing agent capabilities, skills, authentication, and content types for multi-agent discovery and orchestration.
Share bugs, ideas, or general feedback.
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.