fix: auth顺序调整
This commit is contained in:
parent
6e46c063b9
commit
633b06b0d9
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue