summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-19 08:29:06 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-19 08:29:06 (GMT)
commit51a66f2d4f118cadf651bacdfe401071876ee0f7 (patch)
tree4ffcd2ee669248e3f4b5605877534789f9f375b7 /authentic/admin/settings.ptl
parent9283b5a3192353147223f83e06edc5228db7976e (diff)
downloadauthentic-old-51a66f2d4f118cadf651bacdfe401071876ee0f7.zip
authentic-old-51a66f2d4f118cadf651bacdfe401071876ee0f7.tar.gz
authentic-old-51a66f2d4f118cadf651bacdfe401071876ee0f7.tar.bz2
[Settings] add an exported attributes settings for each provider
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl14
1 files changed, 12 insertions, 2 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index cda71be..1505b42 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -137,6 +137,11 @@ class LibertyProvidersDir(Directory):
value = False,
hint = _('Only used for SAML 2.0.'))
+ form.add(StringWidget, 'Exported attributes',
+ title = _('Exported attributes'),
+ value = self.lp.get('exported_attributes', ''),
+ hint = _('Space separated list of words'))
+
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))
@@ -223,7 +228,7 @@ 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'):
+ for k in ('idp_initiated_sso', 'encrypt_nameid', 'encrypt_assertion', 'exported_attributes'):
widget = form.get_widget(k)
if widget:
get_publisher().cfg['providers'][key_provider_id][k] = widget.parse()
@@ -512,7 +517,12 @@ class LibertyProviderUI(Directory):
title = _('Encrypt Assertion'),
value = self.lp.get('encrypt_assertion', False),
hint = _('Only used for SAML 2.0.'))
-
+
+ form.add(StringWidget, 'exported_attributes',
+ title = _('Exported attributes'),
+ value = self.lp.get('exported_attributes', ''),
+ hint = _('Space separated list of words'))
+
if self.lp.get('locked') is None:
form.add_submit('submit', _('Submit'))