Closed skybrd closed 12 months ago
@skybrd Hi
If I’m correct, this relates to #173 which as been dealt with, the fix should be released soon — see #248.
I am closing this for now but if you think this will not be fixed by the pending fix, we can discuss further.
thanks!
Describe the bug API request with enabled auth
permission_classes = [HasAPIKey]
process about a second, without - 14 msTo Reproduce Steps to reproduce the behavior:
pip install "djangorestframework-api-key==2.3.0"
permission_classes = [HasAPIKey]
to ViewSet class API handlerExpected behavior Expected to work without significant delays.
Desktop (please complete the following information):
How did I fix it As a quick solution, I removed the recursive call in
models.py
,class BaseAPIKeyManager
- methodget_from_key
callis_valid
and vice versa. Perhaps it was a mistake - now all works correct, the request is processed in 14 ms