From 982a97a54dd260286d015cc7578e932c5e68a49b Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Wed, 28 Feb 2024 17:10:24 +0100 Subject: [PATCH] add auth provider config STTNHUB-329 --- server/settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/settings.py b/server/settings.py index 601e54a..8fa5571 100644 --- a/server/settings.py +++ b/server/settings.py @@ -2,12 +2,14 @@ import pathlib from flask_babel import lazy_gettext +from newsroom.types import AuthProviderType from newsroom.web.default_settings import ( ELASTICSEARCH_SETTINGS, BLUEPRINTS as DEFAULT_BLUEPRINT, CORE_APPS as DEFAULT_CORE_APPS, CELERY_BEAT_SCHEDULE as CELERY_BEAT_SCHEDULE_DEFAULT, CLIENT_LOCALE_FORMATS, + AUTH_PROVIDERS, ) SERVER_PATH = pathlib.Path(__file__).resolve().parent @@ -195,3 +197,9 @@ if os.environ.get("ELASTICSEARCH_TRACK_TOTAL_HITS") else True ) + +AUTH_PROVIDERS.append({ + "_id": "azure", + "name": lazy_gettext("Azure"), + "auth_type": AuthProviderType.SAML.value, +})