summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-01 15:45:06 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-01 15:45:06 (GMT)
commit4dae7ad504e5d0a5f64f3b5f7928bc39c52c59ec (patch)
treea935b81bf7ea3500abf5373a26a0facb55e82f90 /authentic/admin/settings.ptl
parent7c633304370008168979aa547c3bc46bca0227ab (diff)
downloadauthentic-old-4dae7ad504e5d0a5f64f3b5f7928bc39c52c59ec.zip
authentic-old-4dae7ad504e5d0a5f64f3b5f7928bc39c52c59ec.tar.gz
authentic-old-4dae7ad504e5d0a5f64f3b5f7928bc39c52c59ec.tar.bz2
Add a setting to remove the federations management user page
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl8
1 files changed, 7 insertions, 1 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 9ca1301..866dfd1 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -1061,6 +1061,12 @@ class SettingsDirectory(schemagui.SettingDirectory):
form.add(FileWidget, 'encryption_privatekey', title = _('Encryption Private Key'))
form.add(FileWidget, 'encryption_publickey', title = _('Encryption Public Key'), hint = get_text_file_preview(encryption_publickey_fn))
+ form.add(CheckboxWidget, 'defederation', title=_('Allow users to \
+manipulate their federations'),
+ hint=_('It gives user the possibility to kill their federation with \
+a service, which can lead to information loss for them'),
+ value=get_cfg('idp',{}).get('defederation'))
+
form.add(StringWidget, 'common_domain',
title = _('Identity Provider Introduction, Common Domain'),
hint = _('Disabled if empty'),
@@ -1244,7 +1250,7 @@ class SettingsDirectory(schemagui.SettingDirectory):
for k in ('providerid', 'base_url', 'organization_name', 'common_domain',
'idff_proxy', 'idsis_pp', 'saml2_providerid', 'saml2_base_url',
'base_soap_url', 'saml2_base_soap_url', 'direct_proxy',
- 'common_domain_setter_url'):
+ 'common_domain_setter_url','defederation'):
w = form.get_widget(k)
if w:
config[k] = w.parse()