diff options
| author | Tom Christie | 2015-01-07 09:55:18 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-07 09:55:18 +0000 |
| commit | ff726aa44cc8dc7374a0c3c88139271a36dd2f8a (patch) | |
| tree | c8c5f2a19f65b2585365b2d6d50b54bd557260b2 /docs | |
| parent | e6002099ca81893f9d571bb4af4172a29605c069 (diff) | |
| parent | fe92a2cfee9e3a20e913500802d98a15e8b70780 (diff) | |
| download | django-rest-framework-ff726aa44cc8dc7374a0c3c88139271a36dd2f8a.tar.bz2 | |
Merge pull request #2382 from JocelynDelalande/patch-1
fixed doc : DEFAULT_AUTHENTICATION_CLASSES -> DEFAULT_AUTHENTICATION
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/api-guide/authentication.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index b04858e3..1222dbf0 100755 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -34,7 +34,7 @@ The value of `request.user` and `request.auth` for unauthenticated requests can ## Setting the authentication scheme -The default authentication schemes may be set globally, using the `DEFAULT_AUTHENTICATION` setting. For example. +The default authentication schemes may be set globally, using the `DEFAULT_AUTHENTICATION_CLASSES` setting. For example. REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( @@ -282,7 +282,7 @@ This authentication class depends on the optional [django-oauth2-provider][djang 'provider.oauth2', ) -Then add `OAuth2Authentication` to your global `DEFAULT_AUTHENTICATION` setting: +Then add `OAuth2Authentication` to your global `DEFAULT_AUTHENTICATION_CLASSES` setting: 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.OAuth2Authentication', |
