Projet

Général

Profil

0001-idp-saml-do-not-modify-absent-response-on-ProfileInv.patch

Benjamin Dauvergne, 31 mai 2018 09:21

Télécharger (1,25 ko)

Voir les différences:

Subject: [PATCH] idp/saml: do not modify absent response on
 ProfileInvalidProtocolprofileError (fixes #24189)

On this path it's impossible to return an AuthnResponse as Lasso cannot
decide on the destination URL, as no protocol profile could be
determined.
 src/authentic2/idp/saml/saml2_endpoints.py | 1 -
 1 file changed, 1 deletion(-)
src/authentic2/idp/saml/saml2_endpoints.py
463 463
                "answered because no valid protocol binding could be found")
464 464
            logger.warning("the request cannot be answered because no "
465 465
                "valid protocol binding could be found")
466
            login.response.status.statusMessage = 'No valid protocol binding could be found'
467 466
            return HttpResponseBadRequest(message, content_type='text/plain')
468 467
        except lasso.ProviderMissingPublicKeyError, e:
469 468
            log_info_authn_request_details(login)
470
-