alex_dimov
11/24/2022, 10:42 AMclient.py
I overridden the http_headers function
@property
def http_headers(self) -> dict:
"""Return the http headers needed."""
headers = {}
if "user_agent" in self.config:
headers["User-Agent"] = self.config.get("user_agent")
if "client_id" in self.config:
headers["ClientId"] = self.config.get("client_id")
# If not using an authenticator, you may also provide inline auth headers:
# headers["Private-Token"] = self.config.get("auth_token")
return headers
I expected that on a request to get a token using the OAuthAuthenticator class, headers["ClientId"] would be automatically added to the request, but now this does not happen