- 8 minutes to read

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.

  • The supported IIS authentication settings for every Nodinite web site.
  • Guidance for least-privilege service accounts and IIS_IUSRS membership.
  • Remediation for common authentication and access issues.
  • Links to focused pages for Kerberos, IIS features, and HTTP errors.

Scope and Page Boundaries

Use this page for the authentication baseline and account configuration.

Understanding Authentication in Nodinite v7

On Windows Server, every Nodinite Core Service 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:

flowchart LR User["fa:fa-user Users' browsers"] Sender["fa:fa-paper-plane Log Event senders"] IdP["fa:fa-id-card Active Directory or
OAuth 2.0 identity provider"] subgraph Host["Nodinite Core Services Server - IIS on Windows Server"] WC["fa:fa-globe Web Client site
Windows Authentication or OAuth"] API["fa:fa-cloud Web API site
Windows Authentication or OAuth"] LAPI["fa:fa-cloud-arrow-down Log API site
Anonymous, optional OAuth"] end SQL["fa:fa-database SQL Server
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

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 anonymously unless OAuth is enabled. Each site reaches the Configuration Database 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).

IIS Application Pools
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
Web Client ❌ Disabled ✅ Enabled Users sign in with their Windows credentials
Web API ✅ Enabled ✅ Enabled Callers authenticate with Windows credentials; the /isalive health check answers without credentials
Log API ✅ Enabled ❌ Disabled Accepts Log Events anonymously; to require a bearer token, see Protect the Log API with OAuth 2.0 and Entra ID
Logging Service ✅ Enabled ❌ Disabled Called by the other Core Services
Monitoring Service ✅ Enabled ❌ Disabled Called by the other Core Services
MCP Server ❌ 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.

Web Client

End-users authenticate against the Nodinite Web Client site with their Windows credentials or through the OAuth 2.0 identity provider. Nodinite has Role-based security, and a Nodinite Administrator grants access to individual users or to Windows AD Groups. 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 Manager Authentication pane for the Nodinite Web Client site: Anonymous Disabled, Basic Disabled, Windows Authentication Enabled
IIS Authentication settings for the Web Client site in an environment that uses Windows Authentication.

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
IIS Authentication settings for the Web API site: Windows Authentication for callers, Anonymous for the health check.

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 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. See also the prerequisites for:

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

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 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
IIS Authentication settings for the Logging Service site.

IIS Manager Authentication pane for the Nodinite Monitoring Service site: Anonymous Enabled, Windows Authentication Disabled
IIS Authentication settings for the Monitoring Service site.

IIS Manager Authentication pane for the Nodinite MCP Server site: Anonymous Disabled, Windows Authentication Enabled
IIS Authentication settings for the MCP Server site in an environment that uses Windows Authentication.

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 right.

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:

  • Read configuration files - Access web.config, redirection.config, and other IIS configuration files
  • Run the web applications - Load the site and its modules in IIS
  • Access encryption keys - Read machine keys for encrypted configuration sections
  • 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
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
"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, HTTP SPNs for IIS, and, after a v6 to v7 upgrade, Kerberos Transparent Login After v7 Upgrade.

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 in TLS Troubleshooting for the scripts and the security impact.

Next Steps