A2A Authentication, Authorization & Multi-Tenancy
A2A uses standard web security patterns. The Agent Card declares security schemes; actual credentials are transmitted through the binding/HTTP security layer rather than embedded casually in model-visible messages.
type A2aPrincipal = {
subject: string;
tenantId: string;
scopes: string[];
};
Task IDs and context IDs are identifiers, not authorization proofs. The server must verify that the authenticated principal may access the requested task, artifact or push-notification configuration.
Practice
- Why shouldn't OAuth tokens be placed in ordinary agent Messages?
- What must happen before returning a Task by ID?
- How can multi-tenant task listing leak data?
- What should be audited when one agent delegates a sensitive task to another?