From: Patrick Uiterwijk Date: Fri, 17 Jul 2015 13:57:28 +0000 (+0200) Subject: Only initialize the SAML IDP when actually enabled X-Git-Tag: v1.1.0~53 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=07ec779defce9b0fecf4da8c726d1b492c147626;ds=sidebyside Only initialize the SAML IDP when actually enabled This has the same reasoning as the OpenID patch (commit ac7c20cca81c3d23ee66f224030b316bdff2274a), with additionally that it will otherwise error on finding the metadata. (This is not critical though as it will retry loading and succeed, this is just to make it not spit that error). Signed-off-by: Patrick Uiterwijk Reviewed-by: Rob Crittenden --- diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py index 5ac83dd..93dcbc6 100644 --- a/ipsilon/providers/saml2idp.py +++ b/ipsilon/providers/saml2idp.py @@ -346,7 +346,6 @@ Provides SAML 2.0 authentication infrastructure. """ return self.get_config_value('default allowed attributes') def get_tree(self, site): - self.idp = self.init_idp() self.page = SAML2(site, self) self.admin = Saml2AdminPage(site, self) self.rest = Saml2RestBase(site, self)