restframework的内置认证类

restframework的内置认证类
认证类必须继承:from rest_framework.authentication import BaseAuthentication
其他认证类:
from rest_framework.authentication import BasicAuthentication
from rest_framework.authentication import SessionAuthentication
from rest_framework.authentication import TokenAuthentication
from rest_framework.authentication import RemoteUserAuthentication

猜你喜欢

转载自blog.csdn.net/study_in/article/details/84888904