Skip to content

Commit 393ace6

Browse files
author
Alexander Schrijver
committed
Do not overwrite the cache with the decoded value of name_id, instead update a copy.
1 parent d145785 commit 393ace6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/saml2/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def get(self, name_id, entity_id, check_not_on_or_after=True):
9696
"""
9797
cni = code(name_id)
9898
(timestamp, info) = self._db[cni][entity_id]
99+
info = info.copy()
99100
if check_not_on_or_after and time_util.after(timestamp):
100101
raise ToOld("past %s" % str(timestamp))
101102

0 commit comments

Comments
 (0)