Lightstreamer .Net Adapter 1.7
|
Called by Lightstreamer Kernel through the Remote Server as a preliminary check that a user is enabled to make Requests to the related Data Providers. It is invoked upon each session request and it is called prior to any other session-related request. So, any other method with a User argument can assume that the supplied User argument has already been checked.
The User authentication should be based on the user and password arguments supplied by the client. The full report of the request HTTP headers is also available; they could be used in order to gather information about the client, but should not be used for authentication, as they may not be under full control by client code. See also the discussion about the <use_protected_js> Server configuration element, if available.
This method runs in the Server authentication thread pool, if defined.
void NotifyUser(string user, string password, IDictionary httpHeaders);
void NotifyUser(string user, string password, IDictionary httpHeaders);
Function NotifyUser(user As string, password As string, httpHeaders As IDictionary) As void
Parameters |
Description |
string user |
A User name. |
string password |
A password optionally required to validate the User. |
IDictionary httpHeaders |
An IDictionary-type value object that contains a name-value pair for each header found in the HTTP request that originated the call. The header names are reported in lower-case form. For headers defined multiple times, a unique name-value pair is reported, where the value is a concatenation of all the supplied header values, separated by a ",". One pair is added by Lightstreamer Server; the name is “REQUEST_ID” and the value is a unique id assigned to the client request. |
Exceptions |
Description |
in case the User name is not known or the supplied password is not correct. | |
in case the User is known but is not enabled to make further Requests at the moment. |