Skip to content

Commit

Permalink
Revert "getting_started.rst: add JSONOAuthLibCore as part of tutorial (
Browse files Browse the repository at this point in the history
…#734)"

This reverts commit 392257a.
  • Loading branch information
n2ygk authored and Asif Saif Uddin committed Mar 20, 2020
1 parent fd0a0d8 commit f4d960b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/rest-framework/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
}
Expand All @@ -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.

Expand Down

0 comments on commit f4d960b

Please sign in to comment.