Added new function and copied identity information so not to mess with any stored information.

This commit is contained in:
Roland Hedberg
2013-07-29 09:52:27 +02:00
parent 37f7858ff6
commit f38f1f8b30

View File

@@ -61,6 +61,12 @@ def _expiration(timeout, tformat="%a, %d-%b-%Y %H:%M:%S GMT"):
# validity time should match lifetime of assertions
return time_util.in_a_while(minutes=timeout, format=tformat)
def get_eptid(idp, req_info, session):
return idp.eptid.get(idp.config.entityid,
req_info.sender(), session["permanent_id"],
session["authn_auth"])
# -----------------------------------------------------------------------------
@@ -272,7 +278,8 @@ class SSO(Service):
return resp(self.environ, self.start_response)
if not _resp:
identity = USERS[self.user]
identity = USERS[self.user].copy()
#identity["eduPersonTargetedID"] = get_eptid(IDP, query, session)
logger.info("Identity: %s" % (identity,))
if REPOZE_ID_EQUIVALENT: