Skip to content

Commit 5aa5341

Browse files
authored
chore(deps): Update oauthlib to >=3.1.0 (#113)
* Update oauthlib: A couple of methods were renamed in oauthlib 3.1.0 - [Renamed `construct_base_string` to `signature_base_string`](https://github.com/oauthlib/oauthlib/commit/42023d8303113073e31a57e1bbf70216b7120e20)
- [Renamed `normalize_base_string_uri` to `base-string_uri`](oauthlib/oauthlib@0ef0a9c) * Update CHANGELOG
1 parent ab12c8f commit 5aa5341

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- [PR 112](https://github.com/salesforce/django-declarative-apis/pull/112) Try again to use new ReadTheDocs config
1313
- [PR 111](https://github.com/salesforce/django-declarative-apis/pull/111) ReadTheDocs only supports up to Python 3.8
1414
- [PR 110](https://github.com/salesforce/django-declarative-apis/pull/110) Fix ReadTheDocs build by specifying python version differently
15-
- [PR 108](https://github.com/salesforce/django-declarative-apis/pull/107) Fix ReadTheDocs documentation build with pyproject.toml
15+
- [PR 108](https://github.com/salesforce/django-declarative-apis/pull/108) Fix ReadTheDocs documentation build with pyproject.toml
1616

1717
### Changed
18+
- [PR 113](https://github.com/salesforce/django-declarative-apis/pull/113) Require oauthlib >= 3.1.0
1819
- [PR 109](https://github.com/salesforce/django-declarative-apis/pull/109) Update Github actions
1920
- [PR 107](https://github.com/salesforce/django-declarative-apis/pull/107) Update to use pyproject.toml
2021

django_declarative_apis/authentication/oauthlib/endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def validate_request(self, uri, http_method="GET", body=None, headers=None):
8585

8686
if valid_client and not valid_signature: # TOOPHER
8787
norm_params = signature.normalize_parameters(request.params) # TOOPHER
88-
uri = signature.normalize_base_string_uri(request.uri) # TOOPHER
89-
base_signing_string = signature.construct_base_string(
88+
uri = signature.base_string_uri(request.uri) # TOOPHER
89+
base_signing_string = signature.signature_base_string(
9090
request.http_method, uri, norm_params
9191
) # TOOPHER
9292
self.validation_error_message = (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"cryptography>=2.0,<=3.4.8",
1414
"decorator==4.0.11",
1515
"django-dirtyfields>=1.2.1",
16-
"oauthlib[signedtoken,rsa]>=2.0.6,<3.1.0",
16+
"oauthlib[signedtoken,rsa]>=3.1.0",
1717
"pydantic>=1.8"
1818
]
1919
keywords = [

0 commit comments

Comments
 (0)