middleware: do not apply autologin to mellon views (fixes #9131)

This commit is contained in:
Benjamin Dauvergne 2015-11-27 10:29:21 +01:00
parent ad2a575a35
commit 8da5807298
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ class PassiveAuthenticationMiddleware(object):
return response
def process_request(self, request):
# Skip mellon views
if request.resolver_match.url_name.startswith('mellon_'):
return
if not any(utils.get_idps()):
return
if not app_settings.OPENED_SESSION_COOKIE_NAME: