How to activate authentication in Apache Airflow

后端 未结 3 630
耶瑟儿~
耶瑟儿~ 2021-02-05 19:49

Airflow version- 1.9.0

I have installed apache airflow and post configuration i am able to run sample DAG\'s with sequential executor.

Also, created new sample u

3条回答
  •  不思量自难忘°
    2021-02-05 20:49

    Check the following in your airflow.cfg file:

    [webserver]
    authenticate = True
    auth_backend = airflow.contrib.auth.backends.password_auth
    

    And also remember to Restart Airflow Webserver, if it still doesn't work, run airflow initdb and restart the webserver.

    Also, double-check in airflow.cfg file that it does not contain multiple configurations for authenticate or auth_backend. If there is more than one occurrence, than it can cause that issue.

    If necessary, install flask_bcrpyt package of python2.x/3.x For instance, $ python3.7 -m pip install flask_bcrypt

    Make sure you have an admin user created,

    airflow create_user -r Admin -u admin -e admin@acme.com -f admin -l user -p *****
    

提交回复
热议问题