summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-18 10:17:23 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-18 10:17:23 +0100
commitcf7b831ee08b91d21182856b6d790b63e382468d (patch)
treef805f8bad1e62a8ca08bd76cb81b0ce4b37df445
parent6f0ff8644fd0d4325cd2268a98b500b0c2614332 (diff)
parentac91a1bb1b3ae6a74f7c6cb88ad973fe8be70e51 (diff)
downloadpysaml2-cf7b831ee08b91d21182856b6d790b63e382468d.tar.gz
Merge pull request #177 from tpazderka/Requested_authn_context-from-list
Requested_authn_context from list
-rw-r--r--src/saml2/authn_context/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/saml2/authn_context/__init__.py b/src/saml2/authn_context/__init__.py
index c08d23a9..1faabbca 100644
--- a/src/saml2/authn_context/__init__.py
+++ b/src/saml2/authn_context/__init__.py
@@ -215,6 +215,8 @@ def authn_context_class_ref(ref):
def requested_authn_context(class_ref, comparison="minimum"):
+ if not isinstance(class_ref, list):
+ class_ref = [class_ref]
return RequestedAuthnContext(
- authn_context_class_ref=[AuthnContextClassRef(text=class_ref)],
+ authn_context_class_ref=[AuthnContextClassRef(text=i) for i in class_ref],
comparison=comparison)