Expand description
Security scheme types for A2A agent authentication.
The individual scheme types follow the OpenAPI 3.x security model, which
A2A borrows their field sets from. The root discriminated union
SecurityScheme does not: in v1.0 it is a protobuf oneof, so it is
externally tagged on the wire ({"apiKeySecurityScheme": {…}}) rather than
internally tagged on a "type" field as it was in v0.3. Both encodings are
accepted; only the v1.0 one is emitted.
NamedSecuritySchemes is a type alias, and SecurityRequirement is a
struct used in crate::agent_card::AgentCard and
crate::agent_card::AgentSkill.
Structs§
- ApiKey
Security Scheme - Defines a security scheme using an API key.
- Authorization
Code Flow - Defines configuration details for the OAuth 2.0 Authorization Code flow.
- Client
Credentials Flow - Defines configuration details for the OAuth 2.0 Client Credentials flow.
- Device
Code Flow - Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).
- Http
Auth Security Scheme - Defines a security scheme using HTTP authentication.
- Implicit
Flow - Deprecated: Use Authorization Code + PKCE instead.
- Mutual
TlsSecurity Scheme - Defines a security scheme using
mTLSauthentication. - OAuth2
Security Scheme - Defines a security scheme using OAuth 2.0.
- Open
IdConnect Security Scheme - Defines a security scheme using
OpenIDConnect. - PasswordO
Auth Flow - Deprecated: Use Authorization Code + PKCE or Device Code.
- Security
Requirement - Defines the security requirements for an agent.
- String
List - A list of strings.
Enums§
- ApiKey
Location - Where an API key is placed in the request.
- OAuth
Flows - Defines the configuration for the supported OAuth 2.0 flows.
- Security
Scheme - Defines a security scheme that can be used to secure an agent’s endpoints.
Type Aliases§
- Named
Security Schemes - A map from security scheme name to its definition, as used in
AgentCard.securitySchemes.