File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class OneLogin_Saml2_Constants(object):
1919 """
2020
2121 # Value added to the current time in time condition validations
22- ALOWED_CLOCK_DRIFT = 300
22+ ALLOWED_CLOCK_DRIFT = 300
2323
2424 # NameID Formats
2525 NAMEID_EMAIL_ADDRESS = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'
Original file line number Diff line number Diff line change @@ -374,9 +374,9 @@ def validate_timestamps(self):
374374 for conditions_node in conditions_nodes :
375375 nb_attr = conditions_node .get ('NotBefore' )
376376 nooa_attr = conditions_node .get ('NotOnOrAfter' )
377- if nb_attr and OneLogin_Saml2_Utils .parse_SAML_to_time (nb_attr ) > OneLogin_Saml2_Utils .now () + OneLogin_Saml2_Constants .ALOWED_CLOCK_DRIFT :
377+ if nb_attr and OneLogin_Saml2_Utils .parse_SAML_to_time (nb_attr ) > OneLogin_Saml2_Utils .now () + OneLogin_Saml2_Constants .ALLOWED_CLOCK_DRIFT :
378378 return False
379- if nooa_attr and OneLogin_Saml2_Utils .parse_SAML_to_time (nooa_attr ) + OneLogin_Saml2_Constants .ALOWED_CLOCK_DRIFT <= OneLogin_Saml2_Utils .now ():
379+ if nooa_attr and OneLogin_Saml2_Utils .parse_SAML_to_time (nooa_attr ) + OneLogin_Saml2_Constants .ALLOWED_CLOCK_DRIFT <= OneLogin_Saml2_Utils .now ():
380380 return False
381381 return True
382382
You can’t perform that action at this time.
0 commit comments