Automatically switches to an area after a loss of connection in IBM Worklight

My problem is this:

I have an application protected with a security test for mobile devices that includes an LDAP server. The corresponding area is called LDAPrealm. I am using an authentication module + a forms-based LDAP user registration module.

When the connection to the desktop server is lost and then restored, I see that the current user is no longer authenticated in the LDAP area.

I want me to be able to re-authenticate the user without forcing him to re-enter the credentials.

However, since the user is still authenticated for other areas included by default in the security test for mobile devices, the background server does not re-request the client for credentials, which causes a j_security_check error when trying to send credentials.

As a side note, these credentials are stored in json encrypted storage for offline authentication and application use.

So my question is: Is it possible to get the server to request the client again for this LDAPrealm and use submitLoginForm to re-register?

More generally, is there a way to clear the user + device from all areas before trying to log in again?

Change the reasons: the previous error was caused by a typo

+4
1

, , ,

WL.Client.logout("LDAPRealm",{onSuccess:stealthed_relog});

WL.Client.connect() stealthed_relog , , .

, , , WL.Client.connect(), , WL.Client.connect .

edit: , (- , ),

login_clientside.submitLoginForm();

.

- ldap, , .

+4

Source: https://habr.com/ru/post/1542474/


All Articles