---
title: "Step 2: Auth – Install Nodinite v7"
description: "Step 2 for installing Nodinite v7: choose Windows Authentication or OAuth 2.0 / OIDC, set the administrator and service account defaults, map the OAuth blocks for Web Client, Web API, Log API, and MCP Server, and configure Secret Management."
---

# :fa-forward-step: Step 2: Auth

Choose the sign-in model for the new :Nodinite: [Environment][]. The Portal stores these values in the generated package, and the installer uses them to configure the [Web Client][], [Web API][], [Log API][], and [MCP Server][MCP Endpoint CS], and to create the first administrator so that you can sign in after the installation.

This step follows [Step 1: Basics][Step01] and comes before [Step 3: Infrastructure][Step03]. You choose the mode once per Environment; to switch later, follow [Migrate Authentication Method][].

![Auth step for the Contoso Environment Test: Windows auth with the administrator NodiniteAdmin and the service account svc-nodinite in the domain CONTOSO, and the auto-generated certificate, then Next to Infrastructure, animated walkthrough (7.12)][1]  
*Animated walkthrough: keep **Windows auth**, enter the first administrator's domain, account, and email, enter the default service account under **Service account defaults**, keep **Auto-generate certificate (recommended)**, and click **Next**.*  

Click **Auth** in the step bar, or **Next** in [Step 1: Basics][Step01], to open the **Authentication** step.

![Auth Mode panel with Windows auth selected and OAuth2 next to it (7.12)][2]  
*The **Auth Mode** panel: **Windows auth** (selected), which uses [Windows Authentication][], or **OAuth2**.*  

## Auth Mode

Choose one authentication model for the Environment:

* [Windows auth](#windows-authentication): Active Directory and integrated security, for domain-joined [Windows Server][] installations
* [OAuth2](#oauth-2.x-oidc): OpenID Connect with an identity provider such as Microsoft Entra ID; required for the container runtimes

The rest of the page changes with this choice.

<div class="mermaid">
flowchart TB
    subgraph Both["fa:fa-shield-halved Both modes"]
        direction LR
        MODE{"Auth Mode"} -->|"Windows auth"| WIN["fab:fa-windows Windows settings"]
        MODE -->|"OAuth2"| SAD
        WIN --> SAD["fa:fa-user-gear Service Account Defaults"]
        SAD --> SM["fa:fa-key Secret Management"]
    end
    subgraph OAuth["fa:fa-key OAuth2 settings"]
        direction LR
        DISC["fa:fa-magnifying-glass Discovery URL"] --> IC["fa:fa-robot Installation Client"]
        IC --> WC["fa:fa-globe Web Client"]
    end
    subgraph Aud["fa:fa-id-card OAuth2 audiences and claims"]
        direction LR
        WA["fa:fa-cloud-sun Web API"] --> LA["fa:fa-cloud-arrow-down Log API"]
        LA --> MCP["fa:fa-plug MCP Server"]
        MCP --> CL["fa:fa-id-card Nodinite Claims"]
    end
    Both -->|"OAuth2 only"| OAuth
    OAuth --> Aud
    style MODE fill:#2678BD,color:#fff
    style WIN fill:#3F827B,color:#fff
    style DISC fill:#9E59BB,color:#fff
    style IC fill:#9E59BB,color:#fff
    style WC fill:#9E59BB,color:#fff
    style WA fill:#9E59BB,color:#fff
    style LA fill:#9E59BB,color:#fff
    style MCP fill:#9E59BB,color:#fff
    style CL fill:#9E59BB,color:#fff
    style SAD fill:#93d16d
    style SM fill:#93d16d
</div>

*Diagram: the Auth step in Portal order. Windows auth (teal) adds the first administrator. Both modes share the service account defaults (Domain or Workgroup, optional [gMSA][]) and the [Secret Management][] certificate (green). OAuth2 (purple) then needs the Discovery URL, the Installation Client, and one block per [Core Service][Core Services], with the audience and, for the MCP Server, the scope, plus the [Nodinite Claims](#nodinite-claims) that map to [Roles][] through [Policies][What is a Policy?].*  

## Windows Authentication

When **Windows auth** is selected, the page asks for the administrator and the service account defaults. On Windows Server, the IIS web sites use Windows Authentication; see [IIS Authentication settings][] and, for Kerberos, [HTTP SPN for IIS][].

### Windows settings

Enter the initial administrator account and domain. The installer creates this first [User][Users], so that you can sign in to the [Web Client][] after the installation.  
![Windows settings panel with the Administrator domain CONTOSO, the Administrator account NodiniteAdmin, and the Administrator email (7.12)][11]  
*The **Windows settings** panel: the domain, the account, and the optional email of the first administrator.*  

| Mandatory | Variable | Default | Description |
|---|---|---|---|
| :fa-square-plus: | Authentication Method | `Windows` | Uses Active Directory and integrated security |
| :fa-square-plus: | Administrator domain | `<DomainName>` | Domain prefix for account names |
| :fa-square-plus: | Administrator account | `<NodiniteAdminUsrAccountName>` | Initial administrator account |
| :fa-square-plus: | Administrator email | e.g. `nodiniteadmin@contoso.com` | Optional; populates the [User][Users] entry and is used by the [E-mail Alarm Plugin][Email] with :Nodinite: [Monitor Views][] |

## Service Account Defaults

This section is the same for Windows auth and OAuth2. Decide whether the Environment runs in Domain mode or Workgroup mode, and whether to use [gMSA accounts][gMSA]. gMSA requires the default Domain mode. By default, all services use the same account; you can override it per service in [Step 4: Servers][Step04 Core platform services].

| Mandatory | Variable | Default | Description |
|---|---|---|---|
| | Workgroup installation | Off | Turn on for a server that isn't domain-joined: all service and administrator accounts are then local Windows accounts on that server, and gMSA and multi-server designs are unavailable |
| :fa-square-plus: | Domain Name | `<DomainName>` | Domain of the default service account, in NetBIOS format (`CONTOSO`) or UPN/FQDN format (`contoso.com`) |
| :fa-square-plus: | Account Name | `<DefaultServiceAccountName>` | Account the services run as unless overridden; the Portal adds the domain as a prefix (`CONTOSO\`) or a suffix (`@contoso.com`), depending on its format |
| | Use gMSA (Group Managed Service Account) | Off | Runs every service as a group managed service account |

The service account needs the [Logon as a Service][] right on every server; the [Monitoring Service][] account also needs DCOM Local Activation permission ([Monitoring Service prerequisites][Monitoring Service Prerequisites]).

![Service account defaults panel with Workgroup installation off, the Domain Name CONTOSO, the Account Name svc-nodinite shown with the prefix CONTOSO, and Use gMSA off (7.12)][4]  
*The **Service account defaults** panel: the Portal shows the domain prefix in front of the account name.*  

If you use [gMSA accounts][gMSA], the account name must end with the `$` suffix, such as `N-Svc$`. The Portal validates this under the field and in a summary at the bottom of the step, and you can't continue while the account name is invalid. A gMSA also needs a pre-created certificate; see [Secret Management](#secret-management).

![Service account defaults panel with Use gMSA on and the error gMSA account names must end with a dollar sign under the account name svc-nodinite (7.12)][5]  
*gMSA validation: the account name must end with `$`.*  

![Summary at the bottom of the step: Fix 1 validation error before continuing, Auth - Service account (7.12)][14]  
*The summary at the bottom of the step lists every error, with the step and the field.*  

>[!IMPORTANT]
>A [gMSA account][gMSA] must exist in Active Directory before the installer runs; the installer does not create or manage gMSA accounts. The account also needs access to the certificate store used for secret management; see [Install Certificates for gMSA][].

## Secret Management

This section, also shared by both modes, configures the certificate that encrypts secrets, such as passwords and connection strings, in the installed Environment. See [Secret Management][] for how it works.

* Keep **Auto-generate certificate (recommended)** enabled unless your organization requires pre-provisioned certificates. Each service then creates its own certificate in the **CurrentUser** store of the account it runs as, at its first start; nothing is created in advance, and the installer has no certificate step.

![Secret Management Certificate Configuration panel with Auto-generate certificate (recommended) on (7.12)][10]  
*With **Auto-generate certificate (recommended)**, each service makes its own certificate.*  

* Turn it off to use a pre-created certificate, which a gMSA always needs. Then enter where it is: **Certificate Store Location** `LocalMachine` and **Certificate Store Name** `My` (fixed; **CurrentUser** can't be shared between the installer and the service account), and the **Certificate Subject**. A plain name gets the `CN=` prefix (`nodinite-secrets.contoso.com` becomes `CN=nodinite-secrets.contoso.com`); for a subject with several parts, enter it exactly as PowerShell shows it, such as `CN=host, O=Org`. With [gMSA][], see [Install Certificates for gMSA][].

![Secret Management Certificate Configuration panel for a shared gMSA: Certificate Store Location LocalMachine, Certificate Store Name My, and the Certificate Subject nodinite-secrets.contoso.com (7.12)][15]  
*With gMSA, certificate configuration is required: the certificate must be in `LocalMachine\My`.*  

## OAuth 2.x / OIDC

When **OAuth2** is selected, configure discovery and client settings from your identity provider.

* OAuth 2.x / OIDC requires TLS; set the certificate in [Step 4: Servers][Step04 TLS].
* Register the applications in the identity provider before you generate the package; for Microsoft Entra ID, follow [Register Nodinite Applications in Entra ID][Register Entra ID Apps].
* [Install Nodinite v7 - OpenID][OpenID Configuration] explains every field; [OpenID Field Mapping Quick Reference][] maps each Portal field to its Entra ID value.

The Portal shows the OAuth configuration as one large section; enter the values in the order the fields appear.

### OAuth2 settings

Enter the [Discovery URL](https://www.oauth.com/oauth2-servers/indieauth/discovery/)<sup>:fa-arrow-up-right-from-square:</sup> first, so that the identity metadata resolves before you continue with the client and API values ([field details][OpenID General]).

![OAuth2 settings panel with the Discovery URL of a Microsoft Entra ID tenant (7.12)][6]  
*The **Discovery URL** is the OpenID Connect discovery document of your identity provider.*  

### Installation Client

In **Installation Client**, enter, in this order:

* **Client ID**: the Application (client) ID of the client in your identity provider; for Microsoft Entra ID a GUID
* **Installation Client Scopes**: the scopes the CLI requests; type one and click **Add**
* **Installation Client Claims**: `KEY=VALUE` pairs, added with **+ Add** as a key and a value; the installed configuration needs at least one

The installer CLI authenticates as this client, without user interaction, for installations, updates, and maintenance tasks. The Portal doesn't store its secret: the CLI prompts for it, or you pass it with `--oauth2-agentinstall-secret` ([Step 7][Step07 Arguments]).

![Installation Client panel with a Client ID, the scope api://webapi/.default, and a role claim (7.12)][7]  
*The **Installation Client** panel: Client ID, scopes, and claims.*  

### Web Client

The **Web Client** section is the first OAuth application block in the lower half of the page. Complete these fields in the order shown ([field details][OpenID Web Client]):

* **Require HTTPS Metadata**: turn it on and keep it on. The installer rejects a discovery URL without HTTPS, so turning it off can't make an HTTP identity provider work.
* **Client ID**
* **Callback Path**: where the identity provider returns after sign-in, by default `/signin-oidc`
* **Signed-Out Callback Path**: where it returns after sign-out, by default `/signout-callback-oidc`
* **Signed-Out Redirect URI**: where the user lands after sign-out, such as `/`
* **Access Denied Path**: the page a signed-in user sees when access is denied, by default `/`
* **Scopes**: the scopes the Web Client requests at sign-in; the defaults `openid`, `profile`, `email`, and `offline_access` suit most identity providers

![Web Client panel with Require HTTPS Metadata on, a Client ID, the default paths, and the default scopes openid, profile, email, and offline_access (7.12)][16]  
*The **Web Client** panel with its defaults.*  

The Portal doesn't store the Web Client secret either: the CLI prompts for it, or you pass it with `--oauth2-webclient-secret` ([Step 7][Step07 Arguments]).

### Web API

After the Web Client, add the **Audiences** value for the **Web API**, the audience (`aud`) the Web API accepts in incoming tokens ([field details][OpenID Web API]).

![Web API panel with the audience api://contoso-nodinite-webapi (7.12)][17]  
*The **Web API** panel.*  

 Scripts and services that call the Web API request tokens for this audience; see [Call the Web API with OAuth 2.0 Client Credentials][Web API OAuth].

### Log API

Next, configure the **Log API** ([field details][OpenID Log API]):

* **Enable Authentication**: requires OAuth2 bearer tokens on the Log API. When it's off, the Log API accepts log submissions without authentication; leave it off only on an isolated network where every logging agent is trusted.
* **Audiences**

The Log API has its own app registration, with the Application ID URI `api://<client-id>` and `requestedAccessTokenVersion` 2. In **Audiences**, enter the plain Application (client) ID of that registration, not the `api://` URI. Callers request tokens with the scope `api://<logapi-client-id>/.default`.

![Log API panel with Enable Authentication on and the Log API client ID as audience (7.12)][13]  
*The **Log API** panel; see [Log API OAuth][].*  

For the app registration, app roles, and client setup, see [Protect the Log API with OAuth 2.0 and Entra ID][Log API OAuth].

### MCP Server

After the Log API, configure the **MCP Server** values ([field details][OpenID MCP Server]):

* **MCP Server Audiences**: the audiences the MCP Server accepts in OAuth2 tokens
* **Web Client MCP Server Scope**: the scope the Web Client requests for calls to the MCP Server, such as `api://mcp/.default`

![MCP Server panel with the audience api://contoso-nodinite-mcp and the scope api://contoso-nodinite-mcp/.default (7.12)][9]  
*The **MCP Server** panel.*  

For remote MCP clients, see [MCP Endpoint External Access][]; for hosting, see [MCP Endpoint in Core Services][MCP Endpoint CS].

### Nodinite Claims

The final OAuth block is **Nodinite Claims**, where you define the claims used for authorization ([field details][OpenID Claims]).

At least one pair is required: a user whose token matches no claim is denied access, administrators included. Click **+ Add** to add an entry.  

![Nodinite Claims panel with no values and the Add button (7.12)][8]  
*The **Nodinite Claims** panel before you add an entry.*  

Enter the key, then the value, one entry per value (comma-separated values aren't supported): for App Roles, the key `http://schemas.microsoft.com/ws/2008/06/identity/claims/role` and the app role value; for groups, the key `groups` and the group Object ID. The bare key `roles` doesn't match.  
![Nodinite Claims panel with an empty entry: groups or roles as the key, a group ID or role name as the value (7.12)][12]  
*An empty entry: the key (`groups` or the role claim) and the value (a group ID or a role name).*  

>[!NOTE]
>The input fields are case sensitive. Copy and paste the values.

After the installation, grant access in the Web Client by mapping [Claims][Claims Overview] to [Roles][] through [Policies][What is a Policy?].

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

* [:fa-forward-step: Step 3: Infrastructure][Step03]  
* [:fa-backward-step: Step 1: Basics][Step01]  

## :fa-link-horizontal: Related Topics

* [:fa-rocket: Install Nodinite v7][Main]  
* [:fa-lock: Install Nodinite v7 - OpenID][OpenID Configuration]  
* [:fab fa-microsoft: Register Nodinite Applications in Entra ID][Register Entra ID Apps]  
* [:fa-table: OpenID Field Mapping Quick Reference][OpenID Field Mapping Quick Reference]  
* [:fa-right-left: Migrate Authentication Method][Migrate Authentication Method]  
* [:fa-user-shield: gMSA accounts][gMSA]  
* [:fa-key: Secret Management][Secret Management]  
* [:fa-id-card: Claims Overview][Claims Overview]  
* [:fa-file-shield: What is a Policy?][What is a Policy?]  
* [Troubleshooting OAuth 2.0 Validation Failures][OAuth2Troubleshooting]  

[1]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/Portal_AddEnvironment_Auth.gif
[2]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTab.png
[4]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTab_ServiceAccountDefaults.png
[5]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTab_ServiceAccountDefaults_GMSANotValidExample.png
[6]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthDiscoveryURL.png
[7]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthInstallationClient.png
[8]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthClaims.png
[9]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthMCPEndpoint.png
[10]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabSecretManagement.png
[11]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/Auth_WindowsSettings.png
[12]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthClaims_EmptyEntry.png
[13]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthLogAPI.png
[14]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/Auth_ValidationSummary.png
[15]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabSecretManagement_gMSA.png
[16]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthWebClient.png
[17]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/AuthenticationTabOAuthWebAPI.png

[Claims Overview]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Email]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email.md
[Environment]:{ndr}/Getting%20Started/Menu%20-%20Environment.md
[gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[HTTP SPN for IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/HTTP%20SPN%20for%20IIS.md
[IIS Authentication settings]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[Install Certificates for gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Install%20Certificates%20for%20gMSA.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
[Logon as a Service]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[Main]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[MCP Endpoint CS]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[MCP Endpoint External Access]:{ndr}/AI/MCP%20Endpoint%20External%20Access.md
[Migrate Authentication Method]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Migrate%20Authentication%20Method.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Monitoring Service Prerequisites]:{ndr}/Core%20Services/Monitoring%20Service/Getting%20started/1.%20Prerequisites.md#what-windows-rights-does-the-monitoring-service-require
[OAuth2Troubleshooting]:{ndr}/Install%20and%20Update/Troubleshooting/OAuth%202.0/Troubleshooting%20OAuth2%20Validation%20Failures.md
[OpenID Claims]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#nodinite-claims-settings
[OpenID Configuration]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md
[OpenID Field Mapping Quick Reference]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/OpenID%20Field%20Mapping%20Quick%20Reference.md
[OpenID General]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#oauth-general-settings
[OpenID Log API]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#logapi-audiences
[OpenID MCP Server]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#mcp-server-settings
[OpenID Web API]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#webapi-audiences
[OpenID Web Client]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#oauth-web-client-settings
[Register Entra ID Apps]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID%20-%20EntraID.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Secret Management]:{ndr}/Install%20and%20Update/Troubleshooting/Secret%20Managment.md
[Step01]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/01%20-%20Basics.md
[Step03]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/03%20-%20Infrastructure.md
[Step04 Core platform services]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Step04 TLS]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Step07 Arguments]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md#passing-arguments-when-needed
[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 OAuth]:{ndr}/Core%20Services/Web%20API/Scenarios/Call%20the%20Web%20API%20with%20OAuth%202.0%20Client%20Credentials.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[What is a Policy?]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/What%20is%20a%20Policy.md
[Windows Authentication]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#windows-authentication
[Windows Server]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Windows%20Server.md