providers/proxy: trigger proxy set_defaults task on startup
closes #3445 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0e9762072a
commit
f4441c9fcf
|
@ -28,7 +28,7 @@ class AuthentikFlowsConfig(ManagedAppConfig):
|
||||||
"""Load flows signals"""
|
"""Load flows signals"""
|
||||||
self.import_module("authentik.flows.signals")
|
self.import_module("authentik.flows.signals")
|
||||||
|
|
||||||
def reconcile_stages_loaded(self):
|
def reconcile_load_stages(self):
|
||||||
"""Ensure all stages are loaded"""
|
"""Ensure all stages are loaded"""
|
||||||
from authentik.flows.models import Stage
|
from authentik.flows.models import Stage
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
"""authentik Proxy app"""
|
"""authentik Proxy app"""
|
||||||
from django.apps import AppConfig
|
from authentik.blueprints.manager import ManagedAppConfig
|
||||||
|
|
||||||
|
|
||||||
class AuthentikProviderProxyConfig(AppConfig):
|
class AuthentikProviderProxyConfig(ManagedAppConfig):
|
||||||
"""authentik proxy app"""
|
"""authentik proxy app"""
|
||||||
|
|
||||||
name = "authentik.providers.proxy"
|
name = "authentik.providers.proxy"
|
||||||
label = "authentik_providers_proxy"
|
label = "authentik_providers_proxy"
|
||||||
verbose_name = "authentik Providers.Proxy"
|
verbose_name = "authentik Providers.Proxy"
|
||||||
|
default = True
|
||||||
|
|
||||||
|
def reconcile_trigger_proxy_set_defaults(self):
|
||||||
|
"""Trigger set_defaults task"""
|
||||||
|
from authentik.providers.proxy.tasks import proxy_set_defaults
|
||||||
|
|
||||||
|
proxy_set_defaults.delay()
|
||||||
|
|
Reference in New Issue