microsoft-agents-hosting-aiohttp 0.5.0.dev10__py3-none-any.whl → 0.5.0.dev17__py3-none-any.whl

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.
@@ -13,11 +13,12 @@ async def jwt_authorization_middleware(request: Request, handler):
13
13
  auth_config: AgentAuthConfiguration = request.app["agent_configuration"]
14
14
  token_validator = JwtTokenValidator(auth_config)
15
15
  auth_header = request.headers.get("Authorization")
16
+
16
17
  if auth_header:
17
18
  # Extract the token from the Authorization header
18
19
  token = auth_header.split(" ")[1]
19
20
  try:
20
- claims = token_validator.validate_token(token)
21
+ claims = await token_validator.validate_token(token)
21
22
  request["claims_identity"] = claims
22
23
  except ValueError as e:
23
24
  print(f"JWT validation error: {e}")
@@ -44,7 +45,7 @@ def jwt_authorization_decorator(func):
44
45
  # Extract the token from the Authorization header
45
46
  token = auth_header.split(" ")[1]
46
47
  try:
47
- claims = token_validator.validate_token(token)
48
+ claims = await token_validator.validate_token(token)
48
49
  request["claims_identity"] = claims
49
50
  except ValueError as e:
50
51
  print(f"JWT validation error: {e}")
@@ -1,16 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-aiohttp
3
- Version: 0.5.0.dev10
3
+ Version: 0.5.0.dev17
4
4
  Summary: Integration library for Microsoft Agents with aiohttp
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/microsoft/Agents
8
8
  Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
9
14
  Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
15
+ Requires-Python: >=3.10
11
16
  Description-Content-Type: text/markdown
12
17
  License-File: LICENSE
13
- Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev10
18
+ Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev17
14
19
  Requires-Dist: aiohttp>=3.11.11
15
20
  Dynamic: license-file
16
21
  Dynamic: requires-dist
@@ -109,7 +114,7 @@ async def on_error(context: TurnContext, error: Exception):
109
114
 
110
115
  ## Requirements
111
116
 
112
- - Python 3.9+
117
+ - Python 3.10+ (supports 3.10, 3.11, 3.12, 3.13, 3.14)
113
118
  - aiohttp 3.11.11+
114
119
  - Microsoft Agents hosting core library
115
120
 
@@ -3,14 +3,14 @@ microsoft_agents/hosting/aiohttp/_start_agent_process.py,sha256=f-BGLGlKgfGpxihu
3
3
  microsoft_agents/hosting/aiohttp/agent_http_adapter.py,sha256=U6GQVPPj-Vi2Kan8i2LDrRtU-M9FpfXUzFqzOqvVYoI,444
4
4
  microsoft_agents/hosting/aiohttp/channel_service_route_table.py,sha256=3JNmK63j0ELgqUAtqsOXFjajhRTMgf29cIGwLCDwnLE,6745
5
5
  microsoft_agents/hosting/aiohttp/cloud_adapter.py,sha256=3WWi4xxEFw8c9XTYp_MVUt3JlbzGJRwVEJ-aky-W_is,3842
6
- microsoft_agents/hosting/aiohttp/jwt_authorization_middleware.py,sha256=yepAZqMq3Cbh4hIExwBeGUDyXbfkakJbeXbSJofC9oY,2314
6
+ microsoft_agents/hosting/aiohttp/jwt_authorization_middleware.py,sha256=26r7lK-umiohc5H7mC-m0yeHr-Tq7DoALO1ea0pi714,2327
7
7
  microsoft_agents/hosting/aiohttp/app/__init__.py,sha256=TioskqZet16twXOsI3X2snyLzmuyeKNtN2dySD1Xw7s,253
8
8
  microsoft_agents/hosting/aiohttp/app/streaming/__init__.py,sha256=G_VGmQ0m6TkHZsHjRV5HitaCOt2EBEjENIoBYabJMqM,292
9
9
  microsoft_agents/hosting/aiohttp/app/streaming/citation.py,sha256=ZGaMUOWxxoMplwRrkFsjnK7Z12V6rT5odE7qZCu-mP8,498
10
10
  microsoft_agents/hosting/aiohttp/app/streaming/citation_util.py,sha256=c95c3Y3genmFc0vSXppPaD1-ShFohAV1UABZnyJS_BQ,2478
11
11
  microsoft_agents/hosting/aiohttp/app/streaming/streaming_response.py,sha256=VcAhol4PEMvjeWYSg87L1Zbl20_i3W_LSP16LEGeN98,13762
12
- microsoft_agents_hosting_aiohttp-0.5.0.dev10.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
13
- microsoft_agents_hosting_aiohttp-0.5.0.dev10.dist-info/METADATA,sha256=DRu5sHegMFylxJu8TOd_O3Y6Cg-k0X9ftGqkZY9uNaM,7691
14
- microsoft_agents_hosting_aiohttp-0.5.0.dev10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- microsoft_agents_hosting_aiohttp-0.5.0.dev10.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
16
- microsoft_agents_hosting_aiohttp-0.5.0.dev10.dist-info/RECORD,,
12
+ microsoft_agents_hosting_aiohttp-0.5.0.dev17.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
13
+ microsoft_agents_hosting_aiohttp-0.5.0.dev17.dist-info/METADATA,sha256=fZxDisPGva14fVtZWeU6nAnzh0mxrn03yLi4lSzXMuc,7988
14
+ microsoft_agents_hosting_aiohttp-0.5.0.dev17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ microsoft_agents_hosting_aiohttp-0.5.0.dev17.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
16
+ microsoft_agents_hosting_aiohttp-0.5.0.dev17.dist-info/RECORD,,