Changed method arguments

This commit is contained in:
Roland Hedberg
2013-01-12 15:59:18 +01:00
parent 536b8373b3
commit 17160be883

View File

@@ -156,7 +156,7 @@ class Entity(HTTPBase):
raise Exception("Unkown entity or unsupported bindings")
def response_args(self, message, bindings):
def response_args(self, message, bindings, descr_type=""):
info = {"in_response_to": message.id}
if isinstance(message, AuthnRequest):
rsrv = "assertion_consumer_service"
@@ -179,10 +179,12 @@ class Entity(HTTPBase):
raise Exception("No support for this type of query")
if rsrv:
if self.entity_type == "sp":
descr_type = "idpsso"
else:
descr_type = "spsso"
if not descr_type:
if self.entity_type == "sp":
descr_type = "idpsso"
else:
descr_type = "spsso"
binding, destination = self.pick_binding(bindings, rsrv,
descr_type=descr_type,
request=message)