Overview
Prior to Velocity 3.7 SP1 releases, the Velocity Web Service Client (VWSC) application used Anonymous Authentication mode which used the Forms Authentication Provider. As a result, when you initially hit the VWSC website, a login page displays and is authenticated by the Velocity web service.
Starting from Velocity 3.7 SP1 releases, the Administrator can disable Anonymous Authentication and define Windows Authentication to support Auto-login capability. For users logged in as an authorized Velocity operator in Velocity domain into Windows system on their device, the VWSC login page is by-passed to enable Auto-login feature.
Enabling Auto-Login using Windows Authentication Provider
The VWSC application uses Anonymous authentication by default. To enable auto-login capability using Windows Authentication you must make configuration changes to the following:
- IIS configuration
- VWSC website configuration
- Velocity database
- Browser settings
Configuring IIS for Windows Authentication in Windows 10 and Windows Server 2016
- Microsoft Windows 10
The steps below enable Windows Authentication in IIS where Velocity Web Client or VWSC bundle is installed.
- Go to Control Panel-> Programs.
- Locate and click on "Turn Windows Features on or off" link as shown in Figure 1.
Figure 1: Turn Windows Features ON or OFF in Programs
- In Windows Features dialog, expand Internet Information Services World Wide Web Services Security to see the available options as shown in Figure 2.
- Select the following highlighted options(if not selected already), and then click OK as shown in the below Figure 2.
Figure 2: Turn Windows Features ON/OFF
- World Wide Web Services-> Security-> Basic Authentication
- World Wide Web Services-> Security-> Request Filtering
- World Wide Web Services-> Security-> Windows Authentication
A progress dialog shows that Windows is building the selected feature changes.
- Click Close after Windows completes the requested changes as shown in Figure 3.
The Windows Authentication mode is enabled in IIS.
Figure 3: Completion of Requested Changes…
- Microsoft Windows Server 2016
The steps below enable Windows Authentication in IIS on Windows Server 2016 where Velocity Web Client or VWSC bundle is installed.
- Go to Run and type ServerManager and press Enter or click Server Manager button in the Windows taskbar.
The Server Manager Dashboard screen displays as shown in Figure 4.
- Click Add roles and features link in Dashboard.
Figure 4: Server Manager Dashboard
- Read the wizard instructions and click Next to continue as shown in Figure 5.
Figure 5:Before You Begin Menu
- In Select installation type choose Role-based or feature-based Installation radio button as shown in Figure 6.
Figure 6:Installation Type Menu
- Choose to Select a server from the server pool radio button as shown in Figure 7.
- Select the Windows Server 2016 from Server Pool and click Next.
Figure 7:Server Selection Menu
- Select the following highlighted options(if not selected already) and then click Next as shown in the below Figure 8.
- Select Server Roles. Choose the following options under Roles:
- Web Server (IIS) (20 of 43 Installed) Web Server (14 of 34 Installed) Security (1 of 9 Installed) Request Filtering (Installed)
- Web Server (IIS) (20 of 43 Installed) Web Server (14 of 34 Installed) Security (1 of 9 Installed) Basic Authentication
- Web Server (IIS) (20 of 43 Installed) Web Server (14 of 34 Installed) Security (1 of 9 Installed) Windows Authentication
Figure 8:Server Roles Menu
Skip to the Confirmation menu in the Add Roles and Features Wizard as shown in Figure 9.
- In Confirm installation selections click Install to enable Windows Authentication on Windows 2016 Server as shown in Figure 9.
Figure 9: Confirmation Menu
The Installation progress window display the progress of the Feature Installation as shown in Figure 10.
- Click Close after the installation is done.
Figure 10: Results in Feature Installation
Velocity Web Service Client Website Configuration
The Velocity Web Service Client Website configuration is done in the system where the Velocity Web Client and Website is installed or hosted.- On the desktop, click Start > Programs or All Programs -> Administrative Tools > Internet Information Services (IIS) Manager.
- On the left panel in connections, select User>Sites>Default Web Sites->VWSC.
- Double-click Authentication as shown in Figure 11.
Figure 11: VWSC Authentication in IIS Manager
- The VWSC Authentication window displays. Right click Anonymous Authentication to Disable or select Disable link as shown in Figure 12.
Figure 12: Disable Anonymous Authentication in IIS Manager
- Right click Windows Authentication to Enable or select Enable link as shown in Figure 13.
Except Windows Authentication all other authentications must be disabled as shown in Figure 14.
Figure 13: Enable Windows Authentication in IIS Manager
- Right click Windows Authentication and select Advanced Settings or click Advanced Settings link as shown in Figure 14.
Figure 14: Advanced Settings in Windows Authentication
- In Advanced Settings dialog box, select Accept from Extended Protection drop-down and click OK as shown in Figure 15.
Figure 15:Accept Option in Extended Protection drop-down
- In IIS Manager window, right click Default Web Site >All Tasks> Restart IIS for the changes to take place as shown below.
Restarting IIS in IIS Manager Window
Database Changes for Velocity Web Service Client
The Registry table must have the following Insert Statement if not already available.
- Go to SQL Manager as shown in Figure 16.
Figure 16:Connect to SQL Manager
- Connect to Microsoft SQL Server 2004 as shown in Figure:17.
Figure 17: Microsoft SQL Server 2014 User Dialog
- In Object Explorer select SYSTEM\DOMAIN->Velocity as shown in Figure 18.
Figure 18: Velocity in Object Explorer
- Click New Query. Enter the Insert statement as shown in Figure 19.
Figure 19: Enter New Query
INSERT INTO Registry VALUES(<Velocity Server name>,'VWSC','AuthenticationMode','AutoWindowsAuthentication');
For example:
INSERT INTO RegistryVALUES('SYSTEMNAME','VWSC','AuthenticationMode','AutoWindowsAuthentication');
- Select the INSERT statement and click Execute as shown in Figure 20.
Figure 20:Execute Statement
Configuring Browse r Settings
Auto login window appears only if the user is currently logged into their device as a member of the Velocity Users group in the Velocity domain and is an authorized Velocity operator.
Google Chrome browser operation is based on IE settings. Browsers such as Mozilla Firefox and Microsoft Edge prompts for username and password to login to VWSC Website.
- The following steps allow the user to configure IE without prompting their credentials over trusted sites:
- Open Internet Explorer.
- Click Tools menu and select Internet Options.
- Select Security tab.
- Click the Local Intranet Web content zone.
- Select Sites and Check Automatically Detect Intranet Network.
- Click Advance.
- Add VWSC website URL for example: <<System Name/ IP >>/VWSC, http://SYSTEMNAME/VWSC or http://<IP-Address>/VWSC.
- After you are done, Click Close and OK.
- Now, click the Custom level button.
- From the list of settings, scroll to the bottom to select Automatic logon only in Intranet zone.
- Click OK.
- The following steps allows the user to configure latest IE versions to add the website URL to work properly.
- Open Internet Explorer.
- Click Tools menu and select Internet Options as shown in Figure 21.
Figure 21: Tools->Internet Options in Internet Explorer
Follow step 3 till step 8 below in latest Google Chrome versions to complete the procedure.
- The following steps allows to add the website URL to work properly in latest Google Chrome versions:
- Go to Google Chrome and Settings as shown in Figure 22.
Figure 22: Browser Settings in Google Chrome
- Click Advanced-> System -> Open Proxy Settings as shown in Figure 26.
Figure 26:System Settings in Google Chrome
- In Internet Properties windows, select Security tab as shown in Figure 27.
Figure 27:Security tab in Internet Properties
- Click Sites in Internet Properties.
- The Local Intranet dialog window opens as shown in Figure 28.
- Select Advanced in Local Intranet as shown in Figure 28.
Figure 28:Local Intranet Settings
- In the Local Intranet dialog window enter "http://localhost/VWSC" and click Add as shown in Figure 29.
Figure 29: http://localhost/VWSC Added to Zone
- The URL is added to the Websites text area in Local Intranet. Click Close.
- The following steps allows to add the website URL to work properly in earlier Google Chrome versions:
- Go to Google Chrome-> Options.
- Select Under the Hood tab -> Change Proxy Settings as shown in Figure 30 below.
Figure 30: Under the Hood tab in Options
- Select Security (tab) -> Local Intranet/Sites -> Advanced -> Add "http://localhost/VWSC" to the URL List.
- Click Close.