diff --git a/conf/settings.py b/conf/settings.py index 2ce83fe..a1daedc 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -40,26 +40,6 @@ SECRET_KEY = __get_or_create_secret(FINALPATH / 'secret.txt') # /opt/yunohost/$ # INSTALLED_APPS.append('') -MIDDLEWARE.insert( - MIDDLEWARE.index('django.contrib.auth.middleware.AuthenticationMiddleware') + 1, - # login a user via HTTP_REMOTE_USER header from SSOwat: - 'django_yunohost_integration.sso_auth.auth_middleware.SSOwatRemoteUserMiddleware', -) - -# Keep ModelBackend around for per-user permissions and superuser -AUTHENTICATION_BACKENDS = ( - # Authenticate via SSO and nginx 'HTTP_REMOTE_USER' header: - 'django_yunohost_integration.sso_auth.auth_backend.SSOwatUserBackend', - # - # Fallback to normal Django model backend: - 'django.contrib.auth.backends.ModelBackend', -) - -LOGIN_REDIRECT_URL = None -LOGIN_URL = '/yunohost/sso/' -LOGOUT_REDIRECT_URL = '/yunohost/sso/' -# /yunohost/sso/?action=logout - # -----------------------------------------------------------------------------