From b1bf2f0854ba58a0b4d9b7e739255f9eb00bc97e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 26 Jul 2020 21:09:36 +0200 Subject: [PATCH] test --- rowsandall_app/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index b1d023ad..acdcdf53 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -417,7 +417,7 @@ OAUTH2_PROVIDER = { 'APPLICATION_MODEL': 'oauth2_provider.Application', 'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken', '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' ], 'DEFAULT_AUTHENTICATION_CLASSES': ( - 'rest_framework.authentication.BasicAuthentication', - 'rest_framework.authentication.SessionAuthentication', +# 'rest_framework.authentication.BasicAuthentication', +# 'rest_framework.authentication.SessionAuthentication', +# 'rest_framework.authentication.TokenAuthentication', 'oauth2_provider.contrib.rest_framework.OAuth2Authentication', ), 'PAGE_SIZE': 20,