feat(plugin) fix get right instance auf auth_provider
This commit is contained in:
parent
c5436f22fa
commit
e0acb80f5d
|
@ -23,7 +23,7 @@ __required_plugins = ["users", "roles", "scheduler", "auth"]
|
||||||
|
|
||||||
|
|
||||||
def get_authentication_provider():
|
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):
|
def get_loaded_plugins(plugin_name: str = None):
|
||||||
|
|
Loading…
Reference in New Issue