diff --git a/airflow/www/extensions/init_appbuilder.py b/airflow/www/extensions/init_appbuilder.py index 9c2948e32490..bbc6343fcf05 100644 --- a/airflow/www/extensions/init_appbuilder.py +++ b/airflow/www/extensions/init_appbuilder.py @@ -586,6 +586,10 @@ def security_converge(self, dry=False) -> dict: def get_url_for_login_with(self, next_url: str | None = None) -> str: return get_auth_manager().get_url_login(next_url=next_url) + @property + def get_url_for_login(self): + return get_auth_manager().get_url_login() + @property def get_url_for_index(self): return url_for(f"{self.indexview.endpoint}.{self.indexview.default_view}") diff --git a/docs/apache-airflow/security/webserver.rst b/docs/apache-airflow/security/webserver.rst index 2862f7073ac3..9e4c947ee7a8 100644 --- a/docs/apache-airflow/security/webserver.rst +++ b/docs/apache-airflow/security/webserver.rst @@ -176,7 +176,7 @@ Here is an example of what you might have in your webserver_config.py: AUTH_ROLES_SYNC_AT_LOGIN = True # Checks roles on every login AUTH_USER_REGISTRATION = True # allow users who are not already in the FAB DB to register # Make sure to replace this with the path to your security manager class - FAB_SECURITY_MANAGER_CLASS = "your_module.your_security_manager_class" + SECURITY_MANAGER_CLASS = "your_module.your_security_manager_class" AUTH_ROLES_MAPPING = { "Viewer": ["Viewer"], "Admin": ["Admin"],