0001-LoginView-do-not-crash-if-an-IdP-doesn-t-have-an-ENT.patch
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 |
- |