Projet

Général

Profil

0002-settings-add-mellon-authentication-levels-mapping.patch

Valentin Deniaud, 23 avril 2019 11:41

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH 2/4] settings: add mellon authentication levels mapping
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

il y a sûrement un meilleur endroit où mettre ça, genre dans hobo
 chrono/settings.py | 6 ++++++
 1 file changed, 6 insertions(+)
chrono/settings.py
160 160

  
161 161
MELLON_IDENTITY_PROVIDERS = []
162 162

  
163
MELLON_AUTH_LEVELS_MAPPING = {
164
    'https://entrouvert.org/auth-level/1': 1,
165
    'https://entrouvert.org/auth-level/2': 2,
166
    'https://entrouvert.org/auth-level/3': 3,
167
}
168

  
163 169
# proxies argument passed to all python-request methods
164 170
# (see http://docs.python-requests.org/en/master/user/advanced/#proxies)
165 171
REQUESTS_PROXIES = None
166
-