Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

credential not provided when i try to sign up a new user django

To open up the API on non-authenticated users, you need to give it an empty list on authentication_classes:

from rest_framework.decorators import api_view, authentication_classes, permission_classes


@api_view(['GET'])
@authentication_classes([]) # Add this
@permission_classes([]) # Maybe add this too
def getProducts(request):
  ...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #credential #sign #user #django
ADD COMMENT
Topic
Name
2+6 =