AUTO AUTHENTICATION SAMPLE


Local Government Help > Documentation > Automatic Log-In

Now in GovClarity®, you can streamline your users' login process and make forgotten usernames and passwords a thing of the past with Auto-Authentication. The Auto-authentication option lets you use your agency's network login credentials to validate access to GovClarity® so users don't have to log into the product separately.

The code sample below shows how to set up auto-authentication to streamline your organization's GovClarity® login process. In this example, users are automatically logged into GovClarity® with their network credentials.

Automatic Log-In to GovClarity®


In order to allow city employees to use their Windows login as their authentication to GovClarity® a page to do that authentication and redirect the user's browser to GovClarity® needs to be installed on the city's internal web server. The following sample code can be used as the basis of this page by replacing the account name with the city's GovClarity® account name and modifying the Active Directory code to match the actual configuration of the city's Active Directory. The aspx page and its code behind the page are listed below:

Notes:
  • If you are implementing Auto-Login AFTER your users' login credentials to GovClarity® have already been created, your network login and GovClarity® login MUST match. If the logins don't match, you can add code to your AutoLogin page to "map" the network login to the GovClarity® login.
  • The IP of the server where the auto login page is installed needs to be registered with DMP's servers. Contact Support to register your server IP.
  • You must have an active GovClarity® account to run the sample.
File 1: AutoLogin.aspx

File 2: AutoLogin.aspx.cs

In addition, an assemblies element must be added to the web.configuration file that is in the same folder as the above files, as illustrated in the file below:

File 3: Web_Config

Related Information



© Copyright 2014 Digital Map Products About DMP | Contact Us