From 3479f5cc5c97f477733afd8eafe183b3dd287ffa Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Wed, 4 Apr 2018 10:13:07 +0200 Subject: [PATCH] WIP saml2_endpoints: catch ProviderMissingPublicKeyError (#22881) --- src/authentic2/idp/saml/saml2_endpoints.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/authentic2/idp/saml/saml2_endpoints.py b/src/authentic2/idp/saml/saml2_endpoints.py index a83c5c7e..451c0ff7 100644 --- a/src/authentic2/idp/saml/saml2_endpoints.py +++ b/src/authentic2/idp/saml/saml2_endpoints.py @@ -945,6 +945,11 @@ def artifact(request): else: logger.info('reloading artifact') reload_artifact(login) + except ProviderMissingPublicKeyError: + logger.error('missing public key error') + return error_redirect(request, + N_("Your service provider can't resolve the SAML artifact " + "since it has no known public key.")) except: logger.exception('resolve error') try: -- 2.17.0