Skip to content

Commit

Permalink
Now the config methods return lists of values instead of values so we…
Browse files Browse the repository at this point in the history
… need to adapt the client logout code
  • Loading branch information
Lorenzo Gil Sanchez committed Dec 11, 2011
1 parent 0a9af27 commit 189a0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/saml2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def logout_response(self, xmlstr, log=None, binding=BINDING_SOAP):
try:
# expected return address
return_addr = self.config.endpoint("single_logout_service",
binding=binding)
binding=binding)[0]
except Exception:
if log:
log.info("Not supposed to handle this!")
Expand Down Expand Up @@ -915,7 +915,7 @@ def make_logout_response(self, idp_entity_id, request_id,
:return: A LogoutResponse instance
"""

destination = self.config.single_logout_service(idp_entity_id, binding)
destination = self.config.single_logout_service(idp_entity_id, binding)[0]

status = samlp.Status(
status_code=samlp.StatusCode(value=status_code))
Expand Down

0 comments on commit 189a0f2

Please sign in to comment.