如何在气流2.1.0版本中启用提供的后端身份验证?

发布于 2025-02-03 12:35:25 字数 79 浏览 0 评论 0 原文

我最近安装了气流2.1.0版本。但是无法找到一个选项,可以像旧版本一样启用使用提供的后端的气流登录身份验证。您能帮助我提供实现这一目标的步骤吗?

I have installed Airflow 2.1.0 version recently. But unable to find an option to enable airflow login authentication with supplied backend like in older versions. Can you anyone help me in providing steps to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇纵 2025-02-10 12:35:25

由于AirFlow 2.0,Airffore的UI基本验证是默认行为。您可以咨询以下文档以阅读以下内容:

如果要使用不同的安全后端,则需要在 $ airflow_home dir, webserver_config上提供附加的配置文件。 py 。它将将其配置加载到烧瓶应用程序中,并具有定义各种安全后端的能力。

一些链接:

  1. flask-appbuilder文档
  2. //github.com/apache/airflow/blob/main/airflow/config_templates/default_webserver_config.py.

Since Airflow 2.0, Airflow's basic auth for the UI is the default behavior. You can consult the following documentation to read that:
https://airflow.apache.org/docs/apache-airflow/stable/security/webserver.html

If you want to use different security backends, you will need to provide an additional configuration file at your $AIRFLOW_HOME dir, the webserver_config.py. It will load its configuration to Flask-AppBuilder, and have the ability to define various security backends.

Some links:

  1. Airflow documentation on Other Security Methods
  2. Flask-AppBuilder documentation
  3. example webserver_config.py file from Airflow's repository
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文