You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/01 07:14:11 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #15605: Update SimpleHttpOperator to take auth type object

uranusjr commented on a change in pull request #15605:
URL: https://github.com/apache/airflow/pull/15605#discussion_r624435464



##########
File path: airflow/providers/http/operators/http.py
##########
@@ -84,6 +88,7 @@ def __init__(
         extra_options: Optional[Dict[str, Any]] = None,
         http_conn_id: str = 'http_default',
         log_response: bool = False,
+        auth_type: Any = HTTPBasicAuth,

Review comment:
       ```suggestion
           auth_type: Type[AuthBase] = HTTPBasicAuth,
   ```
   
   See https://docs.python-requests.org/en/master/user/authentication/#new-forms-of-authentication




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org