Skip to content

Commit 0dc35e8

Browse files
committed
Check for multiple eptid values
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
1 parent 9ea6b28 commit 0dc35e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/saml2/attribute_converter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ def to_eptid_value(self, values):
477477
Returns a list of AttributeValue instances of NameID elements.
478478
"""
479479

480+
if type(values) is not list:
481+
values = [values]
482+
480483
def _create_nameid_ext_el(value):
481484
text = value["text"] if isinstance(value, dict) else value
482485
attributes = (

0 commit comments

Comments
 (0)