microsoft-agents-hosting-core 1.10.0.dev5__tar.gz → 1.10.0.dev7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents_hosting_core.egg-info → microsoft_agents_hosting_core-1.10.0.dev7}/PKG-INFO +20 -2
- microsoft_agents_hosting_core-1.10.0.dev7/VERSION.txt +1 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/__init__.py +16 -9
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/__init__.py +3 -2
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/app_options.py +7 -5
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/__init__.py +2 -1
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +47 -20
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +1 -1
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +33 -23
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +33 -24
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/app/oauth/auth_handler.py +118 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/authorization.py +65 -33
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/app/oauth/authorization_settings.py +68 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/__init__.py +7 -3
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/_entra_issuers.py +3 -4
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/_helpers.py +1 -1
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/_log_config.py +36 -28
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +20 -5
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +11 -5
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connection_manager.py +6 -0
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections/__init__.py +16 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/authorization → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections}/agent_auth_configuration.py +47 -1
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections/connection_manager.py +293 -0
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections/connection_settings_base.py +98 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/authorization → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections}/connections.py +3 -3
- microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization/connections/connections_map.py +76 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/jwt/_authorize_request.py +1 -1
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/jwt/jwt_connection_settings.py +8 -3
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/jwt/jwt_token_validator.py +23 -16
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/jwt/token_validation_configuration.py +44 -13
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +1 -2
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents_hosting_core.egg-info}/PKG-INFO +20 -2
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +7 -3
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/readme.md +18 -0
- microsoft_agents_hosting_core-1.10.0.dev5/VERSION.txt +0 -1
- microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -99
- microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/authorization/connection_manager.py +0 -224
- microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/authorization/connection_settings_base.py +0 -204
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/LICENSE +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/MANIFEST.in +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_http_adapter_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_utils/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_utils/_service_set.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/_utils/_turn_context_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/activity_handler.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/agent.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_selector.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/adaptive_card/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/adaptive_card/_type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/adaptive_card/adaptive_card.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/adaptive_card/factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/adaptive_card/models.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/app_error.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/attachment_downloader.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/input_file.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/m365_attachment_downloader.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/telemetry/turn_context → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/app/oauth/telemetry}/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/telemetry/adapter → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/app/proactive/telemetry}/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/telemetry/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/query.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/state/state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/storage → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/app}/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/jwt/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/connector → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/authorization}/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/card_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/channel_service_adapter.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/_base_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/agent_sign_in.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/user_token.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/authorization → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/connector}/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/header_propagation/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/header_propagation/agentic_header_provider.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/header_propagation/header_propagation_context.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/header_propagation/header_value_provider.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/http/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/message_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/middleware_set.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/py.typed +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/_connector.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/_middleware.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/_validator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/security/outbound_host_validator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/state/user_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/storage.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/app → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/storage}/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/transcript_file_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/transcript_info.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/transcript_logger.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/transcript_memory_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/storage/transcript/transcript_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/app/proactive/telemetry → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/telemetry/adapter}/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5/microsoft_agents/hosting/core/app/oauth/telemetry → microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents/hosting/core/telemetry/turn_context}/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents/hosting/core/turn_context.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/pyproject.toml +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/setup.cfg +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev5 → microsoft_agents_hosting_core-1.10.0.dev7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 1.10.0.
|
|
3
|
+
Version: 1.10.0.dev7
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: microsoft-agents-activity==1.10.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-activity==1.10.0.dev7
|
|
19
19
|
Requires-Dist: pyjwt>=2.10.1
|
|
20
20
|
Requires-Dist: isodate>=0.6.1
|
|
21
21
|
Requires-Dist: python-dotenv>=1.1.1
|
|
@@ -216,6 +216,24 @@ Additionally we provide a Copilot Studio Client, to interact with Agents created
|
|
|
216
216
|
| `microsoft-agents-copilotstudio-client` | [](https://pypi.org/project/microsoft-agents-copilotstudio-client/) | Direct to Engine client to interact with Agents created in CopilotStudio |
|
|
217
217
|
|
|
218
218
|
|
|
219
|
+
## Connection Configuration
|
|
220
|
+
|
|
221
|
+
`microsoft_agents.hosting.core.authorization.connections` contains `Connections`,
|
|
222
|
+
`ConnectionManager`, `ConnectionSettingsBase`, and the legacy `AgentAuthConfiguration`.
|
|
223
|
+
Existing top-level and legacy module imports remain supported.
|
|
224
|
+
|
|
225
|
+
Pass application settings as `ConnectionManager(provider_factory, config=configuration)`
|
|
226
|
+
to deliver each connection's settings to the provider as a `Configuration`. Read bound
|
|
227
|
+
provider settings through `provider.config`; provider-specific settings derive from
|
|
228
|
+
`ConnectionSettingsBase`. Connection maps accept ordered lists or named mappings with
|
|
229
|
+
`service_url`, `audience`, and `connection` fields, including environment-style aliases.
|
|
230
|
+
|
|
231
|
+
Existing `connections_configurations`, `connections_map`, and `**legacy_config`
|
|
232
|
+
constructor calls still pass `AgentAuthConfiguration` objects to the provider factory.
|
|
233
|
+
`get_default_connection_configuration()` remains available for those legacy calls;
|
|
234
|
+
configuration-based managers should use `get_default_connection().config`.
|
|
235
|
+
The environment loader is unchanged.
|
|
236
|
+
|
|
219
237
|
## Installation
|
|
220
238
|
|
|
221
239
|
```bash
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.10.0.dev7
|
|
@@ -43,6 +43,7 @@ from .app.streaming import (
|
|
|
43
43
|
from .app.oauth import (
|
|
44
44
|
Authorization,
|
|
45
45
|
AuthHandler,
|
|
46
|
+
AuthHandlerSettings,
|
|
46
47
|
AgenticUserAuthorization,
|
|
47
48
|
)
|
|
48
49
|
|
|
@@ -53,15 +54,18 @@ from .app.state.temp_state import TempState
|
|
|
53
54
|
from .app.state.turn_state import TurnState
|
|
54
55
|
|
|
55
56
|
# Authorization
|
|
56
|
-
from .authorization
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
from .authorization import (
|
|
58
|
+
AccessTokenProviderBase,
|
|
59
|
+
AuthenticationConstants,
|
|
60
|
+
AnonymousTokenProvider,
|
|
61
|
+
Connections,
|
|
62
|
+
ConnectionManager,
|
|
63
|
+
AgentAuthConfiguration,
|
|
64
|
+
ClaimsIdentity,
|
|
65
|
+
JwtTokenValidator,
|
|
66
|
+
AuthTypes,
|
|
67
|
+
ConnectionSettingsBase,
|
|
68
|
+
)
|
|
65
69
|
|
|
66
70
|
# Client API
|
|
67
71
|
from .client.agent_conversation_reference import AgentConversationReference
|
|
@@ -114,8 +118,10 @@ from .errors import error_resources, ErrorMessage, ErrorResources
|
|
|
114
118
|
|
|
115
119
|
# Define the package's public interface
|
|
116
120
|
__all__ = [
|
|
121
|
+
"ConnectionSettingsBase",
|
|
117
122
|
"ActivityHandler",
|
|
118
123
|
"Agent",
|
|
124
|
+
"AuthTypes",
|
|
119
125
|
"CardFactory",
|
|
120
126
|
"ChannelAdapter",
|
|
121
127
|
"ChannelApiHandlerProtocol",
|
|
@@ -151,6 +157,7 @@ __all__ = [
|
|
|
151
157
|
"TempState",
|
|
152
158
|
"Authorization",
|
|
153
159
|
"AuthHandler",
|
|
160
|
+
"AuthHandlerSettings",
|
|
154
161
|
"AccessTokenProviderBase",
|
|
155
162
|
"AuthenticationConstants",
|
|
156
163
|
"AnonymousTokenProvider",
|
|
@@ -18,6 +18,7 @@ from ._type_defs import RouteHandler, RouteSelector, StateT
|
|
|
18
18
|
from .oauth import (
|
|
19
19
|
Authorization,
|
|
20
20
|
AuthHandler,
|
|
21
|
+
AuthHandlerSettings,
|
|
21
22
|
AgenticUserAuthorization,
|
|
22
23
|
)
|
|
23
24
|
|
|
@@ -44,7 +45,6 @@ __all__ = [
|
|
|
44
45
|
"InputFile",
|
|
45
46
|
"InputFileDownloader",
|
|
46
47
|
"Query",
|
|
47
|
-
"Route",
|
|
48
48
|
"RouteRank",
|
|
49
49
|
"RouteHandler",
|
|
50
50
|
"TypingChannelStrategy",
|
|
@@ -58,9 +58,10 @@ __all__ = [
|
|
|
58
58
|
"TurnState",
|
|
59
59
|
"TempState",
|
|
60
60
|
"Authorization",
|
|
61
|
-
"
|
|
61
|
+
"AuthHandlerSettings",
|
|
62
62
|
"AgenticUserAuthorization",
|
|
63
63
|
# Proactive
|
|
64
|
+
"AuthHandler",
|
|
64
65
|
"Conversation",
|
|
65
66
|
"ConversationBuilder",
|
|
66
67
|
"ConversationReferenceBuilder",
|
|
@@ -8,8 +8,7 @@ from __future__ import annotations
|
|
|
8
8
|
from dataclasses import dataclass, field
|
|
9
9
|
from typing import Callable, Optional
|
|
10
10
|
|
|
11
|
-
from microsoft_agents.hosting.core.app.oauth import
|
|
12
|
-
from microsoft_agents.hosting.core.authorization import Connections
|
|
11
|
+
from microsoft_agents.hosting.core.app.oauth import AuthHandlerSettings
|
|
13
12
|
from microsoft_agents.hosting.core.storage import Storage
|
|
14
13
|
|
|
15
14
|
# from .auth import AuthOptions
|
|
@@ -81,10 +80,13 @@ class ApplicationOptions:
|
|
|
81
80
|
If not provided, the default `TurnState` will be used.
|
|
82
81
|
"""
|
|
83
82
|
|
|
84
|
-
authorization_handlers: Optional[dict[str,
|
|
83
|
+
authorization_handlers: Optional[dict[str, AuthHandlerSettings]] = None
|
|
85
84
|
"""
|
|
86
|
-
Optional
|
|
87
|
-
|
|
85
|
+
Optional mapping of OAuth handler IDs to AuthHandlerSettings.
|
|
86
|
+
A nonempty mapping overrides configured handlers when AgentApplication
|
|
87
|
+
creates its Authorization instance. Otherwise handlers may be bound from
|
|
88
|
+
application configuration. Prefer AuthHandlerSettings over the deprecated
|
|
89
|
+
AuthHandler constructor.
|
|
88
90
|
"""
|
|
89
91
|
|
|
90
92
|
proactive: Optional[ProactiveOptions] = None
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
from .authorization import Authorization
|
|
6
|
-
from .auth_handler import AuthHandler
|
|
6
|
+
from .auth_handler import AuthHandler, AuthHandlerSettings
|
|
7
7
|
from ._sign_in_state import _SignInState
|
|
8
8
|
from ._sign_in_response import _SignInResponse
|
|
9
9
|
from ._handlers import (
|
|
@@ -16,6 +16,7 @@ from ._handlers import (
|
|
|
16
16
|
__all__ = [
|
|
17
17
|
"Authorization",
|
|
18
18
|
"AuthHandler",
|
|
19
|
+
"AuthHandlerSettings",
|
|
19
20
|
"_AuthorizationHandler",
|
|
20
21
|
"_SignInState",
|
|
21
22
|
"_SignInResponse",
|
|
@@ -3,16 +3,18 @@ Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
3
3
|
Licensed under the MIT License.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from abc import ABC
|
|
7
|
-
from typing import Optional
|
|
8
6
|
import logging
|
|
7
|
+
import warnings
|
|
8
|
+
|
|
9
|
+
from abc import ABC
|
|
10
|
+
from typing import Mapping
|
|
9
11
|
|
|
10
12
|
from microsoft_agents.activity import TokenResponse
|
|
11
13
|
|
|
12
14
|
from ....turn_context import TurnContext
|
|
13
15
|
from ....storage import Storage
|
|
14
16
|
from ....authorization import Connections
|
|
15
|
-
from ..auth_handler import
|
|
17
|
+
from ..auth_handler import AuthHandlerSettings
|
|
16
18
|
from .._sign_in_response import _SignInResponse
|
|
17
19
|
|
|
18
20
|
logger = logging.getLogger(__name__)
|
|
@@ -23,47 +25,72 @@ class _AuthorizationHandler(ABC):
|
|
|
23
25
|
|
|
24
26
|
_storage: Storage
|
|
25
27
|
_connection_manager: Connections
|
|
26
|
-
_handler:
|
|
28
|
+
_handler: AuthHandlerSettings
|
|
27
29
|
|
|
28
30
|
def __init__(
|
|
29
31
|
self,
|
|
30
32
|
storage: Storage,
|
|
31
33
|
connection_manager: Connections,
|
|
32
|
-
|
|
34
|
+
settings: Mapping | AuthHandlerSettings | None = None,
|
|
33
35
|
*,
|
|
34
|
-
auth_handler_id:
|
|
35
|
-
|
|
36
|
+
auth_handler_id: str | None = None,
|
|
37
|
+
auth_handler: AuthHandlerSettings | None = None,
|
|
38
|
+
auth_handler_settings: dict | None = None,
|
|
36
39
|
**kwargs,
|
|
37
40
|
) -> None:
|
|
38
|
-
"""
|
|
39
|
-
|
|
41
|
+
"""Initialize an authorization strategy from handler settings.
|
|
42
|
+
|
|
43
|
+
A nonempty settings mapping is bound through AuthHandlerSettings;
|
|
44
|
+
an AuthHandlerSettings instance is reused. Settings take precedence
|
|
45
|
+
over the deprecated auth_handler and auth_handler_settings arguments.
|
|
46
|
+
The handler ID comes from auth_handler_id, or from the settings name.
|
|
40
47
|
|
|
41
48
|
:param storage: The storage system to use for state management.
|
|
42
49
|
:type storage: Storage
|
|
43
50
|
:param connection_manager: The connection manager for OAuth providers.
|
|
44
51
|
:type connection_manager: Connections
|
|
45
|
-
:param
|
|
46
|
-
|
|
47
|
-
:
|
|
52
|
+
:param settings: Preferred handler settings, accepted positionally or
|
|
53
|
+
by keyword.
|
|
54
|
+
:type settings: Mapping | AuthHandlerSettings | None
|
|
55
|
+
:param auth_handler_id: Optional override of the settings name.
|
|
56
|
+
:type auth_handler_id: str | None
|
|
57
|
+
:param auth_handler: Deprecated bound settings; use settings instead.
|
|
58
|
+
:type auth_handler: AuthHandlerSettings | None
|
|
59
|
+
:param auth_handler_settings: Deprecated mapping; use settings instead.
|
|
60
|
+
:type auth_handler_settings: dict | None
|
|
61
|
+
:param kwargs: Accepted for compatibility, not used to bind settings.
|
|
62
|
+
:raises ValueError: If storage, nonempty settings, or a handler ID is
|
|
63
|
+
missing.
|
|
48
64
|
"""
|
|
49
65
|
if not storage:
|
|
50
66
|
raise ValueError("Storage is required for Authorization")
|
|
51
|
-
if not auth_handler and not auth_handler_settings:
|
|
67
|
+
if not settings and not auth_handler and not auth_handler_settings:
|
|
52
68
|
raise ValueError(
|
|
53
|
-
"At least one of auth_handler or auth_handler_settings is required."
|
|
69
|
+
"At least one of settings, auth_handler, or auth_handler_settings is required."
|
|
70
|
+
)
|
|
71
|
+
if auth_handler or auth_handler_settings:
|
|
72
|
+
warnings.warn(
|
|
73
|
+
"auth_handler and auth_handler_settings are deprecated. Please use settings instead.",
|
|
74
|
+
DeprecationWarning,
|
|
75
|
+
stacklevel=2,
|
|
54
76
|
)
|
|
55
77
|
|
|
56
78
|
self._storage = storage
|
|
57
79
|
self._connection_manager = connection_manager
|
|
58
80
|
|
|
59
|
-
if
|
|
81
|
+
if settings:
|
|
82
|
+
if isinstance(settings, AuthHandlerSettings):
|
|
83
|
+
self._handler = settings
|
|
84
|
+
else:
|
|
85
|
+
self._handler = AuthHandlerSettings.from_mapping(settings)
|
|
86
|
+
elif auth_handler: # deprecated
|
|
60
87
|
self._handler = auth_handler
|
|
61
|
-
else:
|
|
88
|
+
else: # deprecated
|
|
62
89
|
if not auth_handler_settings:
|
|
63
90
|
raise ValueError(
|
|
64
91
|
"auth_handler_settings must be provided if auth_handler is None."
|
|
65
92
|
)
|
|
66
|
-
self._handler =
|
|
93
|
+
self._handler = AuthHandlerSettings.from_mapping(auth_handler_settings)
|
|
67
94
|
|
|
68
95
|
self._id = auth_handler_id or self._handler.name
|
|
69
96
|
if not self._id:
|
|
@@ -72,7 +99,7 @@ class _AuthorizationHandler(ABC):
|
|
|
72
99
|
)
|
|
73
100
|
|
|
74
101
|
async def _sign_in(
|
|
75
|
-
self, context: TurnContext, scopes:
|
|
102
|
+
self, context: TurnContext, scopes: list[str] | None = None
|
|
76
103
|
) -> _SignInResponse:
|
|
77
104
|
"""Initiate or continue the sign-in process for the user with the given auth handler.
|
|
78
105
|
|
|
@@ -88,8 +115,8 @@ class _AuthorizationHandler(ABC):
|
|
|
88
115
|
async def get_refreshed_token(
|
|
89
116
|
self,
|
|
90
117
|
context: TurnContext,
|
|
91
|
-
exchange_connection:
|
|
92
|
-
exchange_scopes:
|
|
118
|
+
exchange_connection: str | None = None,
|
|
119
|
+
exchange_scopes: list[str] | None = None,
|
|
93
120
|
) -> TokenResponse:
|
|
94
121
|
"""Attempts to get a refreshed token for the user with the given scopes
|
|
95
122
|
|
|
@@ -5,7 +5,7 @@ Licensed under the MIT License.
|
|
|
5
5
|
|
|
6
6
|
import logging
|
|
7
7
|
|
|
8
|
-
from typing import
|
|
8
|
+
from typing import Mapping
|
|
9
9
|
|
|
10
10
|
from microsoft_agents.activity import TokenResponse
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ from .._sign_in_response import _SignInResponse
|
|
|
15
15
|
from ._authorization_handler import _AuthorizationHandler
|
|
16
16
|
from ....storage import Storage
|
|
17
17
|
from ....authorization import Connections
|
|
18
|
-
from ..auth_handler import
|
|
18
|
+
from ..auth_handler import AuthHandlerSettings
|
|
19
19
|
from ..telemetry import spans
|
|
20
20
|
|
|
21
21
|
logger = logging.getLogger(__name__)
|
|
@@ -28,34 +28,44 @@ class AgenticUserAuthorization(_AuthorizationHandler):
|
|
|
28
28
|
self,
|
|
29
29
|
storage: Storage,
|
|
30
30
|
connection_manager: Connections,
|
|
31
|
-
|
|
31
|
+
settings: Mapping | AuthHandlerSettings | None = None,
|
|
32
32
|
*,
|
|
33
|
-
auth_handler_id:
|
|
34
|
-
|
|
33
|
+
auth_handler_id: str | None = None,
|
|
34
|
+
auth_handler: AuthHandlerSettings | None = None,
|
|
35
|
+
auth_handler_settings: dict | None = None,
|
|
35
36
|
**kwargs,
|
|
36
37
|
) -> None:
|
|
37
|
-
"""
|
|
38
|
-
|
|
38
|
+
"""Create an agentic authorization strategy.
|
|
39
|
+
|
|
40
|
+
Prefer settings containing an AuthHandlerSettings instance or a mapping.
|
|
41
|
+
The bound settings also supply the optional alternate blueprint
|
|
42
|
+
connection name. Legacy settings arguments remain accepted but emit a
|
|
43
|
+
DeprecationWarning.
|
|
39
44
|
|
|
40
45
|
:param storage: The storage system to use for state management.
|
|
41
46
|
:type storage: Storage
|
|
42
47
|
:param connection_manager: The connection manager for OAuth providers.
|
|
43
48
|
:type connection_manager: Connections
|
|
44
|
-
:param
|
|
45
|
-
:type
|
|
46
|
-
:
|
|
49
|
+
:param settings: Handler settings, accepted positionally or by keyword.
|
|
50
|
+
:type settings: Mapping | AuthHandlerSettings | None
|
|
51
|
+
:param auth_handler_id: Optional override of the settings name.
|
|
52
|
+
:param auth_handler: Deprecated bound settings; use settings instead.
|
|
53
|
+
:type auth_handler: AuthHandlerSettings | None
|
|
54
|
+
:param auth_handler_settings: Deprecated mapping; use settings instead.
|
|
55
|
+
:param kwargs: Compatibility arguments forwarded to the base handler.
|
|
56
|
+
:raises ValueError: If storage, nonempty settings, or a handler ID is
|
|
57
|
+
missing.
|
|
47
58
|
"""
|
|
48
59
|
super().__init__(
|
|
49
60
|
storage,
|
|
50
61
|
connection_manager,
|
|
51
|
-
|
|
62
|
+
settings,
|
|
63
|
+
auth_handler=auth_handler,
|
|
52
64
|
auth_handler_id=auth_handler_id,
|
|
53
65
|
auth_handler_settings=auth_handler_settings,
|
|
54
66
|
**kwargs,
|
|
55
67
|
)
|
|
56
|
-
self._alt_blueprint_name =
|
|
57
|
-
auth_handler._alt_blueprint_name if auth_handler else None
|
|
58
|
-
)
|
|
68
|
+
self._alt_blueprint_name = self._handler._alt_blueprint_name
|
|
59
69
|
|
|
60
70
|
async def get_agentic_instance_token(self, context: TurnContext) -> TokenResponse:
|
|
61
71
|
"""Gets the agentic instance token for the current agent instance.
|
|
@@ -163,17 +173,17 @@ class AgenticUserAuthorization(_AuthorizationHandler):
|
|
|
163
173
|
async def _sign_in(
|
|
164
174
|
self,
|
|
165
175
|
context: TurnContext,
|
|
166
|
-
exchange_connection:
|
|
167
|
-
exchange_scopes:
|
|
176
|
+
exchange_connection: str | None = None,
|
|
177
|
+
exchange_scopes: list[str] | None = None,
|
|
168
178
|
) -> _SignInResponse:
|
|
169
179
|
"""Retrieves the agentic user token if available.
|
|
170
180
|
|
|
171
181
|
:param context: The context object for the current turn.
|
|
172
182
|
:type context: TurnContext
|
|
173
|
-
:param
|
|
174
|
-
:type
|
|
175
|
-
:param
|
|
176
|
-
:type
|
|
183
|
+
:param exchange_connection: The name of the connection to use for sign-in.
|
|
184
|
+
:type exchange_connection: str | None
|
|
185
|
+
:param exchange_scopes: The scopes to request for the token.
|
|
186
|
+
:type exchange_scopes: Optional[list[str]]
|
|
177
187
|
:return: A _SignInResponse containing the token response and flow state tag.
|
|
178
188
|
:rtype: _SignInResponse
|
|
179
189
|
"""
|
|
@@ -189,8 +199,8 @@ class AgenticUserAuthorization(_AuthorizationHandler):
|
|
|
189
199
|
async def get_refreshed_token(
|
|
190
200
|
self,
|
|
191
201
|
context: TurnContext,
|
|
192
|
-
exchange_connection:
|
|
193
|
-
exchange_scopes:
|
|
202
|
+
exchange_connection: str | None = None,
|
|
203
|
+
exchange_scopes: list[str] | None = None,
|
|
194
204
|
) -> TokenResponse:
|
|
195
205
|
"""Attempts to get a refreshed token for the user with the given scopes
|
|
196
206
|
|
|
@@ -211,6 +221,6 @@ class AgenticUserAuthorization(_AuthorizationHandler):
|
|
|
211
221
|
return await self.get_agentic_user_token(context, exchange_scopes)
|
|
212
222
|
|
|
213
223
|
async def sign_out(
|
|
214
|
-
self, context: TurnContext, auth_handler_id:
|
|
224
|
+
self, context: TurnContext, auth_handler_id: str | None = None
|
|
215
225
|
) -> None:
|
|
216
226
|
"""Nothing to do for agentic sign out."""
|
|
@@ -6,7 +6,7 @@ Licensed under the MIT License.
|
|
|
6
6
|
import logging
|
|
7
7
|
import jwt
|
|
8
8
|
from datetime import datetime, timezone
|
|
9
|
-
from typing import
|
|
9
|
+
from typing import Mapping
|
|
10
10
|
|
|
11
11
|
from microsoft_agents.activity import TokenResponse
|
|
12
12
|
from microsoft_agents.hosting.core.errors import ErrorResources
|
|
@@ -15,7 +15,7 @@ from ...._oauth._flow_state import _FlowStateTag
|
|
|
15
15
|
from ....turn_context import TurnContext
|
|
16
16
|
from ....storage import Storage
|
|
17
17
|
from ....authorization import Connections
|
|
18
|
-
from ..auth_handler import
|
|
18
|
+
from ..auth_handler import AuthHandlerSettings
|
|
19
19
|
from ._authorization_handler import _AuthorizationHandler
|
|
20
20
|
from .._sign_in_response import _SignInResponse
|
|
21
21
|
|
|
@@ -32,30 +32,39 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
32
32
|
self,
|
|
33
33
|
storage: Storage,
|
|
34
34
|
connection_manager: Connections,
|
|
35
|
-
|
|
35
|
+
settings: Mapping | AuthHandlerSettings | None = None,
|
|
36
36
|
*,
|
|
37
|
-
auth_handler_id:
|
|
38
|
-
|
|
37
|
+
auth_handler_id: str | None = None,
|
|
38
|
+
auth_handler: AuthHandlerSettings | None = None,
|
|
39
|
+
auth_handler_settings: dict | None = None,
|
|
39
40
|
**kwargs,
|
|
40
41
|
) -> None:
|
|
41
|
-
"""
|
|
42
|
-
|
|
42
|
+
"""Create a connector authorization strategy.
|
|
43
|
+
|
|
44
|
+
Prefer settings containing an AuthHandlerSettings instance or a mapping.
|
|
45
|
+
Legacy settings arguments remain accepted but emit a DeprecationWarning.
|
|
43
46
|
|
|
44
47
|
:param storage: The storage system to use for state management.
|
|
45
48
|
:type storage: Storage
|
|
46
49
|
:param connection_manager: The connection manager for OAuth providers.
|
|
47
50
|
:type connection_manager: Connections
|
|
48
|
-
:param
|
|
49
|
-
:type
|
|
50
|
-
:param auth_handler_id: Optional
|
|
51
|
-
:type auth_handler_id: str
|
|
52
|
-
:param
|
|
53
|
-
:type
|
|
51
|
+
:param settings: Handler settings, accepted positionally or by keyword.
|
|
52
|
+
:type settings: Mapping | AuthHandlerSettings | None
|
|
53
|
+
:param auth_handler_id: Optional override of the settings name.
|
|
54
|
+
:type auth_handler_id: str | None
|
|
55
|
+
:param auth_handler: Deprecated bound settings; use settings instead.
|
|
56
|
+
:type auth_handler: AuthHandlerSettings | None
|
|
57
|
+
:param auth_handler_settings: Deprecated mapping; use settings instead.
|
|
58
|
+
:type auth_handler_settings: dict | None
|
|
59
|
+
:param kwargs: Compatibility arguments forwarded to the base handler.
|
|
60
|
+
:raises ValueError: If storage, nonempty settings, or a handler ID is
|
|
61
|
+
missing.
|
|
54
62
|
"""
|
|
55
63
|
super().__init__(
|
|
56
64
|
storage,
|
|
57
65
|
connection_manager,
|
|
58
|
-
|
|
66
|
+
settings,
|
|
67
|
+
auth_handler=auth_handler,
|
|
59
68
|
auth_handler_id=auth_handler_id,
|
|
60
69
|
auth_handler_settings=auth_handler_settings,
|
|
61
70
|
**kwargs,
|
|
@@ -64,8 +73,8 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
64
73
|
async def _sign_in(
|
|
65
74
|
self,
|
|
66
75
|
context: TurnContext,
|
|
67
|
-
exchange_connection:
|
|
68
|
-
exchange_scopes:
|
|
76
|
+
exchange_connection: str | None = None,
|
|
77
|
+
exchange_scopes: list[str] | None = None,
|
|
69
78
|
) -> _SignInResponse:
|
|
70
79
|
"""
|
|
71
80
|
For connector requests, there is no separate sign-in flow.
|
|
@@ -74,9 +83,9 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
74
83
|
:param context: The turn context for the current turn of conversation.
|
|
75
84
|
:type context: TurnContext
|
|
76
85
|
:param exchange_connection: Optional connection name for token exchange.
|
|
77
|
-
:type exchange_connection:
|
|
86
|
+
:type exchange_connection: str | None
|
|
78
87
|
:param exchange_scopes: Optional list of scopes (unused for connector auth).
|
|
79
|
-
:type exchange_scopes:
|
|
88
|
+
:type exchange_scopes: list[str] | None
|
|
80
89
|
:return: A SignInResponse with the extracted token.
|
|
81
90
|
:rtype: _SignInResponse
|
|
82
91
|
"""
|
|
@@ -89,8 +98,8 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
89
98
|
async def get_refreshed_token(
|
|
90
99
|
self,
|
|
91
100
|
context: TurnContext,
|
|
92
|
-
exchange_connection:
|
|
93
|
-
exchange_scopes:
|
|
101
|
+
exchange_connection: str | None = None,
|
|
102
|
+
exchange_scopes: list[str] | None = None,
|
|
94
103
|
) -> TokenResponse:
|
|
95
104
|
"""
|
|
96
105
|
Gets the connector user token and optionally exchanges it via OBO.
|
|
@@ -148,8 +157,8 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
148
157
|
self,
|
|
149
158
|
context: TurnContext,
|
|
150
159
|
input_token_response: TokenResponse,
|
|
151
|
-
exchange_connection:
|
|
152
|
-
exchange_scopes:
|
|
160
|
+
exchange_connection: str | None = None,
|
|
161
|
+
exchange_scopes: list[str] | None = None,
|
|
153
162
|
) -> TokenResponse:
|
|
154
163
|
"""
|
|
155
164
|
Exchanges a token for another token with different scopes via OBO flow.
|
|
@@ -159,9 +168,9 @@ class ConnectorUserAuthorization(_AuthorizationHandler):
|
|
|
159
168
|
:param input_token_response: The input token to exchange.
|
|
160
169
|
:type input_token_response: TokenResponse
|
|
161
170
|
:param exchange_connection: Optional connection name for exchange.
|
|
162
|
-
:type exchange_connection:
|
|
171
|
+
:type exchange_connection: str | None
|
|
163
172
|
:param exchange_scopes: Optional scopes for the exchanged token.
|
|
164
|
-
:type exchange_scopes:
|
|
173
|
+
:type exchange_scopes: list[str] | None
|
|
165
174
|
:return: The token response after exchange, or the original if exchange not configured.
|
|
166
175
|
:rtype: TokenResponse
|
|
167
176
|
"""
|