---
title: "IIS Authentication Settings for Secure Nodinite Web Applications: Best Practices and Troubleshooting"
description: Configure IIS Authentication settings for the Nodinite v7 Core Services web sites. Learn which sites use Windows Authentication or Anonymous Authentication, how the App Pool service account is set in the Portal, IIS_IUSRS group membership, and how to fix common access issues.
---

# :fa-user-secret: IIS Authentication Settings

Configure your :Nodinite: web applications securely in IIS. This guide explains the supported authentication settings for each :Nodinite: v7 web site on Windows Server, how the App Pool service account is chosen, and how to restore the settings when someone has changed them in IIS.

* :fa-list-check: The supported IIS authentication settings for every :Nodinite: web site.
* :fa-shield-halved: Guidance for least-privilege service accounts and IIS_IUSRS membership.
* :fa-triangle-exclamation: Remediation for common authentication and access issues.
* :fa-compass: Links to focused pages for Kerberos, IIS features, and HTTP errors.

## :fa-sitemap: Scope and Page Boundaries

Use this page for the authentication baseline and account configuration.

* [IIS Windows Features][] - Required server features and module prerequisites.
* [HTTP SPNs for IIS][IIS HTTP SPN] - Kerberos, HTTP SPNs, and `useAppPoolCredentials`.
* [NTLM vs Kerberos Authentication][] - Performance troubleshooting for Negotiate fallback.
* [HTTP Error 405.0 - Method Not Allowed][] - Verb-blocking and WebDAV troubleshooting.
* [IIS Troubleshooting Overview][IIS Overview] - Central IIS triage and symptom routing.

## :fa-network-wired: Understanding Authentication in Nodinite v7

On Windows Server, every :Nodinite: [Core Service][Core Services] is its own IIS web site with its own **App Pool**. Two different identities are involved, and mixing them up is the most common cause of access problems:

* **The caller's identity** - who calls the site. End users authenticate with the mode chosen in the Portal ([Step 2: Auth → Auth mode][Auth mode]): Windows Authentication or OAuth 2.0 / OpenID Connect.
* **The App Pool identity** - the service account the site runs as, and the account that connects to SQL Server. You set it in the Portal ([Step 2: Auth → Service Account Defaults][Service account defaults], or per service in [Step 4: Servers → Core platform services][Core platform services]); a [gMSA][] is supported.

<div class="mermaid">
flowchart LR
    User["fa:fa-user Users' browsers"]
    Sender["fa:fa-paper-plane Log Event senders"]
    IdP["fa:fa-id-card Active Directory or<br/>OAuth 2.0 identity provider"]
    subgraph Host["Nodinite Core Services Server - IIS on Windows Server"]
        WC["fa:fa-globe Web Client site<br/>Windows Authentication or OAuth"]
        API["fa:fa-cloud Web API site<br/>Windows Authentication or OAuth"]
        LAPI["fa:fa-cloud-arrow-down Log API site<br/>Anonymous, optional OAuth"]
    end
    SQL["fa:fa-database SQL Server<br/>Configuration and Log Databases"]
    User -->|"1. Sign in"| IdP
    User -->|"2. Caller identity"| WC
    WC -->|"3. Calls on behalf of the user"| API
    Sender -->|"Log Events"| LAPI
    API -->|"4. App Pool identity"| SQL
    LAPI -->|"App Pool identity"| SQL
    style User fill:#2678BD
    style Sender fill:#2678BD
    style IdP fill:#9E59BB
    style WC fill:#93d16d
    style API fill:#93d16d
    style LAPI fill:#E47528
    style SQL fill:#3F827B
</div>

*Diagram: users (blue) authenticate against Active Directory or an OAuth 2.0 identity provider (purple), and the [Web Client][] and [Web API][] (green) check the caller's identity and apply [Roles][]. The [Log API][] (orange) accepts [Log Events][Log Event] anonymously unless OAuth is enabled. Each site reaches the [Configuration Database][ConfigDB] and [Log Databases][] (teal) as its App Pool identity.*

### Supported Settings per Web Site

The CLI configures these settings when it creates the sites. If someone has changed them in IIS, restore them, or rerun the package ([Update Nodinite v7][Updating Nodinite v7]).

![IIS Application Pools][6]  
*Example of :Nodinite: App Pools in the IIS management console.*

The table shows the IIS settings the CLI sets when the environment uses Windows Authentication. Each site is named `Nodinite-<Environment>-<Service>` in IIS Manager, and every App Pool runs as the service account from the Portal.

||Web site|Anonymous Authentication|Windows Authentication|Notes|
|:---:|---|---|---|---|
|:fa-globe:|[Web Client][]|❌ Disabled|✅ Enabled|Users sign in with their Windows credentials|
|:fa-cloud-sun:|[Web API][]|✅ Enabled|✅ Enabled|Callers authenticate with Windows credentials; the `/isalive` health check answers without credentials|
|:fa-cloud-arrow-down:|[Log API][]|✅ Enabled|❌ Disabled|Accepts [Log Events][Log Event] anonymously; to require a bearer token, see [Protect the Log API with OAuth 2.0 and Entra ID][Log API OAuth]|
|:fa-hard-drive:|[Logging Service][]|✅ Enabled|❌ Disabled|Called by the other Core Services|
|:fa-watch-fitness:|[Monitoring Service][]|✅ Enabled|❌ Disabled|Called by the other Core Services|
|:fa-robot:|[MCP Server][MCP Endpoint]|❌ Disabled|✅ Enabled|MCP clients authenticate with Windows credentials|

>[!NOTE]
>**Basic Authentication** and **Forms Authentication** are always **Disabled** for :Nodinite: web sites. The App Pools run with **No Managed Code**, because the .NET 10 Hosting Bundle hosts the sites; see [IIS Windows Features][].

>[!IMPORTANT]
>If the App Pool service accounts are **not** members of the Windows local administrators group, you must add them to the local **IIS_IUSRS** group, see [IIS_IUSRS Group Membership](#fa-users-cog-iis_iusrs-group-membership).

## :fa-globe: Web Client

End-[users][Users] authenticate against the :Nodinite: [Web Client][] site with their Windows credentials or through the OAuth 2.0 identity provider. :Nodinite: has [Role][Roles]-based security, and a :Nodinite: Administrator grants access to individual users or to [Windows AD Groups][What is a Windows AD Group?]. With Windows Authentication and a domain account or gMSA as App Pool identity, register the HTTP SPNs for the Web Client host name, see [HTTP SPNs for IIS][IIS HTTP SPN].

![IIS Manager Authentication pane for the Nodinite Web Client site: Anonymous Disabled, Basic Disabled, Windows Authentication Enabled][0]  
*IIS Authentication settings for the [Web Client][] site in an environment that uses Windows Authentication.*  

## :fa-cloud-sun: Web API

The [Web API][] authenticates each caller individually, with Windows Authentication or an OAuth 2.0 bearer token, and :Nodinite: [Roles][] decide what the caller can see and do. Calls to SQL Server use the App Pool identity, so that account needs the SQL rights listed in the [Web API Prerequisites][]. To call the Web API from scripts, see [Managing the Web API][].

![IIS Manager Authentication pane for the Nodinite Web API site: Anonymous Enabled, Basic Disabled, Windows Authentication Enabled][1]  
*IIS Authentication settings for the [Web API][] site: Windows Authentication for callers, Anonymous for the health check.*  

## :fa-cloud-arrow-down: Log API

The [Log API][] can be invoked from just about any service and application. It uses Anonymous Authentication by default, so requests that create new [Log Events][Log Event] are accepted without Windows credentials and written to the databases as the App Pool identity. To require a bearer token, see [Protect the Log API with OAuth 2.0 and Entra ID][Log API OAuth]. See also the prerequisites for:

* [Configuration Database][ConfigDB]  
* [Log Databases][]  

![IIS Manager Authentication pane for the Nodinite Log API site: Anonymous Enabled, Basic Disabled, Windows Authentication Disabled][2]  
*IIS Authentication settings for the [Log API][] site, with Anonymous Authentication only.*  

## :fa-gears: Logging Service, Monitoring Service, and MCP Server

The [Logging Service][] and the [Monitoring Service][] are called by the other Core Services and run with Anonymous Authentication only. The [MCP Server][MCP Endpoint] authenticates its clients with Windows Authentication, like the Web Client.

![IIS Manager Authentication pane for the Nodinite Logging Service site: Anonymous Enabled, Windows Authentication Disabled][3]  
*IIS Authentication settings for the [Logging Service][] site.*  

![IIS Manager Authentication pane for the Nodinite Monitoring Service site: Anonymous Enabled, Windows Authentication Disabled][4]  
*IIS Authentication settings for the [Monitoring Service][] site.*  

![IIS Manager Authentication pane for the Nodinite MCP Server site: Anonymous Disabled, Windows Authentication Enabled][5]  
*IIS Authentication settings for the [MCP Server][MCP Endpoint] site in an environment that uses Windows Authentication.*  

## :fa-gears: Service Accounts for Other Components

You can run each Core Service, and each agent, with its own Windows Active Directory service account. To change the service account, change it in the Portal and rerun the package; review the prerequisites page of each component first. On Windows Server, the service identity needs the [Logon as a Service][How to set Logon as a Service right] right.

* [Logging Service][]  
* [Monitoring Service][]  
* [Monitoring Agents][Monitoring]  
* [Log Agents][Logging]  

## :fa-users-cog: IIS_IUSRS Group Membership

When running :Nodinite: web sites with **named service accounts** (instead of local administrators), you must add these accounts to the Windows built-in **IIS_IUSRS** group to ensure proper file system access and IIS permissions.

### Why IIS_IUSRS Group Membership Matters

The **IIS_IUSRS** group is a Windows built-in security group that grants the minimum permissions required for IIS application pools to function correctly. When you configure a service account that is **not** a local administrator, Windows requires explicit group membership to:

* :fa-folder-open: **Read configuration files** - Access `web.config`, `redirection.config`, and other IIS configuration files
* :fa-file-shield: **Run the web applications** - Load the site and its modules in IIS
* :fa-key: **Access encryption keys** - Read machine keys for encrypted configuration sections
* :fa-hard-drive: **Write temporary files** - Create temporary files the application needs

>[!TIP]
>**Best Practice:** Use the **IIS_IUSRS** group for least-privilege deployments instead of granting local administrator rights. This follows security hardening principles and reduces attack surface.

### How to Add Service Accounts to IIS_IUSRS

![IIS_IUSRS Group Membership][7]  
*Computer Management console showing the IIS_IUSRS group. Add your :Nodinite: service accounts here if they are not local administrators.*

#### Step-by-Step Instructions

1. **Open Computer Management** - Press `Win+R`, type `compmgmt.msc`, press Enter
2. **Navigate to Groups** - Expand `System Tools` > `Local Users and Groups` > `Groups`
3. **Open IIS_IUSRS** - Double-click the **IIS_IUSRS** group
4. **Add Service Accounts** - Click `Add...` and enter the App Pool service account(s) of the :Nodinite: web sites
5. **Apply Changes** - Click `OK` to save
6. **Restart IIS** - Run `iisreset` in an elevated command prompt or PowerShell

>[!IMPORTANT]
>**No restart required for Windows:** Group membership changes take effect immediately for **new logons**. However, existing IIS application pool processes must be restarted via `iisreset` to pick up the new group membership.

### Which Accounts Need IIS_IUSRS Membership?

|App Pool identity|IIS_IUSRS Required?|
|---|---|
|Named domain account or [gMSA][] that is **not** a local administrator|✅ **Yes**|
|Account that is a local administrator|❌ No|
|Built-in `ApplicationPoolIdentity` (for example `IIS APPPOOL\<site>`)|❌ No - Windows grants it automatically|

*This table shows which App Pool identities require IIS_IUSRS group membership.*

### Troubleshooting IIS_IUSRS Issues

|Symptom|Solution|
|---|---|
|"Cannot read configuration file due to insufficient permissions"|Ensure the service account is in IIS_IUSRS and has Read rights on `%windows%\system32\inetsrv\config`, see the [detailed troubleshooting guide][IISConfigurationFile]|
|"Access to the path is denied" when accessing the web application|Verify the IIS_IUSRS group has Read/Execute permissions on the :Nodinite: installation folder|
|Web application fails to start after changing the App Pool service account|Add the new service account to IIS_IUSRS, then run `iisreset`|

## Troubleshooting Authentication Issues

### Login Prompt Instead of Transparent Sign-In

With Windows Authentication, a password prompt usually means a missing HTTP SPN, a mismatch between the [SPN][] owner and `useAppPoolCredentials`, or a browser zone problem. Work through [Login prompt asks for a password][Login Prompt], [HTTP SPNs for IIS][IIS HTTP SPN], and, after a v6 to v7 upgrade, [Kerberos Transparent Login After v7 Upgrade][Kerberos Transparent Login].

### 401 Unauthorized When Accessing via Hostname Locally

Accessing the :Nodinite: Web Client via FQDN (e.g., `https://nodinite.contoso.com`) from the IIS server itself returns **401 Unauthorized**, but works from remote machines and via `https://localhost`. The CLI deployment validation can fail the same way when it verifies the HTTPS binding locally.

The Windows **loopback security check** causes this. It is enabled by default on all Windows installations and blocks local access via a hostname that doesn't match the machine name when Windows Authentication is used; adding the FQDN to the hosts file does not bypass it. The fix is to allow your :Nodinite: hostname in `BackConnectionHostNames` (recommended) or to disable the check. Follow [401 Unauthorized When Accessing via Hostname Locally][TLS 401 Loopback] in TLS Troubleshooting for the scripts and the security impact.

## :fa-hand-point-right: Next Steps

* :fa-server: [IIS Troubleshooting Overview][IIS Overview]  
* :fa-id-badge: [HTTP SPNs for IIS][IIS HTTP SPN]  
* :fa-user-lock: [NTLM vs Kerberos Authentication][]  
* :fa-lock: [IIS Windows Features][]  

## :fa-link-horizontal: Related Topics

* :fa-user-plus: [How to set Logon as a Service right][]  
* :fa-globe: [HTTP Error 405.0 - Method Not Allowed][]  
* :fa-forward-step: [Step 2: Auth][Auth mode]  
* :fa-forward-step: [Step 4: Servers → Core platform services][Core platform services]  
* :fa-globe: [Web Client Prerequisites][]  
* :fa-cloud-sun: [Web API Prerequisites][]  
* :fa-cloud-arrow-down: [Log API Prerequisites][]  
* :fab fa-windows: [What is a Windows AD Group?][]  

[0]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_WebClient_WindowsAuthentication.png
[1]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_WebAPI_WindowsAuthentication.png
[2]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_LogAPI_WindowsAuthentication.png
[3]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_LoggingService_WindowsAuthentication.png
[4]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_MonitoringService_WindowsAuthentication.png
[5]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IIS_Authentication_MCPServer_WindowsAuthentication.png
[6]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IISAppPools.png
[7]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Install/AppPoolRights.png

[Auth mode]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#auth-mode
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core platform services]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Core Services]:{ndr}/Core%20Services/Overview.md
[gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[How to set Logon as a Service right]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[HTTP Error 405.0 - Method Not Allowed]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/HTTP%20Error%20405.0%20-%20Method%20Not%20Allowed.md
[IIS HTTP SPN]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/HTTP%20SPN%20for%20IIS.md
[IIS Overview]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[IIS Windows Features]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Windows%20Features.md
[IISConfigurationFile]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Cannot%20read%20configuration%20file%20due%20to%20insufficient%20permissions.md
[Kerberos Transparent Login]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Hardening/Kerberos%20Transparent%20Login%20After%20v7%20Upgrade.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log API OAuth]:{ndr}/Core%20Services/Log%20API/Scenarios/Protect%20the%20Log%20API%20with%20OAuth%202.0%20and%20Entra%20ID.md
[Log API Prerequisites]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Logging]:nodiniteDoc:/Logging
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Login Prompt]:{ndr}/Core%20Services/Web%20Client/Troubleshooting/Login%20Prompt%20You%20for%20a%20Password.md
[Managing the Web API]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md
[MCP Endpoint]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[Monitoring]:nodiniteDoc:/Monitoring
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[NTLM vs Kerberos Authentication]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/NTLM%20vs%20Kerberos%20Authentication.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Service account defaults]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#service-account-defaults
[SPN]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SPN.md
[TLS 401 Loopback]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Hardening/TLS%20Troubleshooting.md#401-unauthorized-when-accessing-via-hostname-locally
[Updating Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web API Prerequisites]:{ndr}/Core%20Services/Web%20API/Getting%20started/1.%20Prerequisites.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Web Client Prerequisites]:{ndr}/Core%20Services/Web%20Client/Getting%20started/1.%20Prerequisites.md
[What is a Windows AD Group?]:{ndr}/Administration/3.%20Access%20Management/3.%20Windows%20AD%20Groups/Features/What%20is%20a%20Windows%20AD%20Group.md