GitHub user dosubot[bot] added a comment to the discussion: How to enable both DB Authentication OR OAUTH simulatanously
<!-- Answer --> Currently, it is not possible to enable both DB Authentication and OAuth simultaneously in Apache Superset. Superset uses Flask-AppBuilder for authentication, which only supports one authentication method at a time. There is a feature request in the Flask-AppBuilder repository regarding this limitation: [Flask-AppBuilder issue #1924](https://github.com/dpgaspar/Flask-AppBuilder/issues/1924) <sup>[[1]](https://github.com/apache/superset/discussions/26088)</sup>. However, a suggested workaround is to create a custom security manager and add routes/views to handle multiple sign-in options. This involves overriding the logic in your custom security manager to explicitly define the logic for both OAuth and DB authentication <sup>[[2]](https://github.com/apache/superset/issues/8932)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ba8c10a8-3393-410d-b191-1846b2662ab3?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33031#discussioncomment-12760243 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
