Skip to main content

Module security

Module security 

Source
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§

ApiKeySecurityScheme
Defines a security scheme using an API key.
AuthorizationCodeFlow
Defines configuration details for the OAuth 2.0 Authorization Code flow.
ClientCredentialsFlow
Defines configuration details for the OAuth 2.0 Client Credentials flow.
DeviceCodeFlow
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).
HttpAuthSecurityScheme
Defines a security scheme using HTTP authentication.
ImplicitFlow
Deprecated: Use Authorization Code + PKCE instead.
MutualTlsSecurityScheme
Defines a security scheme using mTLS authentication.
OAuth2SecurityScheme
Defines a security scheme using OAuth 2.0.
OpenIdConnectSecurityScheme
Defines a security scheme using OpenID Connect.
PasswordOAuthFlow
Deprecated: Use Authorization Code + PKCE or Device Code.
SecurityRequirement
Defines the security requirements for an agent.
StringList
A list of strings.

Enums§

ApiKeyLocation
Where an API key is placed in the request.
OAuthFlows
Defines the configuration for the supported OAuth 2.0 flows.
SecurityScheme
Defines a security scheme that can be used to secure an agent’s endpoints.

Type Aliases§

NamedSecuritySchemes
A map from security scheme name to its definition, as used in AgentCard.securitySchemes.