Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2012
    Location
    hyderabad
    Posts
    9

    User Authentication Issue

    Hi All,
    I want to create a user portfolio of stocks which displays users portfolio based on his profile.
    how can i create a users session??
    According to the attached pdf document (which i found in another thread), Client creates the session and sends it to Lightstreamer and lightstreamer verifies that credentials by connecting to the webserver or database.But im unable to send username and session to the lightstreamer.

    Im working portfolio demo in Lightstreamer5 Demos, But there is no user authentication in that demo.

    How can i retrieve user based information from lightstreamer??

    Can i find any explanation for user authentication with sample code..

    Thanks in advance.
    Attached Thumbnails Attached Thumbnails AuthorizationSequence.pdf  

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    The attached pdf refers to a configuration where Lightstreamer works together to a Web/Application server; in that scenario the actual authentication is handled by the legacy Web/Application server, irrespective of Lightstreamer.

    In order to better assist you, we need to understand if you are working with Lightstreamer together a Web/Application server or with Lightstreamer alone.
    Maybe you are just developing and you do not want introduce, for the moment, a Web/Application server?

  3. #3
    Member
    Join Date
    Apr 2012
    Location
    hyderabad
    Posts
    9
    Hi,
    Yes im working with Lightstreamer together a web server (Apache and php).
    I want to have a login page in my site where user logins and we will send that information to lightstreamer for user specific data.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Well karthik655,
    So what you need to do is to retrieve the login information (username, password or session-id) originated by your web/application server and set them on the LightstreamerClient.connectionDetails object before calling the LightstreamerClient.connect() method (please refer to setUser() and setPassword() here:http://www.lightstreamer.com/latest/...onDetails.html).
    Your MetaData Adapter receives this information in the notifyUser call where you can manage issues related to authentication, authorization, and entitlement.

 

 

Similar Threads

  1. Client Authentication via X.509
    By brianjohnson in forum General
    Replies: 3
    Last Post: March 12th, 2010, 03:14 PM
  2. User data into XML ?
    By quantri_vn87 in forum Adapter SDKs
    Replies: 3
    Last Post: October 29th, 2009, 03:16 PM
  3. Replies: 2
    Last Post: March 19th, 2009, 08:37 PM
  4. Authentication with Metadata Adapter
    By stephenlam in forum Adapter SDKs
    Replies: 4
    Last Post: December 12th, 2008, 11:52 AM
  5. How to Get the User and Password ?
    By arajeh in forum Adapter SDKs
    Replies: 1
    Last Post: July 30th, 2008, 11:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:57 AM.