From 3cadd0386879de5be604636372b4178a013b456b Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Jan 31 2017 17:55:46 +0000 Subject: Move the Fedora Proxy Client to on_enable The configuration of base_url is unavailable until on_enable, and setting this on get_tree makes it always use the defaults. Signed-off-by: Patrick Uiterwijk --- diff --git a/ipsilon/login/authfas.py b/ipsilon/login/authfas.py index 28f6e80..6bb5694 100644 --- a/ipsilon/login/authfas.py +++ b/ipsilon/login/authfas.py @@ -120,11 +120,14 @@ Form based login Manager that uses the Fedora Authentication Server return self.get_config_value('FAS Insecure Auth') def get_tree(self, site): + self.page = FAS(site, self, 'login/fas') + return self.page + + def on_enable(self): + super(LoginManager, self).on_enable() self.fpc = FasProxyClient(base_url=self.fas_url, useragent=self.user_agent, insecure=self.insecure) - self.page = FAS(site, self, 'login/fas') - return self.page class Installer(LoginManagerInstaller):