Merge branch 'release/v13.70'
This commit is contained in:
@@ -417,7 +417,7 @@ OAUTH2_PROVIDER = {
|
|||||||
'APPLICATION_MODEL': 'oauth2_provider.Application',
|
'APPLICATION_MODEL': 'oauth2_provider.Application',
|
||||||
'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken',
|
'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken',
|
||||||
'ACCESS_TOKEN_EXPIRE_SECONDS': 3600,
|
'ACCESS_TOKEN_EXPIRE_SECONDS': 3600,
|
||||||
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
|
#'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -431,8 +431,9 @@ REST_FRAMEWORK = {
|
|||||||
# 'rest_framework.permissions.DjangoModelPermissions'
|
# 'rest_framework.permissions.DjangoModelPermissions'
|
||||||
],
|
],
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||||
'rest_framework.authentication.BasicAuthentication',
|
# 'rest_framework.authentication.BasicAuthentication',
|
||||||
'rest_framework.authentication.SessionAuthentication',
|
# 'rest_framework.authentication.SessionAuthentication',
|
||||||
|
# 'rest_framework.authentication.TokenAuthentication',
|
||||||
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
||||||
),
|
),
|
||||||
'PAGE_SIZE': 20,
|
'PAGE_SIZE': 20,
|
||||||
|
|||||||
Reference in New Issue
Block a user