We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to call my github instance with additional custom headers.
E.g. there are authorizations methods that use other headers than Authorization.
Authorization
The text was updated successfully, but these errors were encountered:
This is not possible right now.
Given these headers are specifically need for authorization, the use of Auth should be refactored for your use case.
Auth
Instead of (in Requester)
Requester
if self.__auth is not None: requestHeaders["Authorization"] = f"{self.__auth.token_type} {self.__auth.token}"
the Auth should integrate like
if self.__auth is not None: self.__auth.authenticate(requestHeaders)
where default implementation would be
def authenticate(headers): headers["Authorization"] = f"{self.__auth.token_type} {self.__auth.token}"
You could then implement your own Auth setting any header that you need for authentication.
Could be combined with #2811
if self.__auth is not None: self.__auth.authenticate(session)
Sorry, something went wrong.
No branches or pull requests
I need to call my github instance with additional custom headers.
E.g. there are authorizations methods that use other headers than
Authorization
.The text was updated successfully, but these errors were encountered: