Page 1 of 1

Key storage OnCheckUserKey being called twice.

Posted: Fri 26 Feb 2016 21:34
by snorkel
Hi,
I implemented the OnCheckUserKey event and it is being called twice, is it supposed to be called twice?

I have logging in the event and it's showing the event firing twice.
Then after the second time the user is logged in and everything is fine.

This is the output from the log:
(It's a log queue that pushes every second)

02/26/2016 03:13:48 PM:[Logon] User xxxxx logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)
02/26/2016 03:13:50 PM:[Logon] User xxxxX logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)

I noticed that the second time it is called the clientinfo.data is not nil like the first time so I put this in there for now:

Code: Select all

      if assigned(ClientInfo.Data) then
       begin
               Accept:=true;
               exit;
       end; 

Re: Key storage OnCheckUserKey being called twice.

Posted: Wed 02 Mar 2016 16:38
by ViktorV
Yes, you are right. Currently, on attempt to connect to the server, the OnCheckUserKey event is called twice. We are investigating this behavior of SecureBridge and will inform about the result.

Re: Key storage OnCheckUserKey being called twice.

Posted: Wed 02 Mar 2016 22:16
by snorkel
ViktorV wrote:Yes, you are right. Currently, on attempt to connect to the server, the OnCheckUserKey event is called twice. We are investigating this behavior of SecureBridge and will inform about the result.

Ok, Thanks :-)

Re: Key storage OnCheckUserKey being called twice.

Posted: Wed 13 Apr 2016 06:48
by ViktorV
Bug with repeated calls to the TScStorage.OnCheckUserKey event handler is fixed. The new SecureBridge build 7.0.1 including the fix is already available for download now.