From: Patrick Uiterwijk Date: Fri, 17 Jul 2015 14:03:15 +0000 (+0200) Subject: Only initialize the Persona IDP when actually enabled X-Git-Tag: v1.1.0~47 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=7b470b0e494a7ff5a088c3ead2e60754b67282f1 Only initialize the Persona IDP when actually enabled 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 Reviewed-by: Rob Crittenden --- diff --git a/ipsilon/providers/personaidp.py b/ipsilon/providers/personaidp.py index f0146db..2a28ba9 100644 --- a/ipsilon/providers/personaidp.py +++ b/ipsilon/providers/personaidp.py @@ -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)