plain.oauth 0.7.2__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.
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/PKG-INFO +3 -2
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/README.md +1 -1
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/README.md +1 -1
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/providers.py +1 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/pyproject.toml +1 -1
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/LICENSE +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/__init__.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/config.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/default_settings.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/exceptions.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/0001_initial.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/migrations/__init__.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/models.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/staff.py +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/templates/oauth/error.html +0 -0
- {plain_oauth-0.7.2 → plain_oauth-0.7.4}/plain/oauth/urls.py +0 -0
- {plain_oauth-0.7.2 → 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
|
+
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
|
-
|
324
|
+
HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
324
325
|
```
|
325
326
|
|
@@ -299,5 +299,5 @@ then the callback URL might be automatically built as `http` instead of `https`.
|
|
299
299
|
This is the Django setting you're probably looking for:
|
300
300
|
|
301
301
|
```python
|
302
|
-
|
302
|
+
HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
303
303
|
```
|
@@ -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
|
-
|
300
|
+
HTTPS_PROXY_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
301
301
|
```
|
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|