From a9fd4e996bcf6cb09e2d2255049b840bed9f5c80 Mon Sep 17 00:00:00 2001 From: Alan Crosswell Date: Fri, 20 Mar 2020 09:10:30 -0400 Subject: [PATCH 1/2] Revert "getting_started.rst: add JSONOAuthLibCore as part of tutorial (#734)" This reverts commit 392257a77473b7eb75899dd2475482a7c3729e3f. --- docs/rest-framework/getting_started.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/rest-framework/getting_started.rst b/docs/rest-framework/getting_started.rst index b92c08e4f..8028a412f 100644 --- a/docs/rest-framework/getting_started.rst +++ b/docs/rest-framework/getting_started.rst @@ -100,8 +100,6 @@ Also add the following to your `settings.py` module: .. code-block:: python OAUTH2_PROVIDER = { - # parses OAuth2 data from application/json requests - 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore', # this is the list of available scopes 'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'} } @@ -114,10 +112,6 @@ Also add the following to your `settings.py` module: ) } -`OAUTH2_PROVIDER` setting parameter sets the backend class that is used to parse OAuth2 requests. -The `JSONOAuthLibCore` class extends the default OAuthLibCore to parse correctly -`application/json` requests. - `OAUTH2_PROVIDER.SCOPES` setting parameter contains the scopes that the application will be aware of, so we can use them for permission check. From 4d4d8c2bc92318c94457e0da70b55e420dc606d2 Mon Sep 17 00:00:00 2001 From: Alan Crosswell Date: Fri, 20 Mar 2020 09:15:22 -0400 Subject: [PATCH 2/2] tutorial docs errata --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fe3221de..400bc13b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed * #812: Reverts #643 pass wrong request object to authenticate function. * Fix concurrency issue with refresh token requests (#[810](https://github.com/jazzband/django-oauth-toolkit/pull/810)) +* #817: Reverts #734 tutorial documentation error. ## [1.3.0] 2020-03-02