
Stephane Passignat (BPSIS) asked a question.
Custom Authentication Module fails
Hi,
I've created this custom authentication module, deploy it in /opt/Progress/DataDirect/Hybrid_Data_Pipeline/Hybrid_Server/ddcloud/keystore/plugins, then created a user using this module but it's impossible to log-in, neither to see its classloading .
- import com.ddtek.cloudservice.plugins.auth.javaplugin.JavaAuthPluginException;
- import com.ddtek.cloudservice.plugins.auth.javaplugin.JavaAuthPluginInterface;
-
- import java.util.HashMap;
- import java.util.logging.Logger;
-
- public class BpsisAuthModule implements JavaAuthPluginInterface {
- static {
- Thread.dumpStack();
- new Throwable().printStackTrace();
- }
-
- Logger logger;
-
- public boolean authenticate(String username, String password, String ipAddress) throws JavaAuthPluginException {
- final String x = "BPSIS Auth: " + username + "," + password + "," + ipAddress;
- if (logger != null) {
- logger.info("BPSI-Auth: " + x);
- } else {
- System.err.println(x);
- }
- return true;
- }
-
- public void destroy() {
- }
-
- public void init(HashMap<String, Object> hashMap, Logger logger) {
- this.logger = logger;
- }
- }
in the logs I only see [main] [system].[initialize environment] ServiceClassLoader[added=auth-bpsis.jar] but no stack traces...
here are the logs:
When I look at the user from Tenant, the authentication module is not displayed properly:
Service Id: 33