Customization of the Authorization Header in authentication.py #9463
Unanswered
HtmlMak
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
I may have misunderstood what you're asking for, but there is another class for basic auth: django-rest-framework/rest_framework/authentication.py Lines 53 to 59 in ccfe0a9 If you need something more advanced/custom, it should be pretty simple to write your own auth class, you should make sure it extends the django-rest-framework/rest_framework/authentication.py Lines 33 to 50 in ccfe0a9 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the file authentication.py of the Django REST Framework, located at this line, it would be beneficial to introduce the ability to customize the authorization header.
Currently, the authorization header is hardcoded, which can be limiting in scenarios where the application is secured with additional basic authentication, such as in test environments. By allowing the authorization header to be configurable, it would provide greater flexibility for various use cases and simplify the process of adjusting the header as needed.
Beta Was this translation helpful? Give feedback.
All reactions