plain.auth 0.18.0__tar.gz → 0.19.0__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.18.0 → plain_auth-0.19.0}/.gitignore +1 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/PKG-INFO +1 -1
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/CHANGELOG.md +10 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/test.py +3 -3
- {plain_auth-0.18.0 → plain_auth-0.19.0}/pyproject.toml +1 -1
- {plain_auth-0.18.0 → plain_auth-0.19.0}/LICENSE +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/README.md +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/README.md +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/__init__.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/default_settings.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/middleware.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/sessions.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/utils.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/plain/auth/views.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/app/settings.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/app/urls.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/app/users/migrations/0001_initial.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/app/users/migrations/__init__.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/app/users/models.py +0 -0
- {plain_auth-0.18.0 → plain_auth-0.19.0}/tests/test_views.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# plain-auth changelog
|
|
2
2
|
|
|
3
|
+
## [0.19.0](https://github.com/dropseed/plain/releases/plain-auth@0.19.0) (2025-09-30)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Updated imports to use the renamed `Request` class instead of `HttpRequest` ([cd46ff2](https://github.com/dropseed/plain/commit/cd46ff2003))
|
|
8
|
+
|
|
9
|
+
### Upgrade instructions
|
|
10
|
+
|
|
11
|
+
- Replace any imports of `HttpRequest` from `plain.http.request` with `Request` (e.g., `from plain.http.request import HttpRequest` becomes `from plain.http.request import Request`)
|
|
12
|
+
|
|
3
13
|
## [0.18.0](https://github.com/dropseed/plain/releases/plain-auth@0.18.0) (2025-09-19)
|
|
4
14
|
|
|
5
15
|
### What's changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from http.cookies import SimpleCookie
|
|
2
2
|
|
|
3
|
-
from plain.http.request import
|
|
3
|
+
from plain.http.request import Request
|
|
4
4
|
from plain.runtime import settings
|
|
5
5
|
from plain.sessions import SessionStore
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ from .sessions import get_user, login, logout
|
|
|
9
9
|
|
|
10
10
|
def login_client(client, user):
|
|
11
11
|
"""Log a user into a test client."""
|
|
12
|
-
request =
|
|
12
|
+
request = Request()
|
|
13
13
|
if client.session:
|
|
14
14
|
request.session = client.session
|
|
15
15
|
else:
|
|
@@ -30,7 +30,7 @@ def login_client(client, user):
|
|
|
30
30
|
|
|
31
31
|
def logout_client(client):
|
|
32
32
|
"""Log out a user from a test client."""
|
|
33
|
-
request =
|
|
33
|
+
request = Request()
|
|
34
34
|
if client.session:
|
|
35
35
|
request.session = client.session
|
|
36
36
|
request.user = get_user(request)
|
|
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
|