Skip to main content

Integrate with IIS

Support level: Community

What is IIS?

Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web.

-- https://www.iis.net

This guide uses authentik's proxy provider to protect an IIS-hosted site.

Preparation

The following placeholders are used in this guide:

  • iis.company is the FQDN of the IIS site that users access.
  • authentik.company is the FQDN of the authentik installation.
info

This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.

authentik configuration

To support the integration of IIS with authentik, you need to create an application/provider pair in authentik and assign it to a proxy outpost.

Create an application and provider in authentik

  1. Log in to authentik as an administrator and open the authentik Admin interface.

  2. Navigate to Applications > Applications and click New Application to open the application wizard.

    • Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
    • Choose a Provider type: select Proxy Provider as the provider type.
    • Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
      • Set Mode to Proxy.
      • Set External host to https://iis.company.
      • Set Internal host to the URL of the IIS backend site as reached by the authentik proxy outpost, such as http://localhost:8080.
    • Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
  3. Click Submit to save the new application and provider.

Configure proxy outpost

The proxy provider requires an authentik proxy outpost. If you do not already have a proxy outpost, follow the outpost documentation to create and deploy one.

Add the IIS application to a proxy outpost that will serve it:

  1. Log in to authentik as an administrator and open the authentik Admin interface.
  2. Navigate to Applications > Outposts.
  3. Click the edit icon for the proxy outpost.
  4. Under Available Applications, select the IIS application and move it to Selected Applications.
  5. Click Update to save your changes.

IIS configuration

Use this option when the authentik proxy outpost should receive requests for https://iis.company.

  1. Configure DNS or your reverse proxy so that iis.company routes to the authentik proxy outpost.
  2. Configure the IIS backend site so that it is reachable from the authentik proxy outpost at the Internal host URL.
  3. If the IIS backend site runs on the same Windows server, use a separate binding or port for the backend site, such as http://localhost:8080.

No SSO configuration is required in IIS for this option. The authentik proxy outpost authenticates the user before forwarding allowed requests to IIS.

Configuration verification

To confirm that authentik is properly configured with IIS, open the IIS site. You should be redirected to authentik before the IIS site is shown.

Resources