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/passbook/channels/out_saml/apps.py

27 lines
803 B
Python

"""passbook mod saml_idp app config"""
from importlib import import_module
from django.apps import AppConfig
from django.conf import settings
from structlog import get_logger
LOGGER = get_logger()
class PassbookOutletSAMLConfig(AppConfig):
"""passbook saml_idp app config"""
name = "passbook.channels.out_saml"
label = "passbook_channels_out_saml"
verbose_name = "passbook Outlets.SAML"
mountpoint = "application/saml/"
def ready(self):
"""Load source_types from config file"""
for source_type in settings.PASSBOOK_PROVIDERS_SAML_PROCESSORS:
try:
import_module(source_type)
LOGGER.info("Loaded SAML Processor", processor_class=source_type)
except ImportError as exc:
LOGGER.debug(exc)