From f52a0471b5241d98c89c2e9bbee308ad457fade4 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Mon, 30 Mar 2015 09:32:46 +0000 Subject: [PATCH] Example SP: Fix failed auth redirect In case of an error during `SSO.redirect_to_auth` return the response unstarted. --- example/sp-wsgi/sp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/sp-wsgi/sp.py b/example/sp-wsgi/sp.py index 5d1c6df..b67917b 100755 --- a/example/sp-wsgi/sp.py +++ b/example/sp-wsgi/sp.py @@ -562,7 +562,7 @@ class SSO(object): logger.exception(exc) resp = ServiceError( "Failed to construct the AuthnRequest: %s" % exc) - return resp(self.environ, self.start_response) + return resp # remember the request self.cache.outstanding_queries[_sid] = came_from