Click or drag to resize

Authenticating with a .NET client

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
The Authentication Process - Operation with .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.

GSfigure 2

Example – setting default repository for a friend

C#
Repository.Default = new GeoStreamRepository("http://myServer");

Example – setting default repository for a user

C#
Repository.Default = new GeoStreamRepository(
            "clientUserName", //user name
            "clientPassword", //password
            1440, //duration - minutes
            "http://localhost/GeoStream" //server
        );
Next Topic