diff options
| author | erkarl | 2013-10-31 03:47:23 +0200 | 
|---|---|---|
| committer | erkarl | 2013-10-31 03:47:23 +0200 | 
| commit | f72488d60915f2f77234bc75ccfd604cc6a4143f (patch) | |
| tree | 70f3ebbc56267f6338f8a7635587c0ea7fb0596f /docs/api-guide/authentication.md | |
| parent | 7ef83cf020b7f5e80e0bead31e72541bf720fc7f (diff) | |
| download | django-rest-framework-f72488d60915f2f77234bc75ccfd604cc6a4143f.tar.bz2 | |
Updated OAuth2 authentication docs.
Diffstat (limited to 'docs/api-guide/authentication.md')
| -rwxr-xr-x | docs/api-guide/authentication.md | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 7caeac1e..1a1c68b8 100755 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -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')), | 
