From e0acb80f5d9a4a3769213db3c39e52d8e6100c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 17 Feb 2023 17:52:20 +0100 Subject: [PATCH] feat(plugin) fix get right instance auf auth_provider --- flaschengeist/controller/pluginController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/controller/pluginController.py b/flaschengeist/controller/pluginController.py index 5143482..0c0b22f 100644 --- a/flaschengeist/controller/pluginController.py +++ b/flaschengeist/controller/pluginController.py @@ -23,7 +23,7 @@ __required_plugins = ["users", "roles", "scheduler", "auth"] def get_authentication_provider(): - return [plugin for plugin in get_loaded_plugins().values() if isinstance(plugin, AuthPlugin)] + return [current_app.config["FG_PLUGINS"][plugin.name] for plugin in get_loaded_plugins().values() if isinstance(plugin, AuthPlugin)] def get_loaded_plugins(plugin_name: str = None):