From 633b06b0d9db8686f7c9bca8500652bb28547494 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 20 Sep 2024 05:15:17 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20auth=E9=A1=BA=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/server/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_server/server/settings.py b/test_server/server/settings.py index 5064bf0..fda23b2 100644 --- a/test_server/server/settings.py +++ b/test_server/server/settings.py @@ -143,9 +143,9 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'dist/static') REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ + 'crm.authentication.MyTokenAuthentication', 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', - 'crm.authentication.MyTokenAuthentication' ], 'DEFAULT_PERMISSION_CLASSES':[ 'crm.permission.MyPermission'