You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by th...@apache.org on 2021/09/21 19:51:06 UTC
[solr] branch main updated: SOLR-15637: Set .tls for security UI
based on data.security.tls in response from server (#299)
This is an automated email from the ASF dual-hosted git repository.
thelabdude pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new db5fb5a SOLR-15637: Set .tls for security UI based on data.security.tls in response from server (#299)
db5fb5a is described below
commit db5fb5ace5744b7543557cf41a7f772e5b1e4233
Author: Timothy Potter <th...@gmail.com>
AuthorDate: Tue Sep 21 13:50:47 2021 -0600
SOLR-15637: Set .tls for security UI based on data.security.tls in response from server (#299)
---
solr/webapp/web/js/angular/controllers/security.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/solr/webapp/web/js/angular/controllers/security.js b/solr/webapp/web/js/angular/controllers/security.js
index aa7ecd9..4a72e5c 100644
--- a/solr/webapp/web/js/angular/controllers/security.js
+++ b/solr/webapp/web/js/angular/controllers/security.js
@@ -169,6 +169,7 @@ solrAdminApp.controller('SecurityController', function ($scope, $timeout, $cooki
$scope.refresh = function () {
$scope.hideAll();
+ $scope.tls = false;
$scope.blockUnknown = "false"; // default setting
$scope.realmName = "solr";
$scope.forwardCredentials = "false";
@@ -186,6 +187,7 @@ solrAdminApp.controller('SecurityController', function ($scope, $timeout, $cooki
$scope.permFilterTypes = ["", "name", "role", "path", "collection"];
System.get(function(data) {
+ $scope.tls = data.security ? data.security["tls"] : false;
$scope.authenticationPlugin = data.security ? data.security["authenticationPlugin"] : null;
$scope.authorizationPlugin = data.security ? data.security["authorizationPlugin"] : null;
$scope.myRoles = data.security ? data.security["roles"] : [];