IIS Extension
With IIS Extension, you can configure two-factor authentication in web applications that use Forms Authentication and are deployed on the Microsoft Internet Information Services (IIS) platform.
Two-factor authentication is supported only for applications that use Forms Authentication.
Two-factor authentication is implemented with authentication by the domain password and by a second factor — a one-time password or a push notification in the Axidian Key application.
In IIS Extension, you can authenticate with the following authenticators:
- Email OTP
- Hardware OTP
- Hardware TOTP
- Passcode
- SMS OTP
- Software OTP
- Telegram Provider (in the mode of sending one-time passwords and push notifications with login confirmation)
- the Axidian Key mobile application (in the mode of sending one-time passwords and push notifications with login confirmation)
Examples of IIS Extension deployment:
- Configuring one-factor and two-factor authentication in Remote Desktop Web Access (RDWeb) with IIS Extension
- Configuring OWA through 1FA in ActiveSync with IIS Extension
Prerequisites
To use the IIS Extension module:
- Install Windows Password Provider on the computer with Core Server installed.
- When using the HTTPS protocol connection, install a client certificate on each Core Server.
- Install and configure IIS Extension.
- Configure IIS.
- Configure the integration of IIS Extension with the business application.
- If required, specify the optional settings.
Install and configure IIS Extension
To install the module:
Run the
Axidian.IIS.Extension-<version number>.x64.en-us.msiinstallation file located atAxidian Access <version number>/Axidian IIS Extension/<version number>and follow the steps of the installation wizard. If required, you can change the installation folder.Open Windows Registry Editor.
In the
HKEY_LOCAL_MACHINE\SOFTWARE\Axidian-ID\SrvLocator2section, modify the following parameters:- In the
ServerUrlBaseparameter, specify the URL of your Core Server in the formathttp(s)://full_dns_server_name/am/core. - In the
IsIgnoreCertErrorsparameter, specify the value 0 or 1. This parameter stands for verifying the server certificate; with the value 1, certificate errors are ignored.
- In the
In the
HKEY_LOCAL_MACHINE\SOFTWARE\Axidian-IDsection, in theIISHTTPModulesubsection, create the following parameters:- The
LSUrlstring parameter. In the parameter value, specify the URL of your Log Server in the formathttp(s)://full_dns_server_name/ls/api. - The
ProviderIdstring parameter. This is an optional parameter. In the value, specify the identifier of the provider that becomes the default provider at the first login.
Possible
ProviderIdvalues- SMS OTP {EBB6F3FA-A400-45F4-853A-D517D89AC2A3}
- Email OTP {093F612B-727E-44E7-9C95-095F07CBB94B}
- Passcode {F696F05D-5466-42b4-BF52-21BEE1CB9529}
- Software OTP {0FA7FDB4-3652-4B55-B0C0-469A1E9D31F0}
- Hardware OTP {AD3FBA95-AE99-4773-93A3-6530A29C7556}
- Hardware TOTP {CEB3FEAF-86ED-4A5A-BD3F-6A7B6E60CA05}
- Axidian Key (only in the push notification mode) {DEEF0CB8-AD2F-4B89-964A-B6C7ECA80C68}
- Telegram Provider {CA4645CC-5896-485E-A6CA-011FCC20DF1D}
- The
Configure IIS
This instruction describes a configuration example for Exchange 2016.
To configure IIS:
In IIS Manager, open the application that will use IIS Extension (for Outlook Web Access, this is owa) and go to the Modules section.
In the Actions menu, click Configure Native Modules, select the Axidian modules, and click OK.
Integrate IIS Extension with a business application
Two-factor authentication must be configured separately for each target application.
To configure the integration:
Open Windows Registry Editor.
In the
HKEY_LOCAL_MACHINE\SOFTWARE\Axidian-ID\IISHTTPModulesection, create a section with the name of the application or site in IIS. The value can be arbitrary.In the created section, create the following parameters:
AuthCookie— a string parameter. The name of the cookie used for authentication in the target application. It is determined experimentally for each application. To get the parameter value from the F12 IE Developer Toolbar console:In the Network section, click Enable network traffic capturing.
Authenticate in the application.
Go to the Details section, to the Cookies tab.
Find the value in the Key column.
isMFAEnabled— a DWORD parameter. Enables two-factor authentication.LoginURL— a string parameter. The relative URL that the application login form data is POSTed to. It must start with a slash (/). The URL is specified relative to the target site.MatchTargetRedirect— a DWORD parameter. With the value 1, the page for entering the second factor is displayed before going to the main page. The target page is not saved in the buffer; after the second factor is entered, the transition to the main page occurs (theTargetURLparameter).OTPURL— a string parameter. An alternative URL for sending the second factor authentication form data. By default, the form data is sent to the same URL as the target application form data. The IIS module intercepts it and substitutes the original data if authentication was successful, or does not substitute it if authentication failed and the target application displays its own authentication error. The value must be used if the target application does not treat the form data as erroneous for authentication, or if authentication errors must be shown to the user explicitly. Thus, the value can be left empty.PasswordField— a string parameter. The value of thenameattribute of the password field of the application login form.LoginReferer— a string parameter. Allows you to separate requests from applications that use the same login page. Create a parameter with a unique value for each application.ImportantIf the server address matches the application name, the request source for the login page contains this application name even if you set different
LoginReferervalues.Example
For example, the server address is ecp.axidian.local. You have configured two LoginReferer values — %2fowa and %2fecp. The login page for both the OWA application and the ECP application will contain the server name part %2fecp.axidian.local.
To solve this problem, specify the following in LoginReferer:
- for OWA: %2fecp.axidian.local%2fowa
- for ECP: %2fecp.axidian.local%2fecp
RedirectToTarget— a DWORD parameter. The transition to the target page.TargetURL— a string parameter. The URL of the target page the user gets to after authentication in the application.ImportantFor Exchange 2013 and 2016, specify
/owa(without the trailing slash /); for Exchange 2010, specify/owa/(with the trailing slash /).UsernameField— a string parameter. The value of thenameattribute of the username field of the application login form.
The values of all the parameters — LoginURL, PasswordField, UsernameField — are contained in the authentication form of the target application and can be obtained, for example, with the Internet Explorer F12 Developer Tools.
If you use the OWA application, disable Basic authentication in Registry Editor. Create a DWORD parameter IsBasicDisabled with the value 1 at the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Axidian-ID\IISHTTPModule\IISConfig\owa.
Optional settings
- Disabling the second factor request
- Changing the localization
- Configuring the session storage in the cache
- Options for writing the domain name for OWA
Example of the module operation
Open the OWA application and enter the domain login and password.
After the correct input, a window prompting for the second factor appears.
After the one-time password is entered successfully, the application opens.