-
April 17th, 2007, 08:57 PM
#1
Just out of curiosity, are there any special steps on the client side that need to be taken to use ssl encryption? I know that in the LS server config file there are places configure the ssl part of the server, are there any such settings that need to be done on the client side?
I'm thinking that part of my problem might be that the client is not set up to use ssl correctly. In my scenario the data is sent ssl from the browser, it goes through a couple of firewalls (where the ssl encryption is stripped off) and then continues to the LS server (no longer ssl encrytped). Does anyone know of any special configuration setting that need to be made to make this situation work? Will it work this way? If I have to I can run ssl all the way to the LS server.
Thanks for the help!
-
April 18th, 2007, 11:37 AM
#2
The protocol used to connect to Lightstreamer Server is always the same used to download the Master Push-Page. So if the Master Push-Page is downloaded through HTTP, then HTTP will be used for all the connections to Lightstreamer Server. It the Master Push-Page is downloaded through HTTPS, all the connections to Lightstreamer Server will use HTTPS.
The port used to connect to Lightstreamer Server can be set through the setLSPort method.
-
April 18th, 2007, 04:28 PM
#3
Ok, I was able to get everything up and working on my development system... Now here comes the fun part. The primary difference between my development and production system is that the production system has to have all incoming traffic validated by a Windows Active Directory server. When I try the exact same setup from the production system LS will not connect. The Windows status bar (IE6 and IE7) says "Lightstreamer is Connecting...", but it never actually connects. Are there any tools or variables that I could look at try and see why it is not actually connecting? I have a feeling that it is because of the AD domain server and authorization process, but I would like to have a way to verify this. Any Ideas? Thanks!
-
April 18th, 2007, 05:03 PM
#4
Hi, I was just able to get hold of one of our IT guys to check out the server logs. He was saying that it looks like the LS Client is trying to talk to the LS server via standard http traffic. I know that I am calling the page via https. I am assuming that if I am calling the main web site pages via https that the master push page is also being recieved via https. The only traffic that is allowed through our firewalls is https (ssl on port 443). Is there a way that I can check to verify that LS from the client is trying to connect via https? Is there anyplace that I can force it to use ssl?
-
April 18th, 2007, 08:13 PM
#5
Hello again, so I kept digging...
Using a http sniffer, I took a look at what was being sent from the client to the LS server. I noticed that I was getting "HTTP/1.1 403 Forbidden" errors on all calls being sent to my LS server (https://site2.system.com). Digging around a little more I noticed that the difference between the calls that were making it through to the server had a "Authorization" line in the header that is missing from the LS calls.
The following is the line in the header that I believe is causing the issue:
Authorization: Basic dXNlck5hbWU6UGFzc3dvcmQ=
From what I can tell this is the section of code that authorizes the traffic with the AD domain server. How can I change the header so that this code is sent to the server whenever the lightstreamer client has to make a call??
-
April 19th, 2007, 10:18 AM
#6
Lightstreamer's authentication scheme is based on an application-level session-id and does not support the HTTP Basic Authentication Scheme (that in any case can be provided by the Web server).
So the canonical architecture has the Web server authenticate the user through any preferred authentication scheme (including HTTP basic authentication). Then the browser connects to Lightstreamer Server sending some code received from the web server through the username and password fields. This information is validated through the Metadata Adapter, that will check it against the Web server or the directory server.
That means that straight HTTP or HTTPS communication should be allowed by the network infrastructure, delegating the authorization management (for the interaction with Lightstreamer Server) to the application itself (i.e. client + Metadata Adapter).
-
April 19th, 2007, 08:09 PM
#7
That sounds good on paper... If you could just convince our IT department to allow us to do that...
I was afraid that this was going to be the case.
Thanks for the help!
-
February 10th, 2008, 01:21 AM
#8
Alessandro,
The authentication scheme you mentioned - "LS uses session_id based authentication'.
Does this mean LS verifies the session_id from the browser with the web server? - how reliable is this over https? Can we depend on this for a production level app? Trying to understand how this works.
If this is not recommended, do you recommend us implementing 'notifyUser()' in the MD adapter?
Thanks,
Kal
Similar Threads
-
By Mone in forum Client SDKs
Replies: 1
Last Post: July 10th, 2012, 06:06 PM
-
By RichPratt in forum Adapter SDKs
Replies: 7
Last Post: June 7th, 2010, 09:38 AM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: February 18th, 2010, 11:14 PM
-
By jondcruz in forum General
Replies: 1
Last Post: September 18th, 2009, 09:13 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:40 AM.
Bookmarks