fix: auth顺序调整

This commit is contained in:
caoqianming 2024-09-20 05:15:17 +00:00
parent 6e46c063b9
commit 633b06b0d9
1 changed files with 1 additions and 1 deletions

View File

@ -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'