Bosch_Sebastian
Occasional Observer

Login Module - Access HTTP Request

Hi,

we are trying to create a new Login Module but we struggle to get the HTTP info from the original Request.

The code looks like this:

 @Override
    public boolean login() {
        try {
            Callback[] callbacks = {new WebCallback()};
            Logging.logInfo("login ...", getClass());

            this.callbackHandler.handle(callbacks);
         
    (....)

And when we test the code we get an error like this:

ERROR 16.02.2023 13:53:48.460 (com.bosch.bgn.login.UserDataServiceLoginModule): Authentication error
FSVersion=5.2.220210.80235#6849;JDK=11.0.18 64bit Red Hat, Inc.;OS=Linux 3.10.0-1160.80.1.el7.x86_64 amd64;Date=16.02.2023 13:53:48
de.espirit.firstspirit.server.authentication.RequestCallbackException
        at de.espirit.firstspirit.server.authentication.AuthenticationManagerImpl$RequestOnDemandCallbackHandler.handle(AuthenticationManagerImpl.java:497)
        at com.bosch.bgn.login.UserDataServiceLoginModule.login(UserDataServiceLoginModule.java:35)
        at de.espirit.firstspirit.server.authentication.AuthenticationManagerImpl.login(AuthenticationManagerImpl.java:288)
        at jdk.internal.reflect.GeneratedMethodAccessor348.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at de.espirit.firstspirit.io.DefaultServerHandler.callManager(DefaultServerHandler.java:67)
        at de.espirit.firstspirit.server.io.handler.ManagerCall.doCall(ManagerCall.java:143)
        at de.espirit.firstspirit.server.io.handler.CompactCall.handle(CompactCall.java:73)
        at de.espirit.firstspirit.server.io.MessageWorker.run(MessageWorker.java:50)
        at de.espirit.firstspirit.server.ExecutionManagerImpl$RunnableWrapper.call(ExecutionManagerImpl.java:664)
        at de.espirit.firstspirit.server.ExecutionManagerImpl$ExtendedCallable.call(ExecutionManagerImpl.java:629)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at de.espirit.common.util.BoundedExecutorService$RunnableWrapper.run(BoundedExecutorService.java:491)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
        at de.espirit.common.util.SuspendableThread.run(SuspendableThread.java:58)

 

We are quite clueless why it is not working as the above code is inspired by the original Login Modules in the FS core.

 

Anyone any idea?

 

Thank you!

0 Kudos
1 Reply
Bosch_Sebastian
Occasional Observer

No one any idea on this?

0 Kudos