We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff86f72 commit c9e9f71Copy full SHA for c9e9f71
src/saml2/mdstore.py
@@ -26,6 +26,11 @@
26
27
logger = logging.getLogger(__name__)
28
29
+
30
+class ToOld(Exception):
31
+ pass
32
33
34
REQ2SRV = {
35
# IDP
36
"authn_request": "single_sign_on_service",
@@ -178,7 +183,8 @@ def parse(self, xmlstr):
178
183
return
179
184
180
185
try:
181
- valid(self.entities_descr.valid_until)
186
+ if not valid(self.entities_descr.valid_until):
187
+ raise ToOld("Metadata not valid anymore")
182
188
except AttributeError:
189
pass
190
0 commit comments