prg.dev
prg.dev

Reputation: 211

Django REST Framework API Key

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 :( enter image description here

Upvotes: 0

Views: 866

Answers (1)

Timotius Giovandi
Timotius Giovandi

Reputation: 1

my API key is 41 digits. please make sure you use the key correctly (not only the prefix)

Upvotes: 0

Related Questions