Skip to content

Commit

Permalink
Merge pull request #25 from petrjasek/uat
Browse files Browse the repository at this point in the history
add auth provider config
  • Loading branch information
petrjasek authored Feb 29, 2024
2 parents 5b207e6 + 982a97a commit f8cac13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
})

0 comments on commit f8cac13

Please sign in to comment.