diff --git a/django/sp_sso/sp_sso/settings.py b/django/sp_sso/sp_sso/settings.py index 0e05966..5365381 100644 --- a/django/sp_sso/sp_sso/settings.py +++ b/django/sp_sso/sp_sso/settings.py @@ -77,7 +77,6 @@ MELLON_ATTRIBUTE_MAPPING = { 'prenom': 'urn:oid:2.5.4.42', # givenName 'nom': 'urn:oid:2.5.4.4', # sn 'email' : 'urn:oid:0.9.2342.19200300.100.1.3', # mail - 'password' : 'password', 'ep_principal_name' : 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6', # eduPersonPrincipalName 's_etablissement' : 'urn:oid:1.3.6.1.4.1.7135.1.2.1.14', # supannEtablissement 'ep_primary_affiliation' : 'urn:oid:1.3.6.1.4.1.5923.1.1.1.5', # eduPersonPrimaryAffiliation @@ -92,11 +91,15 @@ MELLON_SUPERUSER_MAPPING = { 'is_superuser': 'true', } -MELLON_USERNAME_TEMPLATE = '{attributes[name_id_content]}' -MELLON_IDENTITY_PROVIDERS = [{ - 'METADATA_URL': 'http://idp-condorcet.dev.entrouvert.org/idp/saml2/metadata' -}] +MELLON_TRANSIENT_FEDERATION_ATTRIBUTE = 'urn:oid:1.3.6.1.4.1.5923.1.1.1.10' + +MELLON_IDENTITY_PROVIDERS = [ +{'METADATA_URL': 'http://idp-condorcet.dev.entrouvert.org/idp/saml2/metadata'}, +{'METADATA_URL': 'https://idp-campus-condorcet.renater.fr/idp/shibboleth'}, +{'METADATA_URL': 'https://shibboleth.ehess.fr/idp/shibboleth'}, +{'METADATA_URL': 'https://federation-identite.univ-paris13.fr/idp/shibboleth'} +] MELLON_DISCOVERY_SERVICE_URL = "https://discovery.renater.fr/test"