sirVir commented on code in PR #29206:
URL: https://github.com/apache/airflow/pull/29206#discussion_r1136804575
##########
airflow/providers/http/hooks/http.py:
##########
@@ -102,6 +113,10 @@ def get_conn(self, headers: dict[Any, Any] | None = None)
-> requests.Session:
self.base_url = self.base_url + ":" + str(conn.port)
if conn.login:
session.auth = self.auth_type(conn.login, conn.password)
+ elif self._auth_type and self.auth_args:
+ session.auth = self.auth_type(*self.auth_args)
+ elif self._auth_type:
+ session.auth = self.auth_type()
Review Comment:
Fair, this way we avoid adding more parameters to an already long list. Will
follow up with update soon.
What do you think about need of changing other tests because we change the
default `auth_type`? Should I proceed with adjusting them?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]