xn-auth 0.2.29__tar.gz → 0.2.30__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.29/xn_auth.egg-info → xn_auth-0.2.30}/PKG-INFO +1 -1
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/controller.py +2 -2
- {xn_auth-0.2.29 → xn_auth-0.2.30/xn_auth.egg-info}/PKG-INFO +1 -1
- {xn_auth-0.2.29 → xn_auth-0.2.30}/.env.dist +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/.gitignore +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/.pre-commit-config.yaml +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/README.md +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/makefile +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/pyproject.toml +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/setup.cfg +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/enums.py +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/exceptions.py +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/middleware.py +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/models.py +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/x_auth/types.py +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/xn_auth.egg-info/SOURCES.txt +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/xn_auth.egg-info/dependency_links.txt +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/xn_auth.egg-info/requires.txt +0 -0
- {xn_auth-0.2.29 → xn_auth-0.2.30}/xn_auth.egg-info/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ from litestar.exceptions import NotAuthorizedException
|
|
|
7
7
|
from litestar.security.jwt import JWTCookieAuth
|
|
8
8
|
|
|
9
9
|
from x_auth.middleware import JWTAuthMiddleware, Tok
|
|
10
|
-
from x_auth.models import
|
|
10
|
+
from x_auth.models import User
|
|
11
11
|
from x_auth.types import AuthUser
|
|
12
12
|
|
|
13
13
|
|
|
@@ -20,7 +20,7 @@ async def revoked_token_handler(token: Tok, _cn: ASGIConnection) -> bool:
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Auth:
|
|
23
|
-
def __init__(self, sec: str, user_model: type[
|
|
23
|
+
def __init__(self, sec: str, user_model: type[User] = User, exc_paths: list[str] = None):
|
|
24
24
|
self.jwt = JWTCookieAuth( # [AuthUser, Tok]
|
|
25
25
|
retrieve_user_handler=retrieve_user_handler,
|
|
26
26
|
revoked_token_handler=revoked_token_handler,
|
|
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
|