Only initialize the Persona IDP when actually enabled
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 17 Jul 2015 14:03:15 +0000 (16:03 +0200)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Tue, 18 Aug 2015 07:41:03 +0000 (09:41 +0200)
This has the same reasoning as the OpenID patch (commit
ac7c20cca81c3d23ee66f224030b316bdff2274a), with additionally
that it will otherwise error on loading the signing key.
(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/personaidp.py

index f0146db..2a28ba9 100644 (file)
@@ -54,7 +54,6 @@ Provides Persona authentication infrastructure. """
         return self.get_config_value('allowed domains')
 
     def get_tree(self, site):
-        self.init_idp()
         self.page = Persona(site, self)
         # self.admin = AdminPage(site, self)