【问题标题】:How to support both OAuth and Basic Auth in FlaskAppBuilder in Superset如何在 Superset 的 FlaskAppBuilder 中同时支持 OAuth 和 Basic Auth
【发布时间】:2020-10-18 09:43:54
【问题描述】:

我已经按照https://medium.com/@aungmt/superset-with-google-oauth-3ba7a1c1f459 的说明设置了带有 Google Oauth 的 Apache Superset。它工作得很好。 但是,是否可以同时拥有 OAuth 和开箱即用的基本身份验证?我想支持两种身份验证模式。

【问题讨论】:

    标签: apache-superset flask-appbuilder


    【解决方案1】:

    您不能同时启用两种身份验证方法模式。
    请参阅 flask-appbuilder 文档(超集基于 flask-appbuilder):“该框架有 5 种身份验证方法,您选择其中一种,您可以在 config.py 上配置要使用的方法” [https://flask- appbuilder.readthedocs.io/en/latest/security.html#authentication-methods]。

    该逻辑在这里定义:https://flask-appbuilder.readthedocs.io/en/latest/_modules/flask_appbuilder/security/manager.html

    话虽如此,如果您想扩展代码,应该可以通过创建一个自定义 SecurityManager 来重用这两个逻辑。
    https://flask-appbuilder.readthedocs.io/en/latest/security.html#your-custom-securityhttps://medium.com/@sairamkrish/apache-superset-custom-authentication-and-integrate-with-other-micro-services-8217956273c1

    【讨论】:

      猜你喜欢
      • 2013-07-15
      • 1970-01-01
      • 2018-05-27
      • 2011-09-18
      • 2012-09-11
      • 1970-01-01
      • 2020-08-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多