Package org.alfresco.solr.security
Class SecretSharedAuthPlugin
java.lang.Object
org.apache.solr.security.AuthenticationPlugin
org.alfresco.solr.security.SecretSharedAuthPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SecretSharedAuthPlugin
extends org.apache.solr.security.AuthenticationPlugin
SOLR Authentication Plugin based in shared secret token via request header.
This Web Filter is loaded from SOLR_HOME/security.json file, so it will be executed
for every request to SOLR. Authentication logic is only applied when Alfresco Communication
is using "secret" method but it doesn't apply to "none" and "https" methods.
-
Field Summary
Fields inherited from class org.apache.solr.security.AuthenticationPlugin
AUTHENTICATION_PLUGIN_PROP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleandoAuthenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) Verify that request header includes "secret" word when using "secret" communication method.voidMethods inherited from class org.apache.solr.security.AuthenticationPlugin
closeRequest
-
Constructor Details
-
SecretSharedAuthPlugin
public SecretSharedAuthPlugin()
-
-
Method Details
-
doAuthenticate
public boolean doAuthenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws Exception Verify that request header includes "secret" word when using "secret" communication method. "alfresco.secureComms.secret" value is expected as Java environment variable.- Specified by:
doAuthenticatein classorg.apache.solr.security.AuthenticationPlugin- Throws:
Exception
-
init
- Specified by:
initin classorg.apache.solr.security.AuthenticationPlugin
-
close
- Throws:
IOException
-