summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Schrijver <alexander.schrijver@maykinmedia.nl>2016-10-04 17:13:55 +0200
committerAlexander Schrijver <alexander.schrijver@maykinmedia.nl>2016-10-04 17:13:55 +0200
commit393ace6be95fda1a5d61f474dd06626fecc04d7f (patch)
tree3f8b7ae54b7cff0318e0eee0a63556c10ffa8e46
parentd14578563d7bed6000330516f3d7019674bb2a24 (diff)
downloadpysaml2-393ace6be95fda1a5d61f474dd06626fecc04d7f.tar.gz
Do not overwrite the cache with the decoded value of name_id, instead update a copy.
-rw-r--r--src/saml2/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/saml2/cache.py b/src/saml2/cache.py
index 2e2eaa9a..e01349ef 100644
--- a/src/saml2/cache.py
+++ b/src/saml2/cache.py
@@ -96,6 +96,7 @@ class Cache(object):
"""
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))