summaryrefslogtreecommitdiff
path: root/src/saml2/entity.py
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-08-03 02:39:24 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-08-03 02:39:24 +0300
commitefb294558b91c296cf4a392606289ff1273123bf (patch)
treec32491e49a7f0579d9df7723f7f3ab36946af159 /src/saml2/entity.py
parente1761c3ba3f774eecfae5deaa824ead86968acb6 (diff)
downloadpysaml2-efb294558b91c296cf4a392606289ff1273123bf.tar.gz
Retrieve SLO endpoint by the appropriate service type
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/entity.py')
-rw-r--r--src/saml2/entity.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index 00567a6a..e53804c3 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -1115,10 +1115,17 @@ class Entity(HTTPBase):
return response
if "return_addrs" not in kwargs:
- if binding in [BINDING_HTTP_REDIRECT, BINDING_HTTP_POST]:
+ bindings = {
+ BINDING_SOAP,
+ BINDING_HTTP_REDIRECT,
+ BINDING_HTTP_POST,
+ }
+ if binding in bindings:
# expected return address
kwargs["return_addrs"] = self.config.endpoint(
- service, binding=binding)
+ service,
+ binding=binding,
+ context=self.entity_type)
try:
response = response_cls(self.sec, **kwargs)