我按照文档中提供的步骤操作:https : //airflow.apache.org/security.html#google-authentication
完成所有步骤并重新启动网络服务器后。我没有看到登录页面有任何区别,它仍然要求我进行密码验证。我不确定如何在网页上获取 google 登录选项。我在网络服务器日志上没有收到任何错误。
Configuration=> airflow.cfg:
authenticate = True
#auth_backend = airflow.contrib.auth.backends.password_auth
auth_backend = airflow.contrib.auth.backends.google_auth
[google]
client_id = <client id>
client_secret = <secret key>
oauth_callback_route = /oauth2callback
domain = <domain_name>.com
Run Code Online (Sandbox Code Playgroud)