File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def csrf_exempt(view_func):
49
49
from saml2 .sigver import MissingKey
50
50
from saml2 .s_utils import UnsupportedBinding
51
51
from saml2 .response import StatusError
52
+ from saml2 .validate import ResponseLifetimeExceed , ToEarly
52
53
from saml2 .xmldsig import SIG_RSA_SHA1 , SIG_RSA_SHA256 # support for SHA1 is required by spec
53
54
54
55
from djangosaml2 .cache import IdentityCache , OutstandingQueriesCache
@@ -258,7 +259,8 @@ def assertion_consumer_service(request,
258
259
try :
259
260
response = client .parse_authn_request_response (xmlstr , BINDING_HTTP_POST ,
260
261
outstanding_queries )
261
- except StatusError :
262
+ except (StatusError , ResponseLifetimeExceed , ToEarly ):
263
+ logger .exception ('Error processing SAML Assertion' )
262
264
return render (request , 'djangosaml2/login_error.html' , status = 403 )
263
265
264
266
except MissingKey :
You can’t perform that action at this time.
0 commit comments