Only initialize the SAML IDP when actually enabled
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 17 Jul 2015 13:57:28 +0000 (15:57 +0200)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 17 Jul 2015 13:59:49 +0000 (15:59 +0200)
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 <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
ipsilon/providers/saml2idp.py

index 5ac83dd..93dcbc6 100644 (file)
@@ -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)