mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Updated OAuth2 authentication docs.
This commit is contained in:
parent
7ef83cf020
commit
f72488d609
|
@ -265,6 +265,12 @@ This authentication class depends on the optional [django-oauth2-provider][djang
|
|||
'provider.oauth2',
|
||||
)
|
||||
|
||||
Then add `OAuth2Authentication` to your global `DEFAULT_AUTHENTICATION` setting:
|
||||
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework.authentication.OAuth2Authentication',
|
||||
),
|
||||
|
||||
You must also include the following in your root `urls.py` module:
|
||||
|
||||
url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')),
|
||||
|
|
Loading…
Reference in New Issue
Block a user