0001-Status-message-added-when-user-refuse-to-consent-or-.patch
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) |
|
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) |
|
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 |
- |