summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2021-09-23 14:08:49 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2021-10-19 13:33:53 +0300
commit0dc35e86392ad028ff4db34448069b4a50ece116 (patch)
tree2081c08e58417dce02e4618f1ca43315e17e0e54
parent9ea6b286ecbc2c15b7f414eb13bb1054a5910a5e (diff)
downloadpysaml2-0dc35e86392ad028ff4db34448069b4a50ece116.tar.gz
Check for multiple eptid values
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r--src/saml2/attribute_converter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saml2/attribute_converter.py b/src/saml2/attribute_converter.py
index 306dbfde..ed616ee1 100644
--- a/src/saml2/attribute_converter.py
+++ b/src/saml2/attribute_converter.py
@@ -477,6 +477,9 @@ class AttributeConverter(object):
Returns a list of AttributeValue instances of NameID elements.
"""
+ if type(values) is not list:
+ values = [values]
+
def _create_nameid_ext_el(value):
text = value["text"] if isinstance(value, dict) else value
attributes = (