📝 `HttpBasicSyncAuth` and `HttpBasicAsyncAuth` must strictly configure `auth_scheme` prefix (#1330)
Currently HTTP-Basic auth is not strict about its
auth_scheme prefix.This would be a breaking change, I allow it.
Currently, we allow both header values:
some-login:password and Basic some-login:password. Which is not really cool:django-modern-rest/dmr/security/http.py
Lines 56 to 76 in a2d44b1
We must make this configurable, as all other auth classes do. This must require
auth_scheme: str = 'Basic' prefix by default.Also, we must update the OpenAPI description as well:
django-modern-rest/dmr/security/http.py
Lines 82 to 89 in a2d44b1
(please, do not take this issue before the 1st of September)
#feature #good_first_issue #help_wanted #security #opensource_september #django_modern_rest
sent via relator