Skip to content

Commit aa5c7f6

Browse files
author
Roland Hedberg
committed
Merge pull request #77 from novapost/persistent_userid
In case of persistent NameID, use the userid.
2 parents 3500479 + 0de92bf commit aa5c7f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/saml2/ident.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def get_nameid(self, userid, nformat, sp_name_qualifier, name_qualifier):
120120

121121
_id = "%s@%s" % (_id, self.domain)
122122

123+
if nformat == NAMEID_FORMAT_PERSISTENT:
124+
_id = userid
125+
123126
nameid = NameID(format=nformat, sp_name_qualifier=sp_name_qualifier,
124127
name_qualifier=name_qualifier, text=_id)
125128

0 commit comments

Comments
 (0)