Skip to content

Commit ff726aa

Browse files
committed
Merge pull request #2382 from JocelynDelalande/patch-1
fixed doc : DEFAULT_AUTHENTICATION_CLASSES -> DEFAULT_AUTHENTICATION
2 parents e600209 + fe92a2c commit ff726aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-guide/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The value of `request.user` and `request.auth` for unauthenticated requests can
3434

3535
## Setting the authentication scheme
3636

37-
The default authentication schemes may be set globally, using the `DEFAULT_AUTHENTICATION` setting. For example.
37+
The default authentication schemes may be set globally, using the `DEFAULT_AUTHENTICATION_CLASSES` setting. For example.
3838

3939
REST_FRAMEWORK = {
4040
'DEFAULT_AUTHENTICATION_CLASSES': (
@@ -282,7 +282,7 @@ This authentication class depends on the optional [django-oauth2-provider][djang
282282
'provider.oauth2',
283283
)
284284

285-
Then add `OAuth2Authentication` to your global `DEFAULT_AUTHENTICATION` setting:
285+
Then add `OAuth2Authentication` to your global `DEFAULT_AUTHENTICATION_CLASSES` setting:
286286

287287
'DEFAULT_AUTHENTICATION_CLASSES': (
288288
'rest_framework.authentication.OAuth2Authentication',

0 commit comments

Comments
 (0)