Question : basic authentication in REST api Dajngo
Answered by : victorious-vendace-c4luz8fbospt
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', ]
}
Source : https://www.django-rest-framework.org/api-guide/authentication/ | Last Update : Tue, 29 Dec 20