From f6ac733c311f43035ec6d4ad4576b939d62fc9ea Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Thu, 8 Oct 2015 11:21:26 +0200 Subject: [PATCH] Status message added when user refuse to consent or cancel authentication --- src/authentic2/idp/saml/saml2_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentic2/idp/saml/saml2_endpoints.py b/src/authentic2/idp/saml/saml2_endpoints.py index a85d783..6cc66b5 100644 --- a/src/authentic2/idp/saml/saml2_endpoints.py +++ b/src/authentic2/idp/saml/saml2_endpoints.py @@ -594,13 +594,13 @@ def continue_sso(request): if 'cancel' in request.GET: logger.info('login canceled') set_saml2_response_responder_status_code(login.response, - lasso.SAML2_STATUS_CODE_REQUEST_DENIED) + lasso.SAML2_STATUS_CODE_REQUEST_DENIED, "User canceled login process".decode('utf-8')) return finish_sso(request, login) if consent_answer == 'refused': logger.info("consent answer treatment, the user " "refused, return request denied to the requester") set_saml2_response_responder_status_code(login.response, - lasso.SAML2_STATUS_CODE_REQUEST_DENIED) + lasso.SAML2_STATUS_CODE_REQUEST_DENIED, "User refused to consent".decode('utf-8')) return finish_sso(request, login) if consent_answer == 'accepted': logger.info("consent answer treatment, the user " -- 2.5.3