EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to support authorization for WebSocket

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#33393
Posted: 05/25/2015 04:57:07
by Fanglin Liu (Priority Standard support level)
Joined: 05/14/2015
Posts: 33

I set the authorization of WebSocket like the following code:
_httpclient = new TElHTTPSClient();
_httpclient.RequestParameters.Authorization = authorizationValue;

But I get an error response from WebSocket server: "´┐ŻAuthentication did not happen within the timeout window of 30000 seconds.". It seems SecureBlackBox does not send the authorization to server. I set _httpclient.RequestParameters.Authorization to any faked string, the same occur. So I think SecureBlackBox does not send the authorization to server. Is that right? And How to set the authorization for WebSocket connection.
#33394
Posted: 05/25/2015 05:15:30
by Eugene Mayevski (EldoS Corp.)

Do you need to use username-password authentication? If yes, then you need to set corresponding parameters (RequestParameters.Username and RequestParameters.Password respectively).


Sincerely yours
Eugene Mayevski
#33395
Posted: 05/25/2015 05:22:14
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

I'm sorry, but current WebSockets implementation ignores authorization related headers. We'll address the problem and improved code will go to the next SecureBlackbox build.
#33405
Posted: 05/25/2015 20:57:48
by Fanglin Liu (Priority Standard support level)
Joined: 05/14/2015
Posts: 33

Thanks Both Vsevolod and Eugene a lot.

Reply

Statistics

Topic viewed 450 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!