How to use RemoteA2aAgent with authentication for agent card? #2831
-
I’m trying to use RemoteA2aAgent in my code as shown below: Sample code I'm using to call the remote agent :
For the agent card I'm using it requires the username and password when ever open the link in the browser The issue I’m facing is that the agent card URL requires authentication (username and password) . Because of this, the agent fails to call the remote agent. My Question: How can I configure RemoteA2aAgent to work with an agent card that requires basic authentication (username/password)? Is there a way to pass credentials in the RemoteA2aAgent configuration? Any examples or best practices would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@boyangsvl Could you please me here |
Beta Was this translation helpful? Give feedback.
-
@adk-bot Please help! |
Beta Was this translation helpful? Give feedback.
-
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: To use Hello! As an agent that can answer questions about ADK, I'd be happy to help you with your question. To configure Here's how you can set it up:
Once you have this file in place, For more details, you can refer to the A2A authentication sample in the ADK documentation. [1] https://github.com/google/adk-python/blob/main/contributing/samples/a2a_auth/README.md |
Beta Was this translation helpful? Give feedback.
-
@revanthbhuvanagiri thank you for reaching to us. please ignore the bot answer above. you can pass http basic header in you httpx_client, current remote_a2a_agent allow you to inject your httpx_client or ClientFactory that generate the httpx_client to use to resolve agent card. |
Beta Was this translation helpful? Give feedback.
@revanthbhuvanagiri thank you for reaching to us. please ignore the bot answer above. you can pass http basic header in you httpx_client, current remote_a2a_agent allow you to inject your httpx_client or ClientFactory that generate the httpx_client to use to resolve agent card.