Page 1 of 1

Multifactor Authentication - Change Login Dialog

PostPosted: Tue Oct 15, 2019 1:08 pm
by reversedr
Hi,

We are trying to change the login dialog to support multifactor authentication.
We managed to add a new text field, using the process described here "http://doc.sibvisions.com/vaadin/replace_login" as reference.
We extended DBSecurityManager to add the further security validations.
We have overridden ISecurityManager.validateAuthentication to add the custom logic.

We are having trouble understanding how can we access the the new text field value on this method.
We have access to the ISession object, but this object has the "standard" credential information already set, and no way to access extra information posted on the login dialog.

Is there any standard way of doing this?

Thank You

Re: Multifactor Authentication - Change Login Dialog

PostPosted: Tue Oct 15, 2019 1:25 pm
by Support@SIB
The Session is the server-side object. The client has a connection instance.

So every connection connects to a session. If you want to send additional information, use the connection to set the properties, e.g.

Code: Select all
connection.setProperty(String, Object)

(see doc.sibvisions.com)

It's important to set the properties before opening the connection. "All properties" will be available on the server-side and accessible via session. This is the standard procedure.