Skip to content

Commit 3d0fe9f

Browse files
Merge pull request #143 from jkakavas/fix_142
Fix #142
2 parents 95ea42f + aaab483 commit 3d0fe9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/satosa/frontends/saml2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def hash_type_to_saml_name_id_format(hash_type):
5252
:param hash_type: satosa format
5353
:return: pySAML2 name format
5454
"""
55-
if hash_type == UserIdHashType.transient.name:
55+
if hash_type is UserIdHashType.transient:
5656
return NAMEID_FORMAT_TRANSIENT
57-
elif hash_type == UserIdHashType.persistent.name:
57+
elif hash_type is UserIdHashType.persistent:
5858
return NAMEID_FORMAT_PERSISTENT
5959
return NAMEID_FORMAT_PERSISTENT
6060

0 commit comments

Comments
 (0)