summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-01-07 16:01:46 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-01-07 16:01:46 (GMT)
commit058a6252d82c0201cc83a6df1a8ce13e915153bf (patch)
tree990f083d7fe1f22606bf35bff6d3065cd6e9fd9a
parent56d9ed325667a56e949fc87d399e2acc42c627f3 (diff)
downloadunivnautes-old-058a6252d82c0201cc83a6df1a8ce13e915153bf.zip
univnautes-old-058a6252d82c0201cc83a6df1a8ce13e915153bf.tar.gz
univnautes-old-058a6252d82c0201cc83a6df1a8ce13e915153bf.tar.bz2
django.contrib.auth use self.pk for user_id
-rw-r--r--virtualenv/pfidp/auth_backend.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/virtualenv/pfidp/auth_backend.py b/virtualenv/pfidp/auth_backend.py
index 349b808..fd521b3 100644
--- a/virtualenv/pfidp/auth_backend.py
+++ b/virtualenv/pfidp/auth_backend.py
@@ -40,6 +40,7 @@ class TransientUser(SAML2TransientUser):
def __init__(self, pfuser, privileges):
self.id = pfuser['username']
+ self.pk = self.id
self.displayname = pfuser['displayname'].decode('latin1')
self.univnautes_privileges = privileges
if privileges and 'univnautes-idp-admin' in privileges: