summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-25 16:49:57 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-25 16:49:57 (GMT)
commit59ffac71f572bd9404a2fe03b3ff0e2bdf3f2a45 (patch)
treeeffd0686d15db259ed9704f91715e2e10074dbe8 /authentic/admin/settings.ptl
parentb82b0f782af52833f1482e705dc20350c94fea5e (diff)
downloadauthentic-old-59ffac71f572bd9404a2fe03b3ff0e2bdf3f2a45.zip
authentic-old-59ffac71f572bd9404a2fe03b3ff0e2bdf3f2a45.tar.gz
authentic-old-59ffac71f572bd9404a2fe03b3ff0e2bdf3f2a45.tar.bz2
[Settings] fix bad handling of idff_proxy
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl6
1 files changed, 3 insertions, 3 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 8c875d7..cda71be 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -1159,7 +1159,7 @@ class SettingsDirectory(schemagui.SettingDirectory):
publisher = get_publisher())
metadata = metadata_generator.get_metadata(signing_pem_key,
encryption_pem_key, do_idp = True,
- do_sp = cfg_sp.get('idff_proxy') is not None,
+ do_sp = bool(cfg_sp.get('idff_proxy', False)),
endpoints = self.endpoints_prefixes)
if saml2:
cfg_sp['saml2_metadata'] = 'saml2-metadata.xml'
@@ -1168,7 +1168,7 @@ class SettingsDirectory(schemagui.SettingDirectory):
publisher = get_publisher())
saml2_metadata = saml2_metadata_gen.get_saml2_metadata(signing_pem_key,
encryption_pem_key, do_idp = True,
- do_sp = cfg_sp.get('idff_proxy') is not None,
+ do_sp = bool(cfg_sp.get('idff_proxy', False)),
endpoints = self.endpoints_prefixes)
self.write_idp_metadatas(signing_pem_key, private_signing_pem_key,
encryption_pem_key, private_encryption_pem_key,
@@ -1231,7 +1231,7 @@ class SettingsDirectory(schemagui.SettingDirectory):
signing_keypair = get_key_pair('')
encryption_keypair = get_key_pair('encryption_')
- do_sp = config.get('idff_proxy') is not None
+ do_sp = bool(config.get('idff_proxy', False))
public_signing_key = signing_keypair and signing_keypair[0]
public_encryption_key = encryption_keypair and encryption_keypair[0]
# FIXME: is it really useful to permit manual metadatas ?