chore(app): Disable SAML auth for now
This does not work, and quite a bit of time will be necessary to fix it
This commit is contained in:
parent
faa8ea051a
commit
5a84ea6e0f
1 changed files with 47 additions and 45 deletions
|
@ -48,7 +48,7 @@ INSTALLED_APPS = [
|
|||
"allauth.account",
|
||||
"allauth.socialaccount",
|
||||
"allauth.socialaccount.providers.openid_connect",
|
||||
"allauth.socialaccount.providers.saml",
|
||||
# "allauth.socialaccount.providers.saml",
|
||||
"allauth_cas",
|
||||
"shared.cas",
|
||||
# Main app
|
||||
|
@ -179,50 +179,52 @@ SOCIALACCOUNT_PROVIDERS = {
|
|||
"settings": {"color": "danger"},
|
||||
},
|
||||
},
|
||||
"saml": {
|
||||
"APPS": [
|
||||
{
|
||||
"provider_id": "ens_saml",
|
||||
"name": "SSO ENS",
|
||||
"client_id": "ens",
|
||||
"settings": {
|
||||
"color": "info",
|
||||
"idp": {
|
||||
"entity_id": "https://federation-test.ens.psl.eu/idp/shibboleth",
|
||||
"metadata_url": "https://federation-test.ens.psl.eu/idp/shibboleth",
|
||||
},
|
||||
# Our configuration
|
||||
"sp": {
|
||||
"entity_id": "https://profil.dgnum.eu/accounts/saml/ens/metadata",
|
||||
},
|
||||
"advanced": {
|
||||
"authn_request_signed": True,
|
||||
"metadata_signed": True,
|
||||
"private_key": credentials["X509_KEY"],
|
||||
"x509cert": credentials["X509_CERT"],
|
||||
"want_assertion_encrypted": True,
|
||||
},
|
||||
"organization": {
|
||||
"en": {
|
||||
"name": "Délégation Générale Numérique",
|
||||
"displayname": "Délégation Générale Numérique",
|
||||
"url": "https://dgnum.eu",
|
||||
},
|
||||
},
|
||||
"contact_person": {
|
||||
"technical": {
|
||||
"givenName": "Tom Hubrecht",
|
||||
"emailAddress": "admins@dgnum.eu",
|
||||
},
|
||||
"administrative": {
|
||||
"givenName": "Jean-Marc Gailis",
|
||||
"emailAddress": "bureau@dgnum.eu",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
# "saml": {
|
||||
# "APPS": [
|
||||
# {
|
||||
# "provider_id": "ens_saml",
|
||||
# "name": "SSO ENS",
|
||||
# "client_id": "ens",
|
||||
# "settings": {
|
||||
# "color": "info",
|
||||
# "idp": {
|
||||
# "entity_id": "https://federation-test.ens.psl.eu/idp/shibboleth",
|
||||
# "metadata_url": "https://federation-test.ens.psl.eu/idp/shibboleth",
|
||||
# },
|
||||
# # Our configuration
|
||||
# "sp": {
|
||||
# "entity_id": "https://profil.dgnum.eu/accounts/saml/ens/metadata",
|
||||
# },
|
||||
# "advanced": {
|
||||
# "authn_request_signed": True,
|
||||
# "metadata_signed": True,
|
||||
# "private_key": credentials["X509_KEY"],
|
||||
# "x509cert": credentials["X509_CERT"],
|
||||
# "want_assertion_encrypted": False,
|
||||
# "want_attribute_statement": True,
|
||||
# "want_name_id": True,
|
||||
# },
|
||||
# "organization": {
|
||||
# "en": {
|
||||
# "name": "Délégation Générale Numérique",
|
||||
# "displayname": "Délégation Générale Numérique",
|
||||
# "url": "https://dgnum.eu",
|
||||
# },
|
||||
# },
|
||||
# "contact_person": {
|
||||
# "technical": {
|
||||
# "givenName": "Tom Hubrecht",
|
||||
# "emailAddress": "admins@dgnum.eu",
|
||||
# },
|
||||
# "administrative": {
|
||||
# "givenName": "Jean-Marc Gailis",
|
||||
# "emailAddress": "bureau@dgnum.eu",
|
||||
# },
|
||||
# },
|
||||
# },
|
||||
# }
|
||||
# ],
|
||||
# },
|
||||
}
|
||||
|
||||
SOCIALACCOUNT_ONLY = True
|
||||
|
|
Loading…
Reference in a new issue