symphony_bdk_python 2.9.0__py3-none-any.whl → 2.9.1__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.
@@ -2,7 +2,7 @@
2
2
  """
3
3
  import datetime
4
4
 
5
- import jwt
5
+ from jwt import PyJWT, DecodeError, ExpiredSignatureError
6
6
  from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
7
7
  from cryptography.x509 import load_pem_x509_certificate
8
8
 
@@ -13,6 +13,7 @@ JWT_ENCRYPTION_ALGORITHM = "RS512"
13
13
 
14
14
  DEFAULT_EXPIRATION_SECONDS = (5 * 50) - 10
15
15
 
16
+ jwt = PyJWT({"verify_sub": False})
16
17
 
17
18
  def create_signed_jwt(private_key_config: BdkRsaKeyConfig, username: str, expiration: int = None) -> str:
18
19
  """Creates a JWT with the provided user name and expiration date, signed with the provided private key.
@@ -57,7 +58,7 @@ def validate_jwt(jwt_token: str, certificate: str, allowed_audience: str) -> dic
57
58
  try:
58
59
  return jwt.decode(jwt_token, _parse_public_key_from_x509_cert(certificate),
59
60
  algorithms=[JWT_ENCRYPTION_ALGORITHM], audience=allowed_audience)
60
- except (jwt.DecodeError, jwt.ExpiredSignatureError) as exc:
61
+ except (DecodeError, ExpiredSignatureError) as exc:
61
62
  raise AuthInitializationError("Unable to validate the jwt") from exc
62
63
 
63
64
 
@@ -1,21 +1,20 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: symphony_bdk_python
3
- Version: 2.9.0
3
+ Version: 2.9.1
4
4
  Summary: Symphony Bot Development Kit for Python
5
5
  License: Apache-2.0
6
6
  Author: Symphony Platform Solutions
7
7
  Author-email: symphony@finos.org
8
- Requires-Python: >=3.9,<4.0
8
+ Requires-Python: >=3.9, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.8.*
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.9
12
11
  Classifier: Programming Language :: Python :: 3.10
13
12
  Classifier: Programming Language :: Python :: 3.11
14
13
  Classifier: Programming Language :: Python :: 3.12
15
14
  Classifier: Programming Language :: Python :: 3.13
16
15
  Requires-Dist: PyJWT (>=2.10.0,<3.0.0)
17
16
  Requires-Dist: aiohttp (>=3.10.2,<4.0.0)
18
- Requires-Dist: cryptography (>=43.0.1,<44.0.0)
17
+ Requires-Dist: cryptography (>=44.0.1,<45.0.0)
19
18
  Requires-Dist: defusedxml (>=0.7.1,<0.8.0)
20
19
  Requires-Dist: docutils (==0.16)
21
20
  Requires-Dist: nulltype (>=2.3.1,<3.0.0)
@@ -27,7 +26,7 @@ Project-URL: Documentation, https://symphony-bdk-python.finos.org/
27
26
  Project-URL: Repository, https://github.com/finos/symphony-bdk-python
28
27
  Description-Content-Type: text/markdown
29
28
 
30
- [![FINOS - Incubating](https://cdn.jsdelivr.net/gh/finos/contrib-toolbox@master/images/badge-incubating.svg)](https://finosfoundation.atlassian.net/wiki/display/FINOS/Incubating)
29
+ [![FINOS - Active](https://cdn.jsdelivr.net/gh/finos/contrib-toolbox@master/images/badge-active.svg)](https://community.finos.org/docs/governance/Software-Projects/stages/active)
31
30
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
32
31
  [![Python](https://img.shields.io/badge/python-3.8%20%7C%203.9-blue)](https://www.python.org/downloads/release/python-3)
33
32
  [![Pypi](https://img.shields.io/pypi/v/symphony-bdk-python)](https://pypi.org/project/symphony-bdk-python/)
@@ -21,7 +21,7 @@ symphony/bdk/core/auth/authenticator_factory.py,sha256=-YxFLWqkw6k73DfCEg2atdVuL
21
21
  symphony/bdk/core/auth/bot_authenticator.py,sha256=XL5gdVNMhK2d0tPOImsNvffdyiOZf_3KTVMr0a0ZgIE,3961
22
22
  symphony/bdk/core/auth/exception.py,sha256=gZPaRKEz_IHX9cS2m6xa2779MxWwgp2mVxpQW_9NIZo,576
23
23
  symphony/bdk/core/auth/ext_app_authenticator.py,sha256=LT-ZArwPVgailF2io9eRrXfW5K41ynIIs04rqP8nA0A,7493
24
- symphony/bdk/core/auth/jwt_helper.py,sha256=UjnSt2KzUQk_2kEMt4JTi_5POQgO36BwQSzvL8BbZ_E,3727
24
+ symphony/bdk/core/auth/jwt_helper.py,sha256=Fsct1VPuCrqTIKrFximOkPgJfsfA52oPmpndGCaRbXE,3801
25
25
  symphony/bdk/core/auth/obo_authenticator.py,sha256=Fc-R2DSN7umY8dtjo56kPI4sULSdY3EWLKgP2qzFkX0,6183
26
26
  symphony/bdk/core/auth/tokens_repository.py,sha256=EUA9vs2yIhtJlBZxOgqwmxKshZD-yaoG1vnMjk8gdAk,1186
27
27
  symphony/bdk/core/client/__init__.py,sha256=LFwaYF5dwBZWHB1grmQCyYXwrMBrZ7MT1bzCBKtD1fg,171
@@ -531,8 +531,8 @@ symphony/bdk/gen/pod_model/v3_room_attributes.py,sha256=BF0j4_tDSHIOoFcHnjoRdIPL
531
531
  symphony/bdk/gen/pod_model/v3_room_detail.py,sha256=WwHIaF3hgkoNooc8WJwu-NUFhrpqIVx5iHBiMuAozK4,12809
532
532
  symphony/bdk/gen/pod_model/v3_room_search_results.py,sha256=xFNgxOkePANkFE8LeYk2PBrTzYWAfmezMhOVSBkQ2vM,13851
533
533
  symphony/bdk/gen/rest.py,sha256=APEYcmiEKg1g7-usLVm3NoHvhlbN_Lu4fIpW3jk8nhc,10209
534
- symphony_bdk_python-2.9.0.dist-info/LICENSE,sha256=onGBgTTRUvMlypBDH1BOc19i38qjwU8J8dQwwF7rXxk,11342
535
- symphony_bdk_python-2.9.0.dist-info/METADATA,sha256=fA-9Gj2Ed9E6dHrZtBB2UgAJa4OStaq8Vhd0DB3u7NQ,4932
536
- symphony_bdk_python-2.9.0.dist-info/NOTICE,sha256=SdZKoAgL2VymrQOOOG1fQDiKb-cnlzg21UvVbhPRe2c,174
537
- symphony_bdk_python-2.9.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
538
- symphony_bdk_python-2.9.0.dist-info/RECORD,,
534
+ symphony_bdk_python-2.9.1.dist-info/LICENSE,sha256=onGBgTTRUvMlypBDH1BOc19i38qjwU8J8dQwwF7rXxk,11342
535
+ symphony_bdk_python-2.9.1.dist-info/METADATA,sha256=VvR5dk4-64CQJMFIIlQf96K7zbb1wmi8eY4y6bWD8M0,4967
536
+ symphony_bdk_python-2.9.1.dist-info/NOTICE,sha256=SdZKoAgL2VymrQOOOG1fQDiKb-cnlzg21UvVbhPRe2c,174
537
+ symphony_bdk_python-2.9.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
538
+ symphony_bdk_python-2.9.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any