Skip to content
Snippets Groups Projects
Commit 40da18c2 authored by Martin van Es's avatar Martin van Es
Browse files

Let the cacher invalidate signed entities instead of the reloader

parent 7e7a9d17
Branches
Tags 3.0
No related merge requests found
...@@ -77,15 +77,15 @@ def read_metadata(signum, frm): ...@@ -77,15 +77,15 @@ def read_metadata(signum, frm):
for entity_descriptor in root.findall('md:EntityDescriptor', ns): for entity_descriptor in root.findall('md:EntityDescriptor', ns):
entityID = entity_descriptor.attrib.get('entityID', 'none') entityID = entity_descriptor.attrib.get('entityID', 'none')
sha1 = hasher(entityID) sha1 = hasher(entityID)
print(f"{{sha1}}{sha1} {entityID}")
entity_descriptor.set('validUntil', validUntil) entity_descriptor.set('validUntil', validUntil)
entity_descriptor.set('cacheDuration', cacheDuration) entity_descriptor.set('cacheDuration', cacheDuration)
entity = Entity() entity = Entity()
entity.md = entity_descriptor entity.md = entity_descriptor
entity.valid_until = valid_until entity.valid_until = valid_until
print(f"{{sha1}}{sha1} {entityID}")
idps[sha1] = entity idps[sha1] = entity
signed.pop(sha1, None)
old_idps.pop(sha1, None) old_idps.pop(sha1, None)
# signed.pop(sha1, None)
found += 1 found += 1
for idp in old_idps: for idp in old_idps:
idps.pop(idp, None) idps.pop(idp, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment