From 3ff074f954a718c55ac80e172078afa689c01050 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 16 Apr 2019 17:57:34 +0200 Subject: [PATCH] settings: define mellon authentication levels mapping --- chrono/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrono/settings.py b/chrono/settings.py index 2532db9..f82cfbf 100644 --- a/chrono/settings.py +++ b/chrono/settings.py @@ -160,6 +160,12 @@ MELLON_USERNAME_TEMPLATE = '{attributes[name_id_content]}' MELLON_IDENTITY_PROVIDERS = [] +MELLON_AUTH_LEVELS_MAPPING = { + 'https://entrouvert.org/auth-level/1': 1, + 'https://entrouvert.org/auth-level/2': 2, + 'https://entrouvert.org/auth-level/3': 3, +} + # proxies argument passed to all python-request methods # (see http://docs.python-requests.org/en/master/user/advanced/#proxies) REQUESTS_PROXIES = None -- 2.20.1