Authenticating with a .NET client |
The .NET client (see image below) deals with the GeoStream server directly. If the .NET client is known as a 'friend', that is, the IP address is in the range detailed in the FriendsFile at the server end, no authentication is required, otherwise, authentication is required.
With a .NET client, a default repository needs to be set up on the client side using the GeoStreamRepository class. The authentication token is handled internally by the GeoStreamRepository class when the class is instantiated.
Example – setting default repository for a friend
Repository.Default = new GeoStreamRepository("http://myServer");
Example – setting default repository for a user
Repository.Default = new GeoStreamRepository( "clientUserName", //user name "clientPassword", //password 1440, //duration - minutes "http://localhost/GeoStream" //server );