summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-23 13:10:42 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-23 13:10:42 (GMT)
commit2f8d4d14a017f9f7495393097fe8dea2a00d880c (patch)
tree784f3e4288147dc1006398d7d5916ebd251ac279 /authentic/admin/settings.ptl
parenteb5b8640917de7c099584f68d76e12c60073199e (diff)
downloadauthentic-old-2f8d4d14a017f9f7495393097fe8dea2a00d880c.zip
authentic-old-2f8d4d14a017f9f7495393097fe8dea2a00d880c.tar.gz
authentic-old-2f8d4d14a017f9f7495393097fe8dea2a00d880c.tar.bz2
[settings providers] add a default_name_id_format setting for service providers
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl19
1 files changed, 17 insertions, 2 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 04bfdaf..999cacb 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -128,6 +128,14 @@ class LibertyProvidersDir(Directory):
form.add(CheckboxWidget, 'idp_initiated_sso',
title = _('Allow IdP initiated Single Sign On'), value = True)
+ form.add(SingleSelectWidget, 'default_name_id_format',
+ title = _('Default NameID Format'),
+ required=False,
+ value = 'persistent',
+ options = [ ('persistent', _('Persistent')),
+ ('transient', _('Transient')),
+ ('email', _('Email')) ])
+
form.add(CheckboxWidget, 'encrypt_nameid',
title = _('Encrypt NameID'),
value = False)
@@ -232,7 +240,8 @@ class LibertyProvidersDir(Directory):
providers_cfg[key_provider_id]['role'] = role
providers_cfg[key_provider_id]['metadata'] = metadata_fn
- for k in ('idp_initiated_sso', 'encrypt_nameid', 'encrypt_assertion', 'exported_attributes'):
+ for k in ('idp_initiated_sso', 'default_name_id_format',
+ 'encrypt_nameid', 'encrypt_assertion', 'exported_attributes'):
widget = form.get_widget(k)
if widget:
get_publisher().cfg['providers'][key_provider_id][k] = widget.parse()
@@ -513,7 +522,13 @@ class LibertyProviderUI(Directory):
form.add(CheckboxWidget, 'idp_initiated_sso',
title = _('Allow IdP initiated Single Sign On'),
value = self.lp.get('idp_initiated_sso', True))
-
+ form.add(SingleSelectWidget, 'default_name_id_format',
+ title = _('Default NameID Format'),
+ required=False,
+ value = self.lp.get('default_name_id_format'),
+ options = [ ('persistent', _('Persistent')),
+ ('transient', _('Transient')),
+ ('email', _('Email')) ])
form.add(CheckboxWidget, 'encrypt_nameid',
title = _('Encrypt NameID'),
value = self.lp.get('encrypt_nameid', False))