simpleui icon indicating copy to clipboard operation
simpleui copied to clipboard

启用DRF自带的TokenAuthentication功能后、无法正常使用管理用户的Token

Open showniu opened this issue 1 year ago • 0 comments

bug描述

  • *Bug description * *

简单的描述下遇到的bug: Briefly describe the bugs encountered: 启用了drf 自带的 tokenauth 后、drf 自带的后台可以正常为用户添加 Token、而simpleUI没有这个功能

  • 这是DRF默认的admin后台 image
  • 这是simpleUI的后台 image

重现步骤 ** repeat step ** 1. 2. 3.

环境 ** environment**

1.Operating System: (Windows/Linux/MacOS).... MacOS

2.Python Version: 3.10.0 3.Django Version: 4.1

4.SimpleUI Version: 2023.3.1

Description

INSTALLED_APPS = [
    'rest_framework.authtoken',
]
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
    )
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_framework.permissions.IsAuthenticated',
    )
}

showniu avatar Aug 23 '23 07:08 showniu