Projet

Général

Profil

0001-LoginView-do-not-crash-if-an-IdP-doesn-t-have-an-ENT.patch

Paul Marillonnet, 06 octobre 2017 18:22

Télécharger (973 octets)

Voir les différences:

Subject: [PATCH] LoginView: do not crash if an IdP doesn't have an ENTITY_ID
 field

 mellon/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mellon/views.py
342 342
        if idp is None:
343 343
            return HttpResponseBadRequest('no idp found')
344 344
        self.profile = login = utils.create_login(request)
345
        self.log.debug('authenticating to %r', idp['ENTITY_ID'])
345
        self.log.debug('authenticating to %r',
346
                idp.get('ENTITY_ID', 'undefined'))
346 347
        try:
347 348
            login.initAuthnRequest(idp['ENTITY_ID'], lasso.HTTP_METHOD_REDIRECT)
348 349
            authn_request = login.request
349
-