method appearing in both subclasses should appear in the master class.
This commit is contained in:
@@ -361,12 +361,6 @@ class Config(object):
|
|||||||
root_logger.info("Logging started")
|
root_logger.info("Logging started")
|
||||||
return root_logger
|
return root_logger
|
||||||
|
|
||||||
class SPConfig(Config):
|
|
||||||
def_context = "sp"
|
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
Config.__init__(self)
|
|
||||||
|
|
||||||
def single_logout_services(self, entity_id, binding=BINDING_SOAP):
|
def single_logout_services(self, entity_id, binding=BINDING_SOAP):
|
||||||
""" returns a list of endpoints to use for sending logout requests to
|
""" returns a list of endpoints to use for sending logout requests to
|
||||||
|
|
||||||
@@ -377,6 +371,12 @@ class SPConfig(Config):
|
|||||||
"""
|
"""
|
||||||
return self.metadata.single_logout_service(entity_id, binding=binding)
|
return self.metadata.single_logout_service(entity_id, binding=binding)
|
||||||
|
|
||||||
|
class SPConfig(Config):
|
||||||
|
def_context = "sp"
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
Config.__init__(self)
|
||||||
|
|
||||||
def single_sign_on_services(self, entity_id,
|
def single_sign_on_services(self, entity_id,
|
||||||
binding=BINDING_HTTP_REDIRECT):
|
binding=BINDING_HTTP_REDIRECT):
|
||||||
""" returns a list of endpoints to use for sending login requests to
|
""" returns a list of endpoints to use for sending login requests to
|
||||||
@@ -454,17 +454,6 @@ class IdPConfig(Config):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Config.__init__(self)
|
Config.__init__(self)
|
||||||
|
|
||||||
def single_logout_services(self, entity_id, binding=BINDING_SOAP):
|
|
||||||
""" returns a list of endpoints to use for sending logout requests to
|
|
||||||
|
|
||||||
:param entity_id: The entity ID of the service
|
|
||||||
:param binding: The preferred binding (which for logout by default is
|
|
||||||
the SOAP binding)
|
|
||||||
:return: list of endpoints
|
|
||||||
"""
|
|
||||||
|
|
||||||
return self.metadata.single_logout_service(entity_id, binding=binding)
|
|
||||||
|
|
||||||
def assertion_consumer_services(self, entity_id, binding=BINDING_HTTP_POST):
|
def assertion_consumer_services(self, entity_id, binding=BINDING_HTTP_POST):
|
||||||
return self.metadata.assertion_consumer_services(entity_id, binding)
|
return self.metadata.assertion_consumer_services(entity_id, binding)
|
||||||
|
Reference in New Issue
Block a user