Project

General

Profile

0001-7879-adding-translation-to-SAML-response-statusMessa.patch

Josué Kouka, 08 October 2015 11:56 AM

Download (1.54 KB)

View differences:

Subject: [PATCH] #7879: adding translation to SAML response statusMessage

 src/authentic2/idp/saml/saml2_endpoints.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2/idp/saml/saml2_endpoints.py
594 594
    if 'cancel' in request.GET:
595 595
        logger.info('login canceled')
596 596
        set_saml2_response_responder_status_code(login.response,
597
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, "User canceled login process".decode('utf-8'))
597
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User canceled login process'.decode('utf-8')))
598 598
        return finish_sso(request, login)
599 599
    if consent_answer == 'refused':
600 600
        logger.info("consent answer treatment, the user "
601 601
            "refused, return request denied to the requester")
602 602
        set_saml2_response_responder_status_code(login.response,
603
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, "User refused to consent".decode('utf-8'))
603
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User refused to consent'.decode('utf-8')))
604 604
        return finish_sso(request, login)
605 605
    if consent_answer == 'accepted':
606 606
        logger.info("consent answer treatment, the user "
607
-