Skip to content

Commit

Permalink
Merge pull request #363 from maykinmedia/do-not-overwrite-cache
Browse files Browse the repository at this point in the history
Do not overwrite cache
  • Loading branch information
rohe authored Oct 12, 2016
2 parents c1a10d8 + 393ace6 commit 0f08f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/saml2/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def get(self, name_id, entity_id, check_not_on_or_after=True):
"""
cni = code(name_id)
(timestamp, info) = self._db[cni][entity_id]
info = info.copy()
if check_not_on_or_after and time_util.after(timestamp):
raise ToOld("past %s" % str(timestamp))

Expand Down

0 comments on commit 0f08f62

Please sign in to comment.