xn-auth 0.2.45__tar.gz → 0.2.46__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.
- {xn_auth-0.2.45/xn_auth.egg-info → xn_auth-0.2.46}/PKG-INFO +1 -1
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/controller.py +2 -2
- {xn_auth-0.2.45 → xn_auth-0.2.46/xn_auth.egg-info}/PKG-INFO +1 -1
- {xn_auth-0.2.45 → xn_auth-0.2.46}/.env.dist +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/.gitignore +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/.pre-commit-config.yaml +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/README.md +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/makefile +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/pyproject.toml +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/setup.cfg +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/enums.py +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/exceptions.py +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/middleware.py +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/models.py +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/x_auth/types.py +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/xn_auth.egg-info/SOURCES.txt +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/xn_auth.egg-info/dependency_links.txt +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/xn_auth.egg-info/requires.txt +0 -0
- {xn_auth-0.2.45 → xn_auth-0.2.46}/xn_auth.egg-info/top_level.txt +0 -0
|
@@ -22,7 +22,7 @@ async def revoked_token_handler(token: Tok, _cn: ASGIConnection) -> bool:
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class Auth:
|
|
25
|
-
def __init__(self, sec: str, user_model: type[User] = User, exc_paths: list[str] = None):
|
|
25
|
+
def __init__(self, sec: str, user_model: type[User] = User, exc_paths: list[str] = None, domain: str = ".xync.net"):
|
|
26
26
|
self.jwt = JWTCookieAuth( # [AuthUser, Tok]
|
|
27
27
|
retrieve_user_handler=retrieve_user_handler,
|
|
28
28
|
revoked_token_handler=revoked_token_handler,
|
|
@@ -30,7 +30,7 @@ class Auth:
|
|
|
30
30
|
authentication_middleware_class=JWTAuthMiddleware,
|
|
31
31
|
token_secret=sec,
|
|
32
32
|
token_cls=Tok,
|
|
33
|
-
domain=
|
|
33
|
+
domain=domain,
|
|
34
34
|
# endpoints excluded from authentication: (login and openAPI docs)
|
|
35
35
|
exclude=["/schema", "/auth", "/public"] + (exc_paths or []),
|
|
36
36
|
)
|
|
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
|