plain.oauth 0.7.3__tar.gz → 0.7.4__tar.gz

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.
Files changed (21) hide show
  1. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/PKG-INFO +1 -1
  2. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/providers.py +1 -0
  3. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/pyproject.toml +1 -1
  4. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/LICENSE +0 -0
  5. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/README.md +0 -0
  6. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/README.md +0 -0
  7. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/__init__.py +0 -0
  8. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/config.py +0 -0
  9. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/default_settings.py +0 -0
  10. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/exceptions.py +0 -0
  11. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/0001_initial.py +0 -0
  12. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py +0 -0
  13. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py +0 -0
  14. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py +0 -0
  15. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py +0 -0
  16. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/migrations/__init__.py +0 -0
  17. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/models.py +0 -0
  18. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/staff.py +0 -0
  19. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/templates/oauth/error.html +0 -0
  20. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/urls.py +0 -0
  21. {plain_oauth-0.7.3 → plain_oauth-0.7.4}/plain/oauth/views.py +0 -0
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "plain.oauth"
3
- version = "0.7.3"
3
+ version = "0.7.4"
4
4
  description = "OAuth login and API access for Plain."
5
5
  authors = ["Dave Gaeddert <dave.gaeddert@dropseed.dev>"]
6
6
  license = "BSD-3-Clause"
File without changes
File without changes