plain.auth 0.12.0__tar.gz → 0.12.1__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.
- {plain_auth-0.12.0 → plain_auth-0.12.1}/.gitignore +4 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/PKG-INFO +1 -1
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/middleware.py +3 -2
- {plain_auth-0.12.0 → plain_auth-0.12.1}/pyproject.toml +3 -1
- {plain_auth-0.12.0 → plain_auth-0.12.1}/LICENSE +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/README.md +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/README.md +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/__init__.py +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/default_settings.py +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/sessions.py +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/utils.py +0 -0
- {plain_auth-0.12.0 → plain_auth-0.12.1}/plain/auth/views.py +0 -0
|
@@ -22,6 +22,7 @@ class AuthenticationMiddleware:
|
|
|
22
22
|
"'plain.sessions.middleware.SessionMiddleware' before "
|
|
23
23
|
"'plain.auth.middleware.AuthenticationMiddleware'."
|
|
24
24
|
)
|
|
25
|
+
|
|
25
26
|
request.user = SimpleLazyObject(lambda: get_user(request))
|
|
26
|
-
|
|
27
|
-
return
|
|
27
|
+
|
|
28
|
+
return self.get_response(request)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "plain.auth"
|
|
3
|
-
version = "0.12.
|
|
3
|
+
version = "0.12.1"
|
|
4
4
|
description = "User authentication and authorization for Plain."
|
|
5
5
|
authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
|
|
6
6
|
readme = "README.md"
|
|
@@ -8,6 +8,8 @@ requires-python = ">=3.11"
|
|
|
8
8
|
dependencies = [
|
|
9
9
|
"plain<1.0.0",
|
|
10
10
|
"plain.models<1.0.0",
|
|
11
|
+
# Technically you can swap out sessions entirely with your own,
|
|
12
|
+
# so long as the request.session exists and has a similar API.
|
|
11
13
|
"plain.sessions<1.0.0",
|
|
12
14
|
]
|
|
13
15
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|