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.
This commit is contained in:
Benjamin Dauvergne 2018-05-31 09:18:50 +02:00
parent 26d39e05ad
commit 700786714f
1 changed files with 0 additions and 1 deletions

View File

@ -463,7 +463,6 @@ def sso(request):
"answered because no valid protocol binding could be found")
logger.warning("the request cannot be answered because no "
"valid protocol binding could be found")
login.response.status.statusMessage = 'No valid protocol binding could be found'
return HttpResponseBadRequest(message, content_type='text/plain')
except lasso.ProviderMissingPublicKeyError, e:
log_info_authn_request_details(login)