maquinaweb-shared-auth 0.2.20__tar.gz → 0.2.22__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.20 → maquinaweb_shared_auth-0.2.22}/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/maquinaweb_shared_auth.egg-info/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/pyproject.toml +1 -1
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/conf.py +1 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/models.py +2 -2
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/README.md +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/maquinaweb_shared_auth.egg-info/SOURCES.txt +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/maquinaweb_shared_auth.egg-info/dependency_links.txt +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/maquinaweb_shared_auth.egg-info/requires.txt +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/maquinaweb_shared_auth.egg-info/top_level.txt +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/setup.cfg +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/setup.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/__init__.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/app.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/authentication.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/decorators.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/exceptions.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/fields.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/managers.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/middleware.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/mixins.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/permissions.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/router.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/serializers.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/shared_auth/urls.py +0 -0
- {maquinaweb_shared_auth-0.2.20 → maquinaweb_shared_auth-0.2.22}/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.22"
|
|
8
8
|
description = "Models read-only para autenticação compartilhada entre projetos Django."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13"
|
|
@@ -8,3 +8,4 @@ def get_setting(name, default):
|
|
|
8
8
|
ORGANIZATION_TABLE = get_setting("SHARED_AUTH_ORGANIZATION_TABLE", "organization_organization")
|
|
9
9
|
USER_TABLE = get_setting("SHARED_AUTH_USER_TABLE", "auth_user")
|
|
10
10
|
MEMBER_TABLE = get_setting("SHARED_AUTH_MEMBER_TABLE", "organization_member")
|
|
11
|
+
TOKEN_TABLE = get_setting("SHARED_AUTH_TOKEN_TABLE", "organization_multitoken")
|
|
@@ -6,7 +6,7 @@ ATENÇÃO: Estes models NÃO devem ser usados para criar migrations
|
|
|
6
6
|
from django.contrib.auth.models import AbstractUser
|
|
7
7
|
from django.db import models
|
|
8
8
|
from .exceptions import OrganizationNotFoundError
|
|
9
|
-
from .conf import MEMBER_TABLE, ORGANIZATION_TABLE, USER_TABLE
|
|
9
|
+
from .conf import MEMBER_TABLE, ORGANIZATION_TABLE, USER_TABLE, TOKEN_TABLE
|
|
10
10
|
from .managers import (
|
|
11
11
|
SharedMemberManager,
|
|
12
12
|
SharedOrganizationManager,
|
|
@@ -28,7 +28,7 @@ class SharedToken(models.Model):
|
|
|
28
28
|
|
|
29
29
|
class Meta:
|
|
30
30
|
managed = False
|
|
31
|
-
db_table =
|
|
31
|
+
db_table = TOKEN_TABLE
|
|
32
32
|
|
|
33
33
|
def __str__(self):
|
|
34
34
|
return self.key
|
|
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.20 → maquinaweb_shared_auth-0.2.22}/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
|