首页 > TAG信息列表 > BasicAuthentication

Django REST framework之BasicAuthentication

目的 一直用Token做Django REST API的验证方式,突然有个低安全要求的应用,只用用户名密码来访问。 from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.response