plain.oauth 0.7.2__py3-none-any.whl → 0.7.4__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/README.md CHANGED
@@ -297,5 +297,5 @@ then the callback URL might be automatically built as `http` instead of `https`.
297
297
  This is the Django setting you're probably looking for:
298
298
 
299
299
  ```python
300
- SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
300
+ HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
301
301
  ```
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.oauth
3
- Version: 0.7.2
3
+ Version: 0.7.4
4
4
  Summary: OAuth login and API access for Plain.
5
5
  Home-page: https://plainframework.com
6
6
  License: BSD-3-Clause
@@ -11,6 +11,7 @@ Classifier: License :: OSI Approved :: BSD License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
14
15
  Requires-Dist: plain (<1.0.0)
15
16
  Requires-Dist: plain.auth (<1.0.0)
16
17
  Requires-Dist: plain.models (<1.0.0)
@@ -320,6 +321,6 @@ then the callback URL might be automatically built as `http` instead of `https`.
320
321
  This is the Django setting you're probably looking for:
321
322
 
322
323
  ```python
323
- SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
324
+ HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
324
325
  ```
325
326
 
@@ -1,4 +1,4 @@
1
- plain/oauth/README.md,sha256=IKgxp_goFYettLZBjHzUHctbavXvhQtg4ZjMWaQCD0I,10010
1
+ plain/oauth/README.md,sha256=rG0qxUdbaThRfZf-sc3Ot2DAMLeC7UGFtSvmEXxs_zc,10005
2
2
  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
@@ -10,12 +10,12 @@ plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha25
10
10
  plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=3hmuSvIZhn-haEKOGN3lQzcXD7b_Hy0P8Wa7LOAvJ1k,576
11
11
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  plain/oauth/models.py,sha256=JKST_orOFzywvtoQbrTO9cn7lKLJgjaBUJTN9RqXw7c,6843
13
- plain/oauth/providers.py,sha256=NQNgxqNdU5ZFMA12vKZFTHagWx5SoMBf-fiZXmkFFps,7060
13
+ plain/oauth/providers.py,sha256=CqZg5pkB7yLK2Fkbc3dpY9ioYeh5tVoEuiJf1qn1qDM,7150
14
14
  plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
15
15
  plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
16
16
  plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
17
17
  plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
18
- plain_oauth-0.7.2.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
19
- plain_oauth-0.7.2.dist-info/METADATA,sha256=yE0Hosfe4lzQkOTuIanmEKKFk2SPLwTMyr2h7EPSDUI,10857
20
- plain_oauth-0.7.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- plain_oauth-0.7.2.dist-info/RECORD,,
18
+ plain_oauth-0.7.4.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
19
+ plain_oauth-0.7.4.dist-info/METADATA,sha256=NT95qGT0mFrFUAs7whnU-0wzXuQKJo39_mERRkNu9_I,10903
20
+ plain_oauth-0.7.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
21
+ plain_oauth-0.7.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any