From 07ec779defce9b0fecf4da8c726d1b492c147626 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 17 Jul 2015 15:57:28 +0200 Subject: [PATCH] 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 --- ipsilon/providers/saml2idp.py | 1 - 1 file changed, 1 deletion(-) 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) -- 2.20.1