From ff693a3ec0bfc880975534fd67b07487d119c187 Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Thu, 8 Oct 2015 11:45:43 +0200 Subject: [PATCH] #7879: adding translation to SAML response statusMessage --- 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 6cc66b5..0fe312c 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, "User canceled login process".decode('utf-8')) + 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, "User refused to consent".decode('utf-8')) + 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