Skip to content

Python: A2A AuthInterceptor Support - #1317

Merged
Giles Odigwe (giles17) merged 3 commits into
microsoft:mainfrom
giles17:a2a_auth_fix
Oct 9, 2025
Merged

Python: A2A AuthInterceptor Support#1317
Giles Odigwe (giles17) merged 3 commits into
microsoft:mainfrom
giles17:a2a_auth_fix

Conversation

@giles17

@giles17 Giles Odigwe (giles17) commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Addresses issue in #1168

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings October 8, 2025 18:53
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added the python Usage: [Issues, PRs], Target: Python label Oct 8, 2025
@github-actions github-actions Bot changed the title A2A AuthInterceptor Support Python: A2A AuthInterceptor Support Oct 8, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for authentication interceptors in the A2A (Agent-to-Agent) protocol implementation by introducing an optional auth_interceptor parameter to the A2AAgent class constructor.

  • Adds auth_interceptor parameter to A2AAgent.__init__() method signature
  • Passes the authentication interceptor to the A2A client factory when creating the client
  • Includes test coverage for the new parameter functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
python/packages/a2a/agent_framework_a2a/_agent.py Adds auth_interceptor parameter and implementation to A2AAgent class
python/packages/a2a/tests/test_a2a_agent.py Adds test case to verify auth_interceptor parameter acceptance

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread python/packages/a2a/agent_framework_a2a/_agent.py Outdated
@markwallace-microsoft

Mark Wallace (markwallace-microsoft) commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/a2a/agent_framework_a2a
   _agent.py116496%311–312, 349–350
TOTAL10342173983% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
1258 98 💤 0 ❌ 0 🔥 28.394s ⏱️

Giles Odigwe (giles17) and others added 2 commits October 8, 2025 13:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@giles17
Giles Odigwe (giles17) added this pull request to the merge queue Oct 9, 2025
Merged via the queue into microsoft:main with commit 2f53ce4 Oct 9, 2025
19 checks passed
Reuben Bond (ReubenBond) pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025
* a2a authinterceptor support

* Update python/packages/a2a/agent_framework_a2a/_agent.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* small fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
* a2a authinterceptor support

* Update python/packages/a2a/agent_framework_a2a/_agent.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* small fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants