From 4b71bbca3a8adf892bf83d9bde6aca387dd702a5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 18 May 2015 14:46:16 +0200 Subject: [PATCH] views: in sso_failure() the call to self.get_id() could never work, replace by utils.get_idp() In SSO response treatment we do not know anymore the requested IdP from the query string we must look in the LassoLogin object. fixes #7271 --- mellon/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellon/views.py b/mellon/views.py index b9289d8..7632fd3 100644 --- a/mellon/views.py +++ b/mellon/views.py @@ -64,7 +64,7 @@ class LoginView(LogMixin, View): def sso_failure(self, request, login, idp_message, status_codes): '''show error message to user after a login failure''' - idp = self.get_idp(request) + idp = utils.get_idp(login.remoteProviderId) error_url = utils.get_setting(idp, 'ERROR_URL') error_redirect_after_timeout = utils.get_setting(idp, 'ERROR_REDIRECT_AFTER_TIMEOUT') if error_url: