Files
Kathy Wu d42c634bd6 feat: support auth_scheme and auth_credential in RemoteA2aAgent
`RemoteA2aAgent` could not authenticate its calls; a caller had to bake a static
token into a custom `httpx_client`. Every other ADK component with a remote
endpoint takes an `auth_scheme`/`auth_credential` pair.

Accept that pair and an optional `credential_key`. `CredentialManager` resolves
the credential once per invocation, and the headers go on the card fetch and the
message send; with nothing to send, the agent emits `adk_request_credential`.
The interceptors and the derived key are per agent, so one agent's token cannot
reach another agent's host.

`build_auth_headers` also stops sending `Bearer None` for a tokenless OAuth2
credential. The interactive round trip needs an `LlmAgent` parent; the
`AgentRegistry` path resolves server-side.

Co-authored-by: Kathy Wu <wukathy@google.com>
PiperOrigin-RevId: 968025847
2026-08-20 13:38:19 -07:00
..
2026-01-20 14:50:09 -08:00