maquinaweb-shared-auth 0.2.19__tar.gz → 0.2.20__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.19 → maquinaweb_shared_auth-0.2.20}/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/maquinaweb_shared_auth.egg-info/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/pyproject.toml +1 -1
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/authentication.py +1 -1
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/managers.py +2 -2
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/README.md +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/maquinaweb_shared_auth.egg-info/SOURCES.txt +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/maquinaweb_shared_auth.egg-info/dependency_links.txt +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/maquinaweb_shared_auth.egg-info/requires.txt +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/maquinaweb_shared_auth.egg-info/top_level.txt +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/setup.cfg +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/setup.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/__init__.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/app.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/conf.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/decorators.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/exceptions.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/fields.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/middleware.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/mixins.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/models.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/permissions.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/router.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/serializers.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/urls.py +0 -0
- {maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/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.20"
|
|
8
8
|
description = "Models read-only para autenticação compartilhada entre projetos Django."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13"
|
{maquinaweb_shared_auth-0.2.19 → maquinaweb_shared_auth-0.2.20}/shared_auth/authentication.py
RENAMED
|
@@ -28,7 +28,7 @@ class SharedTokenAuthentication(TokenAuthentication):
|
|
|
28
28
|
Valida o token no banco de dados compartilhado
|
|
29
29
|
"""
|
|
30
30
|
try:
|
|
31
|
-
token = SharedToken.objects.
|
|
31
|
+
token = SharedToken.objects.get(key=key)
|
|
32
32
|
except SharedToken.DoesNotExist:
|
|
33
33
|
raise exceptions.AuthenticationFailed(_("Token inválido."))
|
|
34
34
|
|
|
@@ -69,11 +69,11 @@ class SharedMemberManager(models.Manager):
|
|
|
69
69
|
|
|
70
70
|
def for_user(self, user_id):
|
|
71
71
|
"""Retorna memberships de um usuário"""
|
|
72
|
-
return self.filter(user_id=user_id)
|
|
72
|
+
return self.filter(user_id=user_id)
|
|
73
73
|
|
|
74
74
|
def for_organization(self, organization_id):
|
|
75
75
|
"""Retorna membros de uma organização"""
|
|
76
|
-
return self.filter(organization_id=organization_id)
|
|
76
|
+
return self.filter(organization_id=organization_id)
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
class OrganizationQuerySetMixin:
|
|
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
|
|
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
|