Changing usage of recipient.id to recipient.agentic_user_id for agentic auth flows #173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the codebase to consistently use the field
agentic_user_id
instead ofid
orupn
for identifying agentic users. The changes impact authentication, authorization, and activity handling logic, as well as related tests. This standardization improves clarity and reduces confusion around user identity fields in agentic scenarios.Core logic and API changes:
agentic_user_id
instead ofid
orupn
for agentic user identification, including parameter names, documentation, and log messages. (microsoft_agents/activity/activity.py
[1]microsoft_agents/authentication/msal/msal_auth.py
[2] [3]microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
[4]microsoft_agents/hosting/core/authorization/access_token_provider_base.py
[5]microsoft_agents/hosting/core/authorization/anonymous_token_provider.py
[6]Testing updates:
agentic_user_id
field inChannelAccount
and related objects, ensuring tests reflect the new field usage. (tests/activity/test_activity.py
[1] [2] [3] [4];tests/hosting_core/app/_oauth/_handlers/test_agentic_user_authorization.py
[5] [6] [7] [8] [9] [10] [11] [12]