plain.auth 0.25.0__py3-none-any.whl → 0.25.2__py3-none-any.whl

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # plain-auth changelog
2
2
 
3
+ ## [0.25.2](https://github.com/dropseed/plain/releases/plain-auth@0.25.2) (2026-02-04)
4
+
5
+ ### What's changed
6
+
7
+ - Added `__all__` exports to `views` module for explicit public API boundaries ([f26a63a5c941](https://github.com/dropseed/plain/commit/f26a63a5c941))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required.
12
+
13
+ ## [0.25.1](https://github.com/dropseed/plain/releases/plain-auth@0.25.1) (2026-01-28)
14
+
15
+ ### What's changed
16
+
17
+ - Added Settings section to README ([803fee1ad5](https://github.com/dropseed/plain/commit/803fee1ad5))
18
+
19
+ ### Upgrade instructions
20
+
21
+ - No changes required.
22
+
3
23
  ## [0.25.0](https://github.com/dropseed/plain/releases/plain-auth@0.25.0) (2026-01-13)
4
24
 
5
25
  ### What's changed
plain/auth/README.md CHANGED
@@ -10,6 +10,7 @@
10
10
  - [Checking if a user is logged in](#checking-if-a-user-is-logged-in)
11
11
  - [Restricting views](#restricting-views)
12
12
  - [Testing with authenticated users](#testing-with-authenticated-users)
13
+ - [Settings](#settings)
13
14
  - [FAQs](#faqs)
14
15
  - [Installation](#installation)
15
16
 
@@ -194,6 +195,16 @@ from plain.auth.test import login_client, logout_client
194
195
  logout_client(client)
195
196
  ```
196
197
 
198
+ ## Settings
199
+
200
+ | Setting | Default | Env var |
201
+ | ------------------------------ | -------------------- | ------------------------------------ |
202
+ | `AUTH_USER_MODEL` | Required | `PLAIN_AUTH_USER_MODEL` |
203
+ | `AUTH_LOGIN_URL` | Required | `PLAIN_AUTH_LOGIN_URL` |
204
+ | `AUTH_USER_SESSION_HASH_FIELD` | `"password"` or `""` | `PLAIN_AUTH_USER_SESSION_HASH_FIELD` |
205
+
206
+ See [`default_settings.py`](./default_settings.py) for more details.
207
+
197
208
  ## FAQs
198
209
 
199
210
  #### How do I log in a user programmatically?
plain/auth/views.py CHANGED
@@ -25,6 +25,13 @@ try:
25
25
  except ImportError:
26
26
  get_request_impersonator: Any = None
27
27
 
28
+ __all__ = [
29
+ "AuthView",
30
+ "LoginRequired",
31
+ "LogoutView",
32
+ "redirect_to_login",
33
+ ]
34
+
28
35
 
29
36
  class LoginRequired(Exception):
30
37
  def __init__(self, login_url: str | None = None, redirect_field_name: str = "next"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.auth
3
- Version: 0.25.0
3
+ Version: 0.25.2
4
4
  Summary: Add users to your app and decide what they can access.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -23,6 +23,7 @@ Description-Content-Type: text/markdown
23
23
  - [Checking if a user is logged in](#checking-if-a-user-is-logged-in)
24
24
  - [Restricting views](#restricting-views)
25
25
  - [Testing with authenticated users](#testing-with-authenticated-users)
26
+ - [Settings](#settings)
26
27
  - [FAQs](#faqs)
27
28
  - [Installation](#installation)
28
29
 
@@ -207,6 +208,16 @@ from plain.auth.test import login_client, logout_client
207
208
  logout_client(client)
208
209
  ```
209
210
 
211
+ ## Settings
212
+
213
+ | Setting | Default | Env var |
214
+ | ------------------------------ | -------------------- | ------------------------------------ |
215
+ | `AUTH_USER_MODEL` | Required | `PLAIN_AUTH_USER_MODEL` |
216
+ | `AUTH_LOGIN_URL` | Required | `PLAIN_AUTH_LOGIN_URL` |
217
+ | `AUTH_USER_SESSION_HASH_FIELD` | `"password"` or `""` | `PLAIN_AUTH_USER_SESSION_HASH_FIELD` |
218
+
219
+ See [`default_settings.py`](./default_settings.py) for more details.
220
+
210
221
  ## FAQs
211
222
 
212
223
  #### How do I log in a user programmatically?
@@ -1,5 +1,5 @@
1
- plain/auth/CHANGELOG.md,sha256=Wny_rlZoVBpoKzwLfbir7k2_Kx2ZgGwIiQqhIETsGw4,9202
2
- plain/auth/README.md,sha256=qWfAAjLw_VlJ-fwMdgTWtUEmb5vLPwENt7cTGnxkbcQ,5973
1
+ plain/auth/CHANGELOG.md,sha256=iQy_Ud4a0PILwwdFd_0g0ZQRQLP9V6qhyvOLsgHLLrI,9774
2
+ plain/auth/README.md,sha256=nq4CJ43yBNkeKWUNdajx7PCNr4i6qxKb8dkfqo0bxG4,6566
3
3
  plain/auth/__init__.py,sha256=CrOsS74CPGN1nPTTfie13mPgdyVLRyZ1YwDPIA77uaA,179
4
4
  plain/auth/default_settings.py,sha256=65VzDn3j61OMn78Lg6Zuds4A8QKzJJ_0G9KoFqAOIRo,466
5
5
  plain/auth/requests.py,sha256=jUlMTOWFt0qfDF_uVkOqaP9rZiCLrAofsmirCwyRGEE,880
@@ -7,8 +7,8 @@ plain/auth/sessions.py,sha256=p3aW_3FsjFLZ1Nk2OHejqL-rhAX5NHSE7aigr_z8L3U,6029
7
7
  plain/auth/templates.py,sha256=CVtuIdBgOgYB2o61zpOPJb6nMx_gU61i_3PDQx8FjVs,770
8
8
  plain/auth/test.py,sha256=SHawhwarJEMVfaLkjpiuFVSWZoGIMwhzXreU_T1zvCE,1599
9
9
  plain/auth/utils.py,sha256=9kKWh1QqxA8Esct-jBvTCdjBYOHpO_Tg1YeV9WxYmxg,1362
10
- plain/auth/views.py,sha256=Nu4adJ9bhFdiPkGOVqt7BbIA150HG1ojSFEqAnIO3P8,4923
11
- plain_auth-0.25.0.dist-info/METADATA,sha256=YzLxmVS7JZV6B4ZuGf6XX9slkKMeJntxOGa1bWUleRM,6366
12
- plain_auth-0.25.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
- plain_auth-0.25.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
14
- plain_auth-0.25.0.dist-info/RECORD,,
10
+ plain/auth/views.py,sha256=KLZ-oUByXxflFUcoONuiIjGl4JnsK5A34NfeRfwhCiM,5018
11
+ plain_auth-0.25.2.dist-info/METADATA,sha256=bB99OSzWbEOwo3nOF6XpmhdR24n2--LD_w0dUMoo_UQ,6959
12
+ plain_auth-0.25.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
+ plain_auth-0.25.2.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
14
+ plain_auth-0.25.2.dist-info/RECORD,,