maquinaweb-shared-auth 0.2.37__tar.gz → 0.2.38__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.
Potentially problematic release.
This version of maquinaweb-shared-auth might be problematic. Click here for more details.
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/maquinaweb_shared_auth.egg-info/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/pyproject.toml +1 -1
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/utils.py +8 -4
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/README.md +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/maquinaweb_shared_auth.egg-info/SOURCES.txt +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/maquinaweb_shared_auth.egg-info/dependency_links.txt +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/maquinaweb_shared_auth.egg-info/requires.txt +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/maquinaweb_shared_auth.egg-info/top_level.txt +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/setup.cfg +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/setup.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/__init__.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/abstract_models.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/app.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/authentication.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/conf.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/decorators.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/exceptions.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/fields.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/managers.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/middleware.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/mixins.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/models.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/permissions.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/router.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/serializers.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/storage_backend.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/urls.py +0 -0
- {maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/views.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maquinaweb-shared-auth"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.38"
|
|
8
8
|
description = "Models read-only para autenticação compartilhada entre projetos Django."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13"
|
|
@@ -118,12 +118,16 @@ def get_member_model():
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
def get_organization_serializer():
|
|
121
|
-
|
|
121
|
+
import_path_serializer = get_setting("SHARED_AUTH_ORGANIZATION_SERIALIZER", None)
|
|
122
122
|
|
|
123
|
-
if not
|
|
123
|
+
if not import_path_serializer:
|
|
124
124
|
return serializers.ModelSerializer
|
|
125
125
|
|
|
126
126
|
try:
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
module_path, class_name = import_path_serializer.rsplit(".", 1)
|
|
128
|
+
module = importlib.import_module(module_path)
|
|
129
|
+
serializer_class = getattr(module, class_name)
|
|
130
|
+
return serializer_class
|
|
131
|
+
except Exception as e:
|
|
132
|
+
print(f"Erro ao importar serializer: {import_path_serializer}: {e}")
|
|
129
133
|
return serializers.ModelSerializer
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/abstract_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/authentication.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maquinaweb_shared_auth-0.2.37 → maquinaweb_shared_auth-0.2.38}/shared_auth/storage_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|