Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR BASIC

basic authentication in REST api Dajngo

REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'rest_framework.authentication.BasicAuthentication',
        'rest_framework.authentication.SessionAuthentication',
    ]
}
Source by www.django-rest-framework.org #
 
PREVIOUS NEXT
Tagged: #basic #authentication #REST #api #Dajngo
ADD COMMENT
Topic
Name
1+4 =