---
title: How to Configure Authentication for the Nodinite Non-Events Monitoring Agent
description: Configure authentication for the Nodinite Non-Events Monitoring Agent. Learn when to use Windows authentication, Windows impersonation, or OAuth 2.0/OIDC, and how to set Client ID, Client Secret, Scope, and IDP token endpoint values.
---

# :fa-shield-halved: Configuration - Authentication

Authentication controls how the :Nodinite: [Non-Events Monitoring Agent][] calls [Log Views][] through the [Web Client][] APIs. This page centralizes authentication guidance for both [Non-Events Configuration - Authentication][Non Events - Configuration - Non-Events] and [ACK/NAK Configuration - Authentication][Non-Events - Configuration - ACK-NAK].

## :fa-lock: Mandatory Access and Governance Baseline

>[!IMPORTANT]
>**Role-based security on [Log Views][] is mandatory regardless of authentication method.** Authentication only proves identity. Authorization is still enforced by role membership on each [Log Views][].

For every Non-Events deployment, apply this baseline:

* Create a **dedicated Non-Events role** and grant it only the required access to relevant [Log Views][].
* Assign that dedicated [Role][Roles] to the identity used by the [Non-Events Monitoring Agent][] (service account, impersonated account, or mapped OAuth identity).
* Validate authorization after changes to authentication mode, [Log Views][], or [Role][Roles] membership.

### :fa-shield-check: OAuth Policy and Claims Mapping

If you use OAuth 2.0 / OIDC, include [Policies][] and [Claims][] as part of this same vital configuration.

* Define required [Claims][] for the OAuth identity context used by the Non-Events agent.
* Create [Policies][] with appropriate Claims and assign those Policies to the dedicated Non-Events [Role][Roles].
* Verify the Identity Provider issues expected Claims and that resulting Policies authorize access to the intended [Log Views][].

### :fa-tags: Use Tags to Manage Large Configuration Estates

When you maintain many Non-Events configurations and many [Log Views][], [Tags][Tag] become a vital operational feature for administrators and :Nodinite: users.

Use [Tags][Tag] consistently to:

* Group related Non-Events configurations and [Log Views][] by domain, team, environment, or business process.
* Speed up filtering, review, and troubleshooting across large monitoring estates.
* Keep configuration intent visible even though Non-Events configurations and [Log Views][] are closely tied by design but loosely coupled in the :Nodinite: platform architecture.

## :fa-diagram-project: Understanding Authentication Modes

You can configure one of three authentication methods based on your security model and platform setup:

* [Windows Authentication (default)](#fa-user-shield-windows-authentication) - Uses the Windows identity of the service account running the agent.
* [Windows Authentication with Impersonation](#fa-user-secret-windows-authentication-with-impersonation) - Uses a specific domain user account when the service account does not have required access.
* [OAuth 2.0 / OIDC (Client Credentials)](#oauth) - Uses Identity Provider-issued tokens when :Nodinite: v7 is configured with OpenID Connect.

>[!INFO]
>**Available from version 6.5.0.0 and later.** OAuth 2.0 / OIDC support requires :Nodinite: v7 with OpenID Connect configured. For earlier versions, use Windows authentication or impersonation.

<div class="mermaid">
graph TD
    A["fa:fa-shield-halved Authentication Tab"] --> B{"Environment and security model?"}
    B --> C["fa:fa-user-shield Windows Authentication"]
    B --> D["fa:fa-user-secret Windows Impersonation"]
    B --> E["fa:fa-key OAuth 2.0 / OIDC"]
    C --> F["fa:fa-database Log Views access using service account"]
    D --> G["fa:fa-user-check Log Views access using impersonated account"]
    E --> H["fa:fa-id-card Identity Provider token flow"]
    style C fill:#93d16d
    style D fill:#FFD525
    style E fill:#2678BD
    style F fill:#93d16d
    style G fill:#FFD525
    style H fill:#2678BD
</div>

*Diagram: Authentication decision flow showing when to choose Windows authentication, Windows impersonation, or OAuth 2.0 / OIDC based on access model and identity architecture.*

## :fa-list-check: Authentication Method Comparison

|Method|Use when|Credentials required|Notes|
|---|---|---|---|
|:fab fa-windows: [Windows Authentication][]|Agent service account already has access to [Log Views][]|No extra credentials|Preferred when possible for simpler operations|
|:fa-user-secret: Windows Authentication with Impersonation|Service account lacks rights to required [Log Views][]|Domain user + password|Use dedicated least-privilege account|
|:fa-right-to-bracket: OAuth 2.0 / OIDC|:Nodinite: v7 uses OpenID Connect with an Identity Provider|Client ID + Client Secret + Scope + IDP token endpoint|Recommended for modern centralized identity|

## :fa-user-shield: Windows Authentication

Windows authentication uses the service account identity of the [Non-Events Monitoring Agent][].

### Selected Choice Flow

<div class="mermaid">
graph LR
    A["fa:fa-server Non-Events Monitoring Agent service"] --> B["fa:fa-user-shield Service Account"]
    B --> C["fa:fa-database Log Views API access"]
    style A fill:#2678BD
    style B fill:#93d16d
    style C fill:#93d16d
</div>

*Diagram: Windows authentication flow where the agent service account directly accesses Log Views without additional credentials.*

![Authentication tab – Windows][1]  
*Example of Windows authentication selected in the Authentication tab.*  

>[!TIP]
>Create a dedicated Non-Events [role][Roles] for the service account and add it to all monitored [Log Views][]. This approach often removes the need for impersonation.

## :fa-user-secret: Windows Authentication with Impersonation

Use impersonation when the service account running the agent cannot access required [Log Views][].

### Selected Choice Flow

<div class="mermaid">
graph LR
    A["fa:fa-server Non-Events Monitoring Agent service"] --> B["fa:fa-user-secret Impersonated Domain User"]
    B --> C["fa:fa-database Log Views API access"]
    style A fill:#2678BD
    style B fill:#FFD525
    style C fill:#93d16d
</div>

*Diagram: Windows impersonation flow where the agent switches identity to a specific domain user to reach protected Log Views.*

![Authentication tab – Windows Impersonation][2]  
*Example of Windows impersonation selected in the Authentication tab.*  

Configure these values:

* :fa-user: **Domain User** - Enter the Windows account to impersonate (format: `DOMAIN\User`).
* :fa-key: **Password** - Enter the password for the impersonation account.

When impersonation is active, `(*)` appears in the Authentication tab label.

>[!NOTE]
>Impersonation applies only to Windows authentication mode. If you use OAuth 2.0 / OIDC, configure client credentials instead.

## :fa-key: OAuth 2.0 / OIDC (Client Credentials) {#oauth}

When :Nodinite: v7 uses OpenID Connect, configure OAuth 2.0 client credentials so the agent can request tokens from your Identity Provider.

### Selected Choice Flow

<div class="mermaid">
graph LR
    A["fa:fa-server Non-Events Monitoring Agent"] --> B["fa:fa-key Client ID + Client Secret"]
    B --> C["fa:fa-id-card Identity Provider Token Endpoint"]
    C --> D["fa:fa-ticket Access Token"]
    D --> E["fa:fa-database Log Views API access"]
    style A fill:#2678BD
    style B fill:#2678BD
    style C fill:#2678BD
    style D fill:#93d16d
    style E fill:#93d16d
</div>
*Diagram: OAuth 2.0 / OIDC client credentials flow where the agent requests an access token from the Identity Provider before calling Log Views APIs.*

![Authentication Tab - OAuth Protected][3]  
*Example of OAuth 2.0 / OIDC authentication enabled in the Authentication tab.*  

### OAuth Fields

Use this single table as the source of truth for the current OAuth implementation in the Non-Events configuration dialog.

|Current UI Label|Mapped guidance|Required|Notes|
|---|---|---|---|
|:fa-shield-halved: **Authentication Method**|Enable OAuth 2.0 / OIDC|✅ Yes|Select **OAuth 2.0 Client Credentials**|
|:fa-link: **Token URL**|**IDP Token Endpoint**|✅ Yes|For example `https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token`|
|:fa-id-badge: **Client ID**|**Client ID**|✅ Yes|Application (client) ID from Identity Provider registration|
|:fa-key: **Client Secret**|**Client Secret**|✅ Yes|Secret value for the registered application|
|:fa-bullseye: **Scope**|**Scope**|✅ Yes|Use API scope compatible with your [Web API][] registration, commonly `api://<webapi-client-id>/.default`|

### OAuth Configuration Guidance

* Enable **Protected** only when :Nodinite: v7 is configured with an Identity Provider (Azure AD, Entra ID, or other OIDC provider).
* Register the application in your Identity Provider and grant permissions to :Nodinite: [Web API][] resources.
* Ensure the **IDP Token Endpoint** is reachable from the server hosting the [Non-Events Monitoring Agent][].
* Store a copy of the **Client Secret** securely in your organization's secret management system.  
* For Azure AD and Entra ID setup details, follow [Install Nodinite v7 - OpenID Connect][Install Nodinite v7 - OpenID].

### OAuth 401 Troubleshooting Checklist

If a customer still gets **401 Unauthorized** after filling all OAuth fields, verify these items in order:

1. **Authentication Method is correct**: Set to **OAuth 2.0 Client Credentials**.
2. **Token URL tenant is correct**: The tenant in Token URL must match where the app registration exists.
3. **Scope targets the correct API**: Scope must point to the :Nodinite: Web API application audience, usually `api://<webapi-client-id>/.default`.
4. **Client Secret is valid**: Secret is not expired/revoked and copied as the secret value.
5. **Application permissions and consent**: Required API permissions are granted and admin consent is completed in Identity Provider.
6. **Role-based access is still configured**: The dedicated Non-Events [Role][Roles] still has access to required [Log Views][].
7. **Claims and Policies mapping is valid**: OAuth identity receives expected [Claims][], mapped through [Policies][], then assigned to the dedicated Non-Events [Role][Roles].
8. **Agent host can reach IdP and Web API**: No network/proxy/TLS blocks between [Monitoring Agent][Monitoring Agents] host, IdP Token URL, and :Nodinite: Web API.

### PowerShell 7 Quick Verification

Use these commands from the server where the Non-Events Monitoring Agent runs.

```powershell
# Set values from your OAuth configuration
$TenantId = "<tenant-id>"
$ClientId = "<client-id>"
$ClientSecret = "<client-secret>"
$Scope = "api://<webapi-client-id>/.default"
$TokenUrl = "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token"
$WebApiBaseUrl = "https://<nodinite-host>/api"

# 1) Basic network reachability to IdP token endpoint
Test-NetConnection -ComputerName "login.microsoftonline.com" -Port 443

# 2) Request token with client credentials
$Body = @{
    client_id = $ClientId
    client_secret = $ClientSecret
    scope = $Scope
    grant_type = "client_credentials"
}

try {
    $TokenResponse = Invoke-RestMethod -Method Post -Uri $TokenUrl -Body $Body -ContentType "application/x-www-form-urlencoded"
    $AccessToken = $TokenResponse.access_token
    "Token acquired. Expires in: $($TokenResponse.expires_in) seconds"
} catch {
    # Typical failures here are invalid_scope, invalid_client, or invalid_grant
    $_.Exception.Message
    throw
}

# 3) Decode token payload to verify audience and claims quickly
$TokenParts = $AccessToken.Split('.')
$Payload = $TokenParts[1].PadRight($TokenParts[1].Length + (4 - $TokenParts[1].Length % 4) % 4, '=')
$JsonPayload = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($Payload)) | ConvertFrom-Json
$JsonPayload | Select-Object aud, iss, appid, roles, scp, tid | Format-List

# 4) Call a protected Nodinite Web API endpoint with bearer token
Invoke-RestMethod -Method Get -Uri "$WebApiBaseUrl/logviews" -Headers @{ Authorization = "Bearer $AccessToken" }
```

### Verify with the Actual Log View API URL

Use the **Copy API URL** button on the target [Log Views][] configuration and test that exact URL with the acquired token.

>[!IMPORTANT]
>Paste the full URL **exactly as copied** from [Log Views][], including the complete query string (`logViewId` and URL-encoded `searchJson`). Do not trim parameters.

```powershell
# Paste the exact URL from the Log View "Copy API URL" button
$LogViewApiUrl = "https://Nodinite.contoso.com:40001/api/Search/FlowSearch?logViewId=0&searchJson=..."

Invoke-RestMethod -Method Get -Uri $LogViewApiUrl -Headers @{ Authorization = "Bearer $AccessToken" }
```

Expected behavior:

* If token and authorization are correct, you get a JSON response from the Log View API.
* If the URL is malformed or truncated, you usually get `404` or model/query parsing errors.
* If token is valid but authorization is missing, you typically get `401/403`.

Typical outcomes when URL-related configuration is wrong:

* Wrong host, port, or path -> `404 Not Found` or connection/TLS errors.
* Token is valid, but API audience is wrong (`aud` mismatch) -> `401 Unauthorized`.
* URL points to a Log View outside assigned Non-Events [Role][Roles] permissions -> `401/403` depending on deployment behavior.
* Stale copied URL (deleted or changed Log View context) -> request fails even though OAuth token acquisition succeeds.

### Common Misconfiguration Signatures

|If X is wrong|You typically see Z|What to fix|
|---|---|---|
|**Scope** does not use correct API audience or missing `/.default`|`AADSTS1002012` / `invalid_scope` when requesting token|Use `api://<webapi-client-id>/.default` for the registered :Nodinite: [Web API][] audience|
|**Client Secret** is wrong/expired|`invalid_client` / `AADSTS7000215` during token request|Create a new secret, copy the secret value exactly, update configuration|
|Token **aud** claim does not match :Nodinite: [Web API][]|401 from API even though token request succeeds|Request token for correct API scope and confirm `aud` in decoded token|
|Log View API URL host/port/path/query is incorrect|`404`, connection/TLS errors, or `401` when endpoint/tenant is mismatched|Use **Copy API URL** from [Log Views][] and retest with the same bearer token|
|Claims/Policies/Role chain missing for OAuth identity|401/403 from API after successful token acquisition|Map required [Claims][] to [Policies][], assign to a dedicated [Non-Events][Non-Events Monitoring Agent] [Role][Roles], verify [Log View][Log Views] access in the Role|

>[!TIP]
>In OAuth mode, a successful token request does not by itself guarantee authorization to [Log Views][]. Keep the [Claims][] + [Policies][] + [Roles][] chain aligned.

### Example OAuth 2.0 Values

* :fa-square-check: **Protected:** ✅ Checked
* :fa-id-badge: **Client ID:** `12345678-1234-1234-1234-123456789abc`
* :fa-key: **Client Secret:** `your_secure_client_secret`
* :fa-bullseye: **Scope:** `api://nodinite-prod-webapi/.default`
* :fa-link: **IDP Token Endpoint:** `https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token`

>[!WARNING]
>**Upgrading from :Nodinite: v6 to v7 with OAuth?** After enabling OpenID Connect in v7, you must update existing Non-Events and ACK/NAK configurations ([Step 13][Step13]) with OAuth credentials. Monitoring fails until authentication settings are updated and properly setup.

## :fa-arrows-rotate: Where to Configure Authentication

Use the Authentication tab to apply the authentication settings described above. The same settings apply to both Non-Events and ACK/NAK configurations.

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

* :fa-edit: [Non Events - Configuration - Non-Events][]  
* :fa-edit: [Non-Events - Configuration - ACK-NAK][]  
* :fa-calendar-alt: [Scheduling][Non-Events Monitoring Agent - Scheduling]  

## :fa-link-horizontal: Related Topics

* :fa-edit: [Configuration][]  
* :fa-key: [Claims][]  
* :fa-shield-check: [Policies][]  
* :fa-rocket: [Install Nodinite Non-Events Monitoring Agent][Install]  
* :fa-monitor-waveform: [Monitoring Agents][]  
* :fa-box-open: [Applications][]  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/NonEvent/AuthenticationTab_Windows.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/NonEvent/AuthenticationTab_WindowsImpersonation.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/AuthenticationTab-OpenID.png

[Applications]:{ndr}/Administration/2.%20Monitor%20Management/5.%20Applications/Features/What%20is%20an%20Application.md
[Claims]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Features/What%20is%20a%20Claim.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Non-Events/Getting%20started/3.%20Configuration.md
[Install]:{ndr}/Logging%20and%20Monitoring/Non-Events/Getting%20started/2.%20Install.md
[Install Nodinite v7 - OpenID]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Monitoring Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Non Events - Configuration - Non-Events]:{ndr}/Logging%20and%20Monitoring/Non-Events/Getting%20started/3a.%20Configuration%20-%20Non-Events.md
[Non-Events - Configuration - ACK-NAK]:{ndr}/Logging%20and%20Monitoring/Non-Events/Getting%20started/3b.%20Configuration%20-%20ACK-NAK.md
[Non-Events Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Non-Events Monitoring Agent - Scheduling]:{ndr}/Logging%20and%20Monitoring/Non-Events/Features/Interval%20Scheduling.md
[Policies]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/What%20is%20a%20Policy.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Step13]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/12%20-%20Update%20Agent%20Configurations.md
[Tag]:{ndr}/Administration/4.%20Customize/5.%20Tags/Features/What%20is%20a%20Tag.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Authentication]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md