I have been trying to get your library working with my own Django project for a while, but was always getting the 'Authentication credentials were not provided' message.
So I tried using your test project assuming something is wrong with my code but I am getting the same behaviour still.
To Reproduce
Steps to reproduce the behavior:
Download test project from this repo
1.Create a venv and install supports library versions
migrate
3.create a super user
4.log into Django admin and create an API key.
**Expected behavior**
I expected to get a "hello world" response
**Desktop (please complete the following information):**
- OS: MacOS
- Python Version: Python 3.8
- Django Version: 3.2
- DRF Version: 3.13.1
**Additional context**
I'm not sure if this is a BUG or if I am just passing the API Key incorrectly?
Describe the bug
I have been trying to get your library working with my own Django project for a while, but was always getting the 'Authentication credentials were not provided' message.
So I tried using your test project assuming something is wrong with my code but I am getting the same behaviour still.
To Reproduce Steps to reproduce the behavior:
Download test project from this repo 1.Create a venv and install supports library versions
import requests response = requests.get('http://127.0.0.1:8000/api/protected/object/', headers={'Authorization':'Api-Key fQozkhS6.iZ3h0Yi3epnYHkPkKuS5rWtxMY4HjH9w'}) print(response.json())