Reputation: 211
I'm trying to use Django REST Framework API Key package. I installed it and configure it correctly. I need to mack HTTP request to endpoint that has permissions of HasAPIKey. {I need to pass key to access it }
firstly I create API key in the admin page. Then I tried to access with that API. and I git this error. "detail": "Authentication credentials were not provided."
I think that I don't configure the api key correctly. I don't know how to do it :(
Upvotes: 0
Views: 866
Reputation: 1
my API key is 41 digits. please make sure you use the key correctly (not only the prefix)
Upvotes: 0