File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ The value of `request.user` and `request.auth` for unauthenticated requests can
34
34
35
35
## Setting the authentication scheme
36
36
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.
38
38
39
39
REST_FRAMEWORK = {
40
40
'DEFAULT_AUTHENTICATION_CLASSES': (
@@ -282,7 +282,7 @@ This authentication class depends on the optional [django-oauth2-provider][djang
282
282
'provider.oauth2',
283
283
)
284
284
285
- Then add ` OAuth2Authentication ` to your global ` DEFAULT_AUTHENTICATION ` setting:
285
+ Then add ` OAuth2Authentication ` to your global ` DEFAULT_AUTHENTICATION_CLASSES ` setting:
286
286
287
287
'DEFAULT_AUTHENTICATION_CLASSES': (
288
288
'rest_framework.authentication.OAuth2Authentication',
You can’t perform that action at this time.
0 commit comments