Coverage for airflow : 76%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
""" Authentication is implemented using flask_login and different environments can implement their own login mechanisms by providing an `airflow_login` module in their PYTHONPATH. airflow_login should be based off the `airflow.www.login` """
auth_backend = configuration.get('webserver', 'auth_backend') except configuration.AirflowConfigException: if configuration.getboolean('webserver', 'AUTHENTICATE'): logging.warning("auth_backend not found in webserver config reverting to *deprecated*" " behavior of importing airflow_login") auth_backend = "airflow_login"
global login except ImportError as err: logging.critical( "Cannot import authentication module %s. " "Please correct your authentication backend or disable authentication: %s", auth_backend, err ) if configuration.getboolean('webserver', 'AUTHENTICATE'): raise AirflowException("Failed to import authentication backend")
self.namespace = namespace
|