This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/authentik/outposts/apps.py

26 lines
654 B
Python
Raw Normal View History

2020-12-05 21:08:42 +00:00
"""authentik outposts app config"""
2020-09-02 22:04:12 +00:00
from importlib import import_module
from django.apps import AppConfig
from django.db import ProgrammingError
from structlog.stdlib import get_logger
LOGGER = get_logger()
2020-09-02 22:04:12 +00:00
2020-12-05 21:08:42 +00:00
class AuthentikOutpostConfig(AppConfig):
"""authentik outposts app config"""
2020-09-02 22:04:12 +00:00
2020-12-05 21:08:42 +00:00
name = "authentik.outposts"
label = "authentik_outposts"
verbose_name = "authentik Outpost"
2020-09-02 22:04:12 +00:00
def ready(self):
2020-12-05 21:08:42 +00:00
import_module("authentik.outposts.signals")
try:
from authentik.outposts.tasks import outpost_local_connection
outpost_local_connection.delay()
except ProgrammingError:
pass