Example SP: Fix failed auth redirect

In case of an error during `SSO.redirect_to_auth` return the response unstarted.
This commit is contained in:
Lumi Pakkanen
2015-03-30 09:32:46 +00:00
parent cd2572851e
commit f52a0471b5

View File

@@ -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