My airflow version is v.1.10.1 and I am using python 3.5.2
I tried user._set_password but after looking at the users db table the password field is null…
After looking at the source, the following works for me.
[code] from flask_bcrypt import generate_password_hash user._password = generate_password_hash(‘your_password’, 12) [/code]
Be sure to use SSL.
Ref: https://airflow.apache.org/security.html https://stackoverflow.com/questions/48075826/airflow-authentication-setups-fails-with-attributeerror-cant-set-attribute/48946256