cardo-python-utils 0.5.dev26__py3-none-any.whl → 0.5.dev28__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cardo-python-utils
3
- Version: 0.5.dev26
3
+ Version: 0.5.dev28
4
4
  Summary: Python library enhanced with a wide range of functions for different scenarios.
5
5
  Author-email: CardoAI <hello@cardoai.com>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- cardo_python_utils-0.5.dev26.dist-info/licenses/LICENSE,sha256=N-YtxDy8n5A1Mo7JKKItNIlboiK_pMOZ48ojx76jo3g,1046
1
+ cardo_python_utils-0.5.dev28.dist-info/licenses/LICENSE,sha256=N-YtxDy8n5A1Mo7JKKItNIlboiK_pMOZ48ojx76jo3g,1046
2
2
  python_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  python_utils/choices.py,sha256=_sLNkSnQqhg55gGKNRsOQCJ75W6gnz8J8Q00528MEYk,2548
4
4
  python_utils/data_structures.py,sha256=ZqkZYPy20zyGYOVhwb9qst4vF_P7X2A9z5E36rMUC6I,16820
@@ -15,7 +15,7 @@ python_utils/keycloak/utils.py,sha256=7ku8jj1L-iVRParKbWG6rRaUws0DxgZ-ExeV39b1Em
15
15
  python_utils/keycloak/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  python_utils/keycloak/django/service.py,sha256=FIEC6nYXlZHGgBAWDhOtWmkHoD2xdVxGcZETqKc6L-k,7430
17
17
  python_utils/keycloak/django/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- python_utils/keycloak/django/admin/auth.py,sha256=4jTR1_gihIxXd6urikxqgZ2Ml-wkkAW5kZBheXRkITY,1915
18
+ python_utils/keycloak/django/admin/auth.py,sha256=GlYyokX_nbZiVHa_LlCCrdaKHa9oop7pX1IOspS4mPs,1920
19
19
  python_utils/keycloak/django/admin/user_group.py,sha256=SeXXHL3MRsCxWsdrxfEtXUYT6gqsoLgAaW5rKzyBqck,6063
20
20
  python_utils/keycloak/django/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  python_utils/keycloak/django/api/drf.py,sha256=i4vZoZXta8IOsGO5YerAEfVyc9jMyD95lVePuaB4eeg,2919
@@ -24,8 +24,8 @@ python_utils/keycloak/django/api/utils.py,sha256=yGUrB1LGatGVy0PFuFhz3t5INWr0xca
24
24
  python_utils/keycloak/django/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  python_utils/keycloak/django/models/user_group.py,sha256=WU_KClfj-pboDIKUDHZQfQuhAPIPXgP-LrEvg9XJjmA,504
26
26
  python_utils/keycloak/django/tests/__init__.py,sha256=Nkt0a7LEHyjLvuEBZ7113VjjAWJlyZlMy-H-JZ5tNcs,252
27
- python_utils/keycloak/django/tests/conftest.py,sha256=h0YaOjy2UCBsl4tu-99cFFN91-7s1sGnZBY8cP6hjNI,3176
28
- cardo_python_utils-0.5.dev26.dist-info/METADATA,sha256=u6WQD9w55foFerV5lrRaTWUqXa5Jbst3aSGuvwDwY9A,2915
29
- cardo_python_utils-0.5.dev26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
- cardo_python_utils-0.5.dev26.dist-info/top_level.txt,sha256=zAx6OfEsjJs8BEW3okSiG_j9gpkI69xWShzum6oBgKI,13
31
- cardo_python_utils-0.5.dev26.dist-info/RECORD,,
27
+ python_utils/keycloak/django/tests/conftest.py,sha256=PTA2QAqOMtmeVE87C1FOTC2d_4FSRw_i1vMgLoxKkwA,3176
28
+ cardo_python_utils-0.5.dev28.dist-info/METADATA,sha256=iMJi6QV8YXYojGJTomYKAz4F5vwUUPcreUMs_dYczsI,2915
29
+ cardo_python_utils-0.5.dev28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ cardo_python_utils-0.5.dev28.dist-info/top_level.txt,sha256=zAx6OfEsjJs8BEW3okSiG_j9gpkI69xWShzum6oBgKI,13
31
+ cardo_python_utils-0.5.dev28.dist-info/RECORD,,
@@ -17,7 +17,7 @@ class AdminAuthenticationBackend(OIDCAuthenticationBackend):
17
17
  client_roles = (
18
18
  claims.get("resource_access", {}).get(getattr(settings, "OIDC_RP_CLIENT_ID", ""), {}).get("roles", [])
19
19
  )
20
- is_superuser = "Admin" in client_roles
20
+ is_superuser = "AdminPanel" in client_roles
21
21
 
22
22
  return {
23
23
  "username": claims.get("preferred_username"),
@@ -80,7 +80,7 @@ def mock_verify_scopes_ninja():
80
80
  Patches AuthBearer._verify_scopes, so that no real scope checking is done during tests.
81
81
  This is done because scope checking uses route resolution, which the test client does not support.
82
82
  """
83
- with patch("python_utils.django.keycloak.api.ninja.AuthBearer._verify_scopes") as mock_verify:
83
+ with patch("python_utils.keycloak.django.api.ninja.AuthBearer._verify_scopes") as mock_verify:
84
84
  mock_verify.return_value = None
85
85
  yield mock_verify
86
86