This commit is contained in:
parent
59c63f28de
commit
4c57eecdbc
@ -41,9 +41,7 @@ CORS_ALLOW_ALL_ORIGINS = True
|
|||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||||
'rest_framework.authentication.SessionAuthentication',
|
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
||||||
'rest_framework.authentication.TokenAuthentication',
|
|
||||||
|
|
||||||
],
|
],
|
||||||
'DEFAULT_PERMISSION_CLASSES': [
|
'DEFAULT_PERMISSION_CLASSES': [
|
||||||
'rest_framework.permissions.IsAuthenticated',
|
'rest_framework.permissions.IsAuthenticated',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user