8000 feat: adding support for authorization at http layer (Python) by didier-durand · Pull Request #375 · google/A2A · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: adding support for authorization at http layer (Python) #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

didier-durand
Copy link
Contributor
@didier-durand didier-durand commented May 2, 2025

Description

I re-use the code that you supplied A2A/samples/python/common as-is for my use case.

The production env in which I work is thoroughly protected: our http gateway requires request signature.

For this purpose, I had to integrate an additional package httpx_auth (see https://pypi.org/project/httpx-auth/ and https://github.com/Colin-b/httpx_auth)

I also needed to change client.py to accept this auth signer: see commit diff for details. This changed code allows to go through our http gateway (tests are fine!)

Please, accept my PR so that I can keep using the reference code with no patch on my side.

Note: I may come back with another for the SSE part if needed when I am there in my implementation

Some similar update may have to be done for Javascript but I don't program with it.

Didier

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.

1 participant
0