mirror of https://github.com/apache/lucene.git
SOLR-7703: Authentication plugin is now loaded using the RessourceLoader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9152164afb
commit
82bb97f005
|
@ -324,6 +324,9 @@ Other Changes
|
|||
* SOLR-7750: Change TestConfig.testDefaults to cover all SolrIndexConfig fields
|
||||
(Christine Poerschke via Ramkumar Aiyengar)
|
||||
|
||||
* SOLR-7703: Authentication plugin is now loaded using the RessourceLoader.
|
||||
(Avi Digmi via Anshum Gupta)
|
||||
|
||||
================== 5.2.1 ==================
|
||||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
|
||||
|
|
|
@ -260,12 +260,7 @@ public class CoreContainer {
|
|||
|
||||
// Initialize the filter
|
||||
if (pluginClassName != null) {
|
||||
try {
|
||||
Class cl = Class.forName(pluginClassName);
|
||||
authenticationPlugin = (AuthenticationPlugin) cl.newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
|
||||
throw new SolrException(ErrorCode.SERVER_ERROR, e);
|
||||
}
|
||||
authenticationPlugin = getResourceLoader().newInstance(pluginClassName, AuthenticationPlugin.class);
|
||||
}
|
||||
if (authenticationPlugin != null) {
|
||||
authenticationPlugin.init(authenticationConfig);
|
||||
|
|
Loading…
Reference in New Issue