You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2018/10/09 09:09:16 UTC
[12/27] lucene-solr:solr7896-login-page: Add RefGuide section
Add RefGuide section
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c31d8df7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c31d8df7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c31d8df7
Branch: refs/heads/solr7896-login-page
Commit: c31d8df715b0aec025aca2eaa3cadefc89204e89
Parents: 08f7e67
Author: Jan Høydahl <ja...@apache.org>
Authored: Mon Sep 24 14:43:50 2018 +0200
Committer: Jan Høydahl <ja...@apache.org>
Committed: Mon Sep 24 14:43:50 2018 +0200
----------------------------------------------------------------------
solr/CHANGES.txt | 2 +-
.../src/authentication-and-authorization-plugins.adoc | 10 ++++++++++
solr/webapp/web/js/angular/app.js | 2 +-
3 files changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c31d8df7/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 3e22b42..500da1b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -529,7 +529,7 @@ New Features
* SOLR-11913: SolrJ SolrParams now implements Iterable<Map.Entry<String, String[]>> and also has a stream() method
using it for convenience. (David Smiley, Tapan Vaishnav)
-* SOLR-7896: Add a login page to Admin UI (janhoy)
+* SOLR-7896: Add a login page to Admin UI, with initial support for Basic Auth (janhoy)
* SOLR-11924: Added the ability to listen to changes in the set of active collections in a cloud
in the ZkStateReader, through the CloudCollectionsListener. (Houston Putman, Dennis Gove)
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c31d8df7/solr/solr-ref-guide/src/authentication-and-authorization-plugins.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/authentication-and-authorization-plugins.adoc b/solr/solr-ref-guide/src/authentication-and-authorization-plugins.adoc
index 971dbcd..dabd869 100644
--- a/solr/solr-ref-guide/src/authentication-and-authorization-plugins.adoc
+++ b/solr/solr-ref-guide/src/authentication-and-authorization-plugins.adoc
@@ -157,6 +157,16 @@ Solr has one implementation of an authorization plugin:
* <<rule-based-authorization-plugin.adoc#rule-based-authorization-plugin,Rule-Based Authorization Plugin>>
+== Authenticating in the Admin UI
+
+Whenever an authentication plugin is enabled, authentication is also required for all or some operations in the Admin UI. The Admin UI is an AngularJS application running inside your browser, and is treated as any other external client by Solr.
+
+When authentication is required the Admin UI will presented you with a login dialogue. The authentication plugins currently supported by the Admin UI are:
+
+* `BasicAuthPlugin`
+
+If your plugin of choice is not supported, you will have to interact with Solr sending HTTP requests instead of through the graphical user interface of the Admin UI. All operations supported by Admin UI can be performed through Solr's RESTful APIs.
+
== Securing Inter-Node Requests
There are a lot of requests that originate from the Solr nodes itself. For example, requests from overseer to nodes, recovery threads, etc. Each Authentication plugin declares whether it is capable of securing inter-node requests or not. If not, Solr will fall back to using a special internode authentication mechanism where each Solr node is a super user and is fully trusted by other Solr nodes, described below.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c31d8df7/solr/webapp/web/js/angular/app.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/app.js b/solr/webapp/web/js/angular/app.js
index 3f781cd..fe686fe 100644
--- a/solr/webapp/web/js/angular/app.js
+++ b/solr/webapp/web/js/angular/app.js
@@ -402,7 +402,7 @@ solrAdminApp.config([
$httpProvider.interceptors.push("httpInterceptor");
$httpProvider.interceptors.push("authInterceptor");
// Tell the BasicAuth plugin that we are Admin UI so it can serve us a 'Authorization: xBasic xxxx' header
- // so that the browser will not intercept the login dialogue
+ // so that the browser will not interfer with the login dialogue
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
})
.directive('fileModel', function ($parse) {