We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95ea42f + aaab483 commit 3d0fe9fCopy full SHA for 3d0fe9f
src/satosa/frontends/saml2.py
@@ -52,9 +52,9 @@ def hash_type_to_saml_name_id_format(hash_type):
52
:param hash_type: satosa format
53
:return: pySAML2 name format
54
"""
55
- if hash_type == UserIdHashType.transient.name:
+ if hash_type is UserIdHashType.transient:
56
return NAMEID_FORMAT_TRANSIENT
57
- elif hash_type == UserIdHashType.persistent.name:
+ elif hash_type is UserIdHashType.persistent:
58
return NAMEID_FORMAT_PERSISTENT
59
60
0 commit comments