Integrate agentic identity support into the SDK#137
Merged
rodrigobr-msft merged 37 commits intomainfrom Oct 2, 2025
Merged
Conversation
…tuple and add JWT decoding for blueprint ID
cleemullins
reviewed
Sep 25, 2025
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Outdated
Show resolved
Hide resolved
This was
linked to
issues
Sep 26, 2025
This was
unlinked from
issues
Sep 26, 2025
This was
linked to
issues
Sep 26, 2025
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/auth/auth_handler.py
Fixed
Show fixed
Hide fixed
…fixing other tests
cleemullins
requested changes
Oct 1, 2025
Collaborator
cleemullins
left a comment
There was a problem hiding this comment.
Quick initial pass for key stuff to get merged today.
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Outdated
Show resolved
Hide resolved
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Outdated
Show resolved
Hide resolved
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Outdated
Show resolved
Hide resolved
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Show resolved
Hide resolved
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Outdated
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Show resolved
Hide resolved
...oft-agents-hosting-core/microsoft_agents/hosting/core/rest_channel_service_client_factory.py
Outdated
Show resolved
Hide resolved
…into users/robrandao/agentic-msal
tracyboehrer
reviewed
Oct 2, 2025
libraries/microsoft-agents-activity/microsoft_agents/activity/channels.py
Outdated
Show resolved
Hide resolved
cleemullins
approved these changes
Oct 2, 2025
Collaborator
cleemullins
left a comment
There was a problem hiding this comment.
Review done in person, and comments addressed.
rodrigobr-msft
commented
Oct 2, 2025
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Outdated
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Outdated
Show resolved
Hide resolved
...hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py
Outdated
Show resolved
Hide resolved
...agents-hosting-core/microsoft_agents/hosting/core/app/auth/handlers/agentic_authorization.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/auth/authorization.py
Outdated
Show resolved
Hide resolved
...aries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/authorization.py
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/turn_context.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/channels.py
Outdated
Show resolved
Hide resolved
...aries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 introduces significant enhancements and new features for agentic identity and user token management, as well as improvements to connection configuration and selection logic. The changes add support for agentic roles and tokens, extend MSAL authentication flows, and improve robustness in connection management and activity processing.
Agentic identity and token support
agentic_identity,agentic_user) toRoleTypes, and extendedChannelAccountwithagentic_user_id,agentic_app_id, andtenant_idfields for agentic identity tracking. [1] [2]Activity(is_agentic_request,get_agentic_instance_id,get_agentic_user) to facilitate agentic context handling.MSAL authentication and agentic token flows
MsalAuthfor acquiring agentic application, instance, and user tokens, including JWT decoding for blueprint ID extraction and error handling for token acquisition failures.get_access_tokento log and raise exceptions when token acquisition fails, and fixed method naming (acquire_token_on_behalf_of).Authorization Handling Overhaul
Connection configuration and selection logic
MsalConnectionManagerto handle connection maps as lists, improved initialization, and implemented logic to select the appropriate connection based on audience and service URL, including regex matching and error reporting. [1] [2]CONNECTIONSMAPto a list of connections for easier processing.Robustness and cleanup
__init__.py. [1] [2]Breaking changes
Authorization.sign_out(context)calls where no auth handler Id is specified no longer sign out the user from all handlers but instead only from the default handler.