Skip to main content

Module security

Module security 

Source
Expand description

Security scheme types for A2A agent authentication.

These types follow the security-scheme specification used by A2A v1.0, which is based on the OpenAPI 3.x security model. The root discriminated union is SecurityScheme, tagged on the "type" field.

NamedSecuritySchemes is a type alias, and SecurityRequirement is a struct used in crate::agent_card::AgentCard and crate::agent_card::AgentSkill.

Structs§

ApiKeySecurityScheme
API key security scheme: a token sent in a header, query parameter, or cookie.
AuthorizationCodeFlow
OAuth 2.0 authorization code flow.
ClientCredentialsFlow
OAuth 2.0 client credentials flow.
DeviceCodeFlow
OAuth 2.0 device authorization flow (RFC 8628).
HttpAuthSecurityScheme
HTTP authentication security scheme (Bearer, Basic, etc.).
ImplicitFlow
OAuth 2.0 implicit flow (deprecated; retained for compatibility).
MutualTlsSecurityScheme
Mutual TLS security scheme.
OAuth2SecurityScheme
OAuth 2.0 security scheme.
OAuthFlows
Available OAuth 2.0 flows for an OAuth2SecurityScheme.
OpenIdConnectSecurityScheme
OpenID Connect security scheme.
PasswordOAuthFlow
OAuth 2.0 resource owner password credentials flow (deprecated but in spec).
SecurityRequirement
A security requirement object mapping scheme names to their required scopes.
StringList
A list of strings used within a SecurityRequirement map value.

Enums§

ApiKeyLocation
Where an API key is placed in the request.
SecurityScheme
A security scheme supported by an agent, discriminated by the "type" field.

Type Aliases§

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