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:
@@ -562,7 +562,7 @@ class SSO(object):
|
|||||||
logger.exception(exc)
|
logger.exception(exc)
|
||||||
resp = ServiceError(
|
resp = ServiceError(
|
||||||
"Failed to construct the AuthnRequest: %s" % exc)
|
"Failed to construct the AuthnRequest: %s" % exc)
|
||||||
return resp(self.environ, self.start_response)
|
return resp
|
||||||
|
|
||||||
# remember the request
|
# remember the request
|
||||||
self.cache.outstanding_queries[_sid] = came_from
|
self.cache.outstanding_queries[_sid] = came_from
|
||||||
|
Reference in New Issue
Block a user