Changed method arguments
This commit is contained in:
@@ -156,7 +156,7 @@ class Entity(HTTPBase):
|
|||||||
|
|
||||||
raise Exception("Unkown entity or unsupported bindings")
|
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}
|
info = {"in_response_to": message.id}
|
||||||
if isinstance(message, AuthnRequest):
|
if isinstance(message, AuthnRequest):
|
||||||
rsrv = "assertion_consumer_service"
|
rsrv = "assertion_consumer_service"
|
||||||
@@ -179,10 +179,12 @@ class Entity(HTTPBase):
|
|||||||
raise Exception("No support for this type of query")
|
raise Exception("No support for this type of query")
|
||||||
|
|
||||||
if rsrv:
|
if rsrv:
|
||||||
if self.entity_type == "sp":
|
if not descr_type:
|
||||||
descr_type = "idpsso"
|
if self.entity_type == "sp":
|
||||||
else:
|
descr_type = "idpsso"
|
||||||
descr_type = "spsso"
|
else:
|
||||||
|
descr_type = "spsso"
|
||||||
|
|
||||||
binding, destination = self.pick_binding(bindings, rsrv,
|
binding, destination = self.pick_binding(bindings, rsrv,
|
||||||
descr_type=descr_type,
|
descr_type=descr_type,
|
||||||
request=message)
|
request=message)
|
||||||
|
Reference in New Issue
Block a user