plain.oauth 0.7.3__py3-none-any.whl → 0.7.5__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/providers.py CHANGED
@@ -107,6 +107,7 @@ class OAuthProvider:
107
107
 
108
108
  state = request.GET["state"]
109
109
  expected_state = request.session.pop(SESSION_STATE_KEY)
110
+ request.session.save() # Make sure the pop is saved (won't save on an exception)
110
111
  if not secrets.compare_digest(state, expected_state):
111
112
  raise OAuthStateMismatchError()
112
113
 
@@ -1,23 +1,15 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.7.3
3
+ Version: 0.7.5
4
4
  Summary: OAuth login and API access for Plain.
5
- Home-page: https://plainframework.com
6
- License: BSD-3-Clause
7
- Author: Dave Gaeddert
8
- Author-email: dave.gaeddert@dropseed.dev
9
- Requires-Python: >=3.11,<4.0
10
- Classifier: License :: OSI Approved :: BSD License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Requires-Dist: plain (<1.0.0)
16
- Requires-Dist: plain.auth (<1.0.0)
17
- Requires-Dist: plain.models (<1.0.0)
18
- Requires-Dist: requests
19
- Project-URL: Documentation, https://plainframework.com/docs/
20
- Project-URL: Repository, https://github.com/dropseed/plain
5
+ Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
+ License-Expression: BSD-3-Clause
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.11
9
+ Requires-Dist: plain-auth<1.0.0
10
+ Requires-Dist: plain-models<1.0.0
11
+ Requires-Dist: plain<1.0.0
12
+ Requires-Dist: requests>=2.0.0
21
13
  Description-Content-Type: text/markdown
22
14
 
23
15
  <!-- This file is compiled from plain-oauth/plain/oauth/README.md. Do not edit this file directly. -->
@@ -323,4 +315,3 @@ This is the Django setting you're probably looking for:
323
315
  ```python
324
316
  HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
325
317
  ```
326
-
@@ -3,19 +3,19 @@ plain/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  plain/oauth/config.py,sha256=jk5l59taT_3Kh7EFrJuuubtrCHLfNBVkD2sWQ_M5_JQ,160
4
4
  plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
5
5
  plain/oauth/exceptions.py,sha256=TMGtIGkK3_J4rsEy1oPCmia7BnRSK8N8RMZm4_pNelA,189
6
+ plain/oauth/models.py,sha256=JKST_orOFzywvtoQbrTO9cn7lKLJgjaBUJTN9RqXw7c,6843
7
+ plain/oauth/providers.py,sha256=CqZg5pkB7yLK2Fkbc3dpY9ioYeh5tVoEuiJf1qn1qDM,7150
8
+ plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
9
+ plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
10
+ plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
6
11
  plain/oauth/migrations/0001_initial.py,sha256=8-JR2McXDUNRhMRUrrZPqzRNpdROfCsIo5Qkndkn-pg,1756
7
12
  plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb0IU9KDRQfog0PjVbzuNv_AxCs7UVHnA0F263AKNo,581
8
13
  plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=XSd_b8fbFyJQ9Hl117KH9g0-jOzXgekARBAtQqE9G14,625
9
14
  plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=ewMJTajyqbyYsxmJqlGtgc3fZPlqZWhX-Fnect1xgnQ,648
10
15
  plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=3hmuSvIZhn-haEKOGN3lQzcXD7b_Hy0P8Wa7LOAvJ1k,576
11
16
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- plain/oauth/models.py,sha256=JKST_orOFzywvtoQbrTO9cn7lKLJgjaBUJTN9RqXw7c,6843
13
- plain/oauth/providers.py,sha256=NQNgxqNdU5ZFMA12vKZFTHagWx5SoMBf-fiZXmkFFps,7060
14
- plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
15
17
  plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
16
- plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
17
- plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
18
- plain_oauth-0.7.3.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
19
- plain_oauth-0.7.3.dist-info/METADATA,sha256=A7-Hp7DE7cVSEETZx0EPDjT4RiEOIXVocP0a-JbmpFM,10903
20
- plain_oauth-0.7.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
21
- plain_oauth-0.7.3.dist-info/RECORD,,
18
+ plain_oauth-0.7.5.dist-info/METADATA,sha256=8aSbsintXJvgLVu3iRaN6xrGXbwS-Yvpu1aJ6_7-WIg,10512
19
+ plain_oauth-0.7.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ plain_oauth-0.7.5.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
21
+ plain_oauth-0.7.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any