Skip to content

Commit c9e9f71

Browse files
author
Roland Hedberg
committed
The validUntil check was bogus!
1 parent ff86f72 commit c9e9f71

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/saml2/mdstore.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626

2727
logger = logging.getLogger(__name__)
2828

29+
30+
class ToOld(Exception):
31+
pass
32+
33+
2934
REQ2SRV = {
3035
# IDP
3136
"authn_request": "single_sign_on_service",
@@ -178,7 +183,8 @@ def parse(self, xmlstr):
178183
return
179184

180185
try:
181-
valid(self.entities_descr.valid_until)
186+
if not valid(self.entities_descr.valid_until):
187+
raise ToOld("Metadata not valid anymore")
182188
except AttributeError:
183189
pass
184190

0 commit comments

Comments
 (0)