aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2013-11-02 02:24:08 -0700
committerTom Christie2013-11-02 02:24:08 -0700
commit003b9dda342e1fbb9b482a3103599e62cc458911 (patch)
tree7567280d3c704a9244571295b46a5602c7f3cad9 /docs
parent5e0538fcda75eed82ed183c7c4dcfcda5ad35d5f (diff)
parentf72488d60915f2f77234bc75ccfd604cc6a4143f (diff)
downloaddjango-rest-framework-003b9dda342e1fbb9b482a3103599e62cc458911.tar.bz2
Merge pull request #1207 from erkarl/master
Updated OAuth2 authentication docs.
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/api-guide/authentication.md6
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')),