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.
@@ -11,3 +11,7 @@ plain*/tests/.plain
11
11
 
12
12
  # Ottobot
13
13
  .aider*
14
+
15
+ /llms-full.txt
16
+
17
+ /.plain
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.auth
3
- Version: 0.12.0
3
+ Version: 0.12.1
4
4
  Summary: User authentication and authorization for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -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
- response = self.get_response(request)
27
- return response
27
+
28
+ return self.get_response(request)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.auth"
3
- version = "0.12.0"
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