From d6a470f83db7b07e5f165f97281c8839e44277bf Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Sat, 15 Dec 2012 09:10:00 +0100 Subject: [PATCH] method appearing in both subclasses should appear in the master class. --- src/saml2/config.py | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/saml2/config.py b/src/saml2/config.py index eba555c..ae00c67 100644 --- a/src/saml2/config.py +++ b/src/saml2/config.py @@ -361,12 +361,6 @@ class Config(object): root_logger.info("Logging started") 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): """ 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) +class SPConfig(Config): + def_context = "sp" + + def __init__(self): + Config.__init__(self) + def single_sign_on_services(self, entity_id, binding=BINDING_HTTP_REDIRECT): """ returns a list of endpoints to use for sending login requests to @@ -454,17 +454,6 @@ class IdPConfig(Config): def __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): return self.metadata.assertion_consumer_services(entity_id, binding)