[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth
已经添加
[root@ip-173-16-0-34 airflow]# python
Python 3.8.5 (default, Feb 18 2021, 01:24:20)
[GCC 7.3.1 20180712 (Red Hat 7.3.1-12)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import airflow
>>> from airflow import models, settings
>>> from airflow.contrib.auth.backends.password_auth import PasswordUser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'airflow.contrib.auth'
>>>