XLCubed is now FluenceXL. The new wiki can be found here: https://help.fluencexl.com/ |
Dual Authentication
Contents
[hide]Requirement
There may be some circumstances where you need XLCubedWeb reports to be available via 2 different authentication methods, for example Windows Authentication for internal users and Basic Authentication for external users. Please note this would require an additional server license.
Solution
The approach to solve this is to create 2 copies of the XLCubedWeb website and create a shared repository. With this approach the reports can be published to 1 website, but be immediately available on both.
Create copy of website
The first step is to create a copy of the website, for example assuming the default website (set as windows authentication) is installed in c:\inetpub\wwwroot\xlcubedweb. Copy the entire XLCubedWeb folder to a new folder (e.g. XLCubed).
Update IIS
The copy website needs to be set up as an application:
- Open Internet Information Services Manager (inetmgr.exe)
- Under the Sites node, open the website in which XLCubed Web Edition should be made available (usually the Default Web Site).
- Right-click on the new folder (XLCubed) and select Convert to Application.
- In the Convert to Application dialog, ensure that the XLCubed application pool is selected and, if necessary, choose the correct path.
- Change the website authentication method to "Basic" (either using IIS on the XLCubedWeb configuration application). If using IIS to switch to Basic, ensure the web.config on the new website is udpated to reflect that: Web.config
You can test the website is working at this stage (although the repository will currently be a static copy)
Note this step is not necessary if you are using the SQL repository.
To share the repository between the 2 websites you need to replace the Repository folder with a "Symbolic Link" using MKLink [1]. To do this:
- Delete the new repository folder: c:\inetpub\wwwroot\xlcubed\Repository
- In a Command prompt (with administrative access) navigate to the website: c:\inetpub\wwwroot\xlcubed
- Run the following command to create the link:
- MKLink /D Repository c:\inetpub\wwwroot\xlcubedweb\repository