sources/saml: improve error handling for missing assertion and missing subject

closes #3784

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-10-14 13:56:35 +02:00
parent febe3a5477
commit 0ca1368dcc
2 changed files with 6 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class ACSView(View):
try:
return processor.prepare_flow(request)
except UnsupportedNameIDFormat as exc:
except (UnsupportedNameIDFormat, ValueError) as exc:
return bad_request_message(request, str(exc))