plain.oauth 0.7.3__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/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.3
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
@@ -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.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.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,,