diff --git a/poulpe/settings/common.py b/poulpe/settings/common.py index 5d458b6..52b82ea 100644 --- a/poulpe/settings/common.py +++ b/poulpe/settings/common.py @@ -186,11 +186,12 @@ SITE_ID = 1 CAS_SERVER_URL = "https://cas.eleves.ens.fr/" # SPI CAS CAS_VERIFY_URL = "https://cas.eleves.ens.fr/" +CAS_VERSION = "2" CAS_IGNORE_REFERER = True +CAS_LOGIN_MSG = None CAS_REDIRECT_URL = reverse_lazy('shared:home') CAS_EMAIL_FORMAT = "%s@clipper.ens.fr" CAS_FORCE_CHANGE_USERNAME_CASE = "lower" -CAS_VERSION = 'CAS_2_SAML_1_0' LOGIN_URL = reverse_lazy('account_login') LOGOUT_URL = reverse_lazy('account_logout') @@ -214,4 +215,6 @@ SOCIALACCOUNT_PROVIDERS = { ACCOUNT_ADAPTER = 'shared.allauth_adapter.AccountAdapter' -SOCIALACCOUNT_ADAPTER='allauth_ens.adapter.LongTermClipperAccountAdapter' +#SOCIALACCOUNT_ADAPTER='allauth_ens.adapter.LongTermClipperAccountAdapter' +SOCIALACCOUNT_ADAPTER= 'shared.allauth_adapter.SocialAccountAdapter' +