a2a.client.auth.interceptor module

class a2a.client.auth.interceptor.AuthInterceptor(credential_service: CredentialService)

Bases: ClientCallInterceptor

An interceptor that automatically adds authentication details to requests.

Based on the agent’s security schemes.

async after(args: AfterArgs) → None

Invoked after the method is executed.

async before(args: BeforeArgs) → None

Applies authentication headers to the request if credentials are available.