Skip to content

Conversation

@dmandar
Copy link
Contributor

@dmandar dmandar commented Jun 10, 2025

This PR introduces a middleware framework to the a2a-python client SDK, which allows for various authentication mechanisms. The new AuthInterceptor automatically injects authentication credentials into outgoing requests based on the agent's defined security schemes. This change simplifies the process of handling different authentication methods like Bearer tokens and API keys for developers using the SDK.

@dmandar dmandar requested a review from a team as a code owner June 10, 2025 02:25
@dmandar dmandar changed the title Add a middleware to the client SDK Add middleware to the client SDK Jun 10, 2025
@dmandar dmandar requested a review from mikeas1 June 10, 2025 03:06
@holtskinner holtskinner changed the title Add middleware to the client SDK feat: Add middleware to the client SDK Jun 10, 2025
@holtskinner
Copy link
Member

@dmandar Can you provide more info in the PR message as to what the purpose of this is?

@dmandar dmandar requested a review from holtskinner June 11, 2025 15:44
@holtskinner
Copy link
Member

Copy link
Contributor

@mikeas1 mikeas1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Holt's comments are addressed.

@holtskinner holtskinner merged commit efaabd3 into main Jun 20, 2025
6 checks passed
@holtskinner holtskinner deleted the md-auth branch June 20, 2025 15:03
holtskinner pushed a commit that referenced this pull request Jun 24, 2025
This PR introduces a middleware framework to the a2a-python client SDK,
which allows for various authentication mechanisms. The new
AuthInterceptor automatically injects authentication credentials into
outgoing requests based on the agent's defined security schemes. This
change simplifies the process of handling different authentication
methods like Bearer tokens and API keys for developers using the SDK.
holtskinner pushed a commit that referenced this pull request Jun 30, 2025
This PR introduces a middleware framework to the a2a-python client SDK,
which allows for various authentication mechanisms. The new
AuthInterceptor automatically injects authentication credentials into
outgoing requests based on the agent's defined security schemes. This
change simplifies the process of handling different authentication
methods like Bearer tokens and API keys for developers using the SDK.
holtskinner added a commit that referenced this pull request Jun 30, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.2.10](v0.2.8...v0.2.10)
(2025-06-30)


### ⚠ BREAKING CHANGES

* Update to A2A Spec Version
[0.2.5](https://github.com/a2aproject/A2A/releases/tag/v0.2.5)
([#197](#197))

### Features

* Add `append` and `last_chunk` to `add_artifact` method on
`TaskUpdater`
([#186](#186))
([8c6560f](8c6560f))
* add a2a routes to existing app
([#188](#188))
([32fecc7](32fecc7))
* Add middleware to the client SDK
([#171](#171))
([efaabd3](efaabd3))
* Add more task state management methods to TaskUpdater
([#208](#208))
([2b3bf6d](2b3bf6d))
* raise error for tasks in terminal states
([#215](#215))
([a0bf13b](a0bf13b))

### Bug Fixes

* `consume_all` doesn't catch `asyncio.TimeoutError` in python 3.10
([#216](#216))
([39307f1](39307f1))
* Append metadata and context id when processing TaskStatusUpdateE…
([#238](#238))
([e106020](e106020))
* Fix reference to `grpc.aio.ServicerContext`
([#237](#237))
([0c1987b](0c1987b))
* Fixes Short Circuit clause for context ID
([#236](#236))
([a5509e6](a5509e6))
* Resolve `APIKeySecurityScheme` parsing failed
([#226](#226))
([aa63b98](aa63b98))
* send notifications on message not streaming
([#219](#219))
([91539d6](91539d6)),
closes [#218](#218)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Holt Skinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants