diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-09-23 14:08:49 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-10-19 13:33:53 +0300 |
commit | 0dc35e86392ad028ff4db34448069b4a50ece116 (patch) | |
tree | 2081c08e58417dce02e4618f1ca43315e17e0e54 | |
parent | 9ea6b286ecbc2c15b7f414eb13bb1054a5910a5e (diff) | |
download | pysaml2-0dc35e86392ad028ff4db34448069b4a50ece116.tar.gz |
Check for multiple eptid values
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r-- | src/saml2/attribute_converter.py | 3 |
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 = ( |