diff --git a/js/admin.js b/js/admin.js
index 5952f4c..c932053 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -322,6 +322,18 @@ $(function() {
});
});
+ $('#user-saml-security input[type="text"], #user-saml-security textarea').change(function(e) {
+ var el = $(this);
+ $.when(el.focusout()).then(function() {
+ var key = $(this).attr('name');
+ OCA.User_SAML.Admin.setSamlConfigValue('security', key, $(this).val());
+ });
+ if (e.keyCode === 13) {
+ var key = $(this).attr('name');
+ OCA.User_SAML.Admin.setSamlConfigValue('security', key, $(this).val());
+ }
+ });
+
$('#user-saml-attribute-mapping input[type="text"], #user-saml-attribute-mapping textarea').change(function(e) {
var el = $(this);
$.when(el.focusout()).then(function() {
diff --git a/lib/SAMLSettings.php b/lib/SAMLSettings.php
index 0cde99a..cee5f09 100644
--- a/lib/SAMLSettings.php
+++ b/lib/SAMLSettings.php
@@ -119,6 +119,7 @@ class SAMLSettings {
'wantXMLValidation' => ($this->config->getAppValue('user_saml', $prefix . 'security-wantXMLValidation', '0') === '1') ? true : false,
'requestedAuthnContext' => false,
'lowercaseUrlencoding' => ($this->config->getAppValue('user_saml', $prefix . 'security-lowercaseUrlencoding', '0') === '1') ? true : false,
+ 'signatureAlgorithm' => $this->config->getAppValue('user_saml', $prefix . 'security-signatureAlgorithm', null)
],
'sp' => [
'entityId' => $this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.getMetadata'),
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php
index 3377148..6a7cf87 100644
--- a/lib/Settings/Admin.php
+++ b/lib/Settings/Admin.php
@@ -75,7 +75,7 @@ class Admin implements ISettings {
'authnRequestsSigned' => $this->l10n->t('Indicates whether the
- - -
+ $attribute): ?> + + +
+
+ class="required" placeholder="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
+
+
+
+