summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2021-03-07 20:11:24 +0200
committerGitHub <noreply@github.com>2021-03-07 20:11:24 +0200
commit745c5921867f5e9c98f31a250fa98f5dd7c948d7 (patch)
tree295436b834edd6a3e57d51364475e7451519132e
parent6ca05dd8a95bf6bdb74dc742699f54febca23d05 (diff)
parent9b4b70f46ceb67e6e8cccace6d29704d251a785f (diff)
downloadpysaml2-745c5921867f5e9c98f31a250fa98f5dd7c948d7.tar.gz
Merge pull request #757 from peppelinux/authn_3tuple_acs
Handle all types of ACS endpoint specifications
-rw-r--r--src/saml2/config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/saml2/config.py b/src/saml2/config.py
index 8b865dcb..6687a60f 100644
--- a/src/saml2/config.py
+++ b/src/saml2/config.py
@@ -404,7 +404,12 @@ class Config(object):
if endps and service in endps:
for endpspec in endps[service]:
try:
- endp, bind = endpspec
+ # endspec sometime is str, sometime is a tuple
+ if type(endpspec) in (tuple, list):
+ # slice prevents 3-tuple, eg: sp's assertion_consumer_service
+ endp, bind = endpspec[0:2]
+ else:
+ endp, bind = endpspec
if binding is None or bind == binding:
spec.append(endp)
except ValueError: