plain.oauth 0.24.2__py3-none-any.whl → 0.25.1__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/oauth/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # plain-oauth changelog
2
2
 
3
+ ## [0.25.1](https://github.com/dropseed/plain/releases/plain-oauth@0.25.1) (2025-08-22)
4
+
5
+ ### What's changed
6
+
7
+ - Updated admin navigation to place icons on sections rather than individual items ([5a6479a](https://github.com/dropseed/plain/commit/5a6479ac79))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
13
+ ## [0.25.0](https://github.com/dropseed/plain/releases/plain-oauth@0.25.0) (2025-08-19)
14
+
15
+ ### What's changed
16
+
17
+ - Removed requirement for manual `{{ csrf_input }}` in OAuth forms - CSRF protection now uses `Sec-Fetch-Site` headers automatically ([9551508](https://github.com/dropseed/plain/commit/955150800c))
18
+
19
+ ### Upgrade instructions
20
+
21
+ - Remove `{{ csrf_input }}` from any OAuth forms in your templates (login, connect, disconnect forms) - CSRF protection is now handled automatically
22
+
3
23
  ## [0.24.2](https://github.com/dropseed/plain/releases/plain-oauth@0.24.2) (2025-08-05)
4
24
 
5
25
  ### What's changed
plain/oauth/README.md CHANGED
@@ -141,7 +141,6 @@ Then add a login button (which is a form using POST rather than a basic link, fo
141
141
  ```html
142
142
  <h1>Login</h1>
143
143
  <form action="{% url 'oauth:login' 'github' %}" method="post">
144
- {{ csrf_input }}
145
144
  <button type="submit">Login with GitHub</button>
146
145
  </form>
147
146
  ```
@@ -191,7 +190,6 @@ Hello {{ request.user }}!
191
190
  <li>
192
191
  {{ connection.provider_key }} [ID: {{ connection.provider_user_id }}]
193
192
  <form action="{% url 'oauth:disconnect' connection.provider_key %}" method="post">
194
- {{ csrf_input }}
195
193
  <input type="hidden" name="provider_user_id" value="{{ connection.provider_user_id }}">
196
194
  <button type="submit">Disconnect</button>
197
195
  </form>
@@ -205,7 +203,6 @@ Hello {{ request.user }}!
205
203
  <li>
206
204
  {{ provider_key}}
207
205
  <form action="{% url 'oauth:connect' provider_key %}" method="post">
208
- {{ csrf_input }}
209
206
  <button type="submit">Connect</button>
210
207
  </form>
211
208
  </li>
plain/oauth/admin.py CHANGED
@@ -37,9 +37,9 @@ class ProvidersChartCard(ChartCard):
37
37
  class OAuthConnectionViewset(AdminViewset):
38
38
  class ListView(AdminModelListView):
39
39
  nav_section = "OAuth"
40
+ nav_icon = "link-45deg"
40
41
  model = OAuthConnection
41
42
  title = "Connections"
42
- nav_icon = "link-45deg"
43
43
  fields = ["id", "user", "provider_key", "provider_user_id"]
44
44
  cards = [ProvidersChartCard]
45
45
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.24.2
3
+ Version: 0.25.1
4
4
  Summary: Let users log in with OAuth providers.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -155,7 +155,6 @@ Then add a login button (which is a form using POST rather than a basic link, fo
155
155
  ```html
156
156
  <h1>Login</h1>
157
157
  <form action="{% url 'oauth:login' 'github' %}" method="post">
158
- {{ csrf_input }}
159
158
  <button type="submit">Login with GitHub</button>
160
159
  </form>
161
160
  ```
@@ -205,7 +204,6 @@ Hello {{ request.user }}!
205
204
  <li>
206
205
  {{ connection.provider_key }} [ID: {{ connection.provider_user_id }}]
207
206
  <form action="{% url 'oauth:disconnect' connection.provider_key %}" method="post">
208
- {{ csrf_input }}
209
207
  <input type="hidden" name="provider_user_id" value="{{ connection.provider_user_id }}">
210
208
  <button type="submit">Disconnect</button>
211
209
  </form>
@@ -219,7 +217,6 @@ Hello {{ request.user }}!
219
217
  <li>
220
218
  {{ provider_key}}
221
219
  <form action="{% url 'oauth:connect' provider_key %}" method="post">
222
- {{ csrf_input }}
223
220
  <button type="submit">Connect</button>
224
221
  </form>
225
222
  </li>
@@ -1,7 +1,7 @@
1
- plain/oauth/CHANGELOG.md,sha256=t9_ijwUrVBdQq1kwWZflh-91sqJccWrcc8e-Ovg8Oec,1986
2
- plain/oauth/README.md,sha256=SUIbWnuka9mAJFOPTkrtW2KmKLAOYn5vMpT1VesPWPk,11156
1
+ plain/oauth/CHANGELOG.md,sha256=6Qzh3TXra_ykDhgWyZKmRZh9WztYvhNnzm6w8HUJ6QM,2777
2
+ plain/oauth/README.md,sha256=m3RRb01DLnoxBtzuYzESSe49OmsZ8P1R5_QsfCSRQgo,11077
3
3
  plain/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- plain/oauth/admin.py,sha256=9DAku8ubV6a_ByFer6UBS0G1cC_gGGHiI_iRP0b78nE,1310
4
+ plain/oauth/admin.py,sha256=G1DFqGr5AEMbgVG689uGPC0YBD6gLifoz67yUOmslvs,1310
5
5
  plain/oauth/config.py,sha256=0Q4IILBKQbIaxqeL9WRTH5Cka-BO3c3SOj1AdQIAJgc,167
6
6
  plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
7
7
  plain/oauth/exceptions.py,sha256=yoZsq8XgzstuwbE2ihoet0nzpw_sVZgDrwUauh6hhUs,546
@@ -12,7 +12,7 @@ plain/oauth/views.py,sha256=J2NCa37YediBTi82CfRlmsb45hFT6gWN6zMaFHhsDMM,2410
12
12
  plain/oauth/migrations/0001_initial.py,sha256=0NjfF7F3szhUXkpK3JvN10Xkat1QR-VvnX6Oed9iFmo,1940
13
13
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  plain/oauth/templates/oauth/callback.html,sha256=4CJG0oAN0xYjw2IPkjaL7B4hwlf9um9LI4CTu50E-yE,173
15
- plain_oauth-0.24.2.dist-info/METADATA,sha256=4wEMvZsEaJXj9V8-FnSVQt7dGhLExWZFKjhw0O1ObII,11561
16
- plain_oauth-0.24.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- plain_oauth-0.24.2.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
18
- plain_oauth-0.24.2.dist-info/RECORD,,
15
+ plain_oauth-0.25.1.dist-info/METADATA,sha256=CRarRZlMr082RD80RN_yQv-kSo8-jNO_XTARBUtr-eE,11482
16
+ plain_oauth-0.25.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ plain_oauth-0.25.1.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
18
+ plain_oauth-0.25.1.dist-info/RECORD,,