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.
1 parent 1ab2352 commit aaab483Copy full SHA for aaab483
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.name == UserIdHashType.transient.name:
+ if hash_type is UserIdHashType.transient:
56
return NAMEID_FORMAT_TRANSIENT
57
- elif hash_type.name == UserIdHashType.persistent.name:
+ elif hash_type is UserIdHashType.persistent:
58
return NAMEID_FORMAT_PERSISTENT
59
60
0 commit comments