Forms Authentication
The following procedures are for deploying Forms authentication:
Enable Forms Authentication in IIS
- Open IIS Manager. The easiest way is to search for IIS in the Start menu on the server machine.
- In the Connections pane on the left-hand side, expand the connections until you see the Wavepoint site.
- Click the Wavepoint site once to highlight in blue, then double-click the Authentication icon.
- Ensure the following options are enabled or disabled:
-
Anonymous Authentication: Enabled
-
ASP.NET Impersonation: Enabled
-
Basic Authentication: Disabled
-
Forms Authentication: Enabled
-
Windows Authentication: Disabled
-
Specify the Connection String
In Windows Explorer, navigate to C:\inetpub\wwwroot\Wavepoint and open Web.config in a text editor (Notepad++ or XMLSpy). In the Web.config file, update the existing default connection string for your server. For example:
<connectionStrings>
<add name="DefaultConnection" connectionString="Server=172.18.230.55\arcgis2k8r2;Database=MinervilleFiber;
user id=aspnet;Password=aspnet;" providerName="System.Data.SqlClient"/>
</connectionStrings>
Enable Forms Authentication in the Web.config
If necessary, navigate to C:\inetpub\wwwroot\Wavepoint and open Web.config in a text editor (Notepad++ or XMLSpy). There, you can set the authentication mode as Forms.
<authentication mode="Forms">
forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
Create and Manage Users
For user management, you must create a new database instance and execute an SQL script. Note that Oracle is not currently supported for Wavepoint user management. Therefore, Schneider Electric recommends running these scripts against SQL Server Express or something similar.
-
If you are using Windows/AD Authentication, the Logoff, Registered Users, and Register New User buttons are not available in the Wavepoint application.
-
If you are using Forms Authentication, those buttons are available in the Wavepoint application.
Create New Database Instance
Locate and Run SQL Script
In MS-SQL Server Management Studio, open the File: "C:\inetpub\wwwroot\Wavepoint\App_Data\create schema.sql" and Execute/Run this script.
Configure the Database Connection String in IIS
- Open IIS Manager. The easiest way is to search for IIS in the Start menu of the server machine.
- Expand the Sites folder, expand Default Web Site, and click once on Wavepoint to highlight it.
- Double-click Connection Strings.
- Click the DefaultConnection once to highlight it, then click Edit.
- Populate the Edit String Connection dialog with your database information. Ensure you click the Custom button and enter the connection string for your database.
- Click OK.
Register New User and Verify Login
Open a web browser and navigate to the Wavepoint application http://[WAVEPOINTSERVER]/wavepoint. Log in as an Administrator and Register a New User. Verify that you are able to successfully log in as the newly created user.