Xiaodong DENG created AIRFLOW-4803:
--------------------------------------

             Summary: Support more flexible auth for HTTP Hook/Operator/Sensor
                 Key: AIRFLOW-4803
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4803
             Project: Apache Airflow
          Issue Type: Improvement
          Components: hooks, operators
    Affects Versions: 1.10.3
            Reporter: Xiaodong DENG
            Assignee: Xiaodong DENG


Current situation:
 * Currently HTTP Hook/Operator/Sensor support authentication by specifying 
"login" and "password" in connection definitions
 * "login" and "password" can't be empty string, otherwise it will be 
considered as "None"

(current code: 
[https://github.com/apache/airflow/blob/8644a6f94c345b10dce46b9c71a02c2c1285bc85/airflow/hooks/http_hook.py#L72])

 

However, there are a few limitations:
 * in some cases, either 'login' or "password" or both can be empty string (not 
"None") (for example, 
[https://www.cloudera.com/documentation/data-science-workbench/latest/topics/cdsw_rest_apis.html#start_job_python])
 * "requests" library actually supports much more flexible authentication 
[https://2.python-requests.org/en/master/user/authentication/]

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to