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

# <i class="fal fa-shield-halved" aria-hidden="true"></i> Configuration - Authentication

Authentication controls how the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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].

## <i class="fal fa-lock" aria-hidden="true"></i> Mandatory Access and Governance Baseline

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Role-based security on <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a> is mandatory regardless of authentication method.</strong> Authentication only proves identity. Authorization is still enforced by role membership on each <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a>.</p></div>
</aside>

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.

### <i class="fal fa-shield-check" aria-hidden="true"></i> 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][].

### <i class="fal fa-tags" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> platform architecture.

## <i class="fal fa-diagram-project" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 is configured with OpenID Connect.

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>Available from version 6.5.0.0 and later.</strong> OAuth 2.0 / OIDC support requires <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 with OpenID Connect configured. For earlier versions, use Windows authentication or impersonation.</p></div>
</aside>

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

## <i class="fal fa-list-check" aria-hidden="true"></i> Authentication Method Comparison

|Method|Use when|Credentials required|Notes|
|---|---|---|---|
|<i class="fab fa-windows" aria-hidden="true"></i> [Windows Authentication][]|Agent service account already has access to [Log Views][]|No extra credentials|Preferred when possible for simpler operations|
|<i class="fal fa-user-secret" aria-hidden="true"></i> Windows Authentication with Impersonation|Service account lacks rights to required [Log Views][]|Domain user + password|Use dedicated least-privilege account|
|<i class="fal fa-right-to-bracket" aria-hidden="true"></i> OAuth 2.0 / OIDC|<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 uses OpenID Connect with an Identity Provider|Client ID + Client Secret + Scope + IDP token endpoint|Recommended for modern centralized identity|

## <i class="fal fa-user-shield" aria-hidden="true"></i> 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.*  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Create a dedicated Non-Events <a href="https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/">role</a> for the service account and add it to all monitored <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a>. This approach often removes the need for impersonation.</p></div>
</aside>

## <i class="fal fa-user-secret" aria-hidden="true"></i> 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:

* <i class="fal fa-user" aria-hidden="true"></i> **Domain User** - Enter the Windows account to impersonate (format: `DOMAIN\User`).
* <i class="fal fa-key" aria-hidden="true"></i> **Password** - Enter the password for the impersonation account.

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

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Impersonation applies only to Windows authentication mode. If you use OAuth 2.0 / OIDC, configure client credentials instead.</p></div>
</aside>

<h2 id="oauth"><i class="fal fa-key" aria-hidden="true"></i> OAuth 2.0 / OIDC (Client Credentials)</h2>

When <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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|
|---|---|---|---|
|<i class="fal fa-shield-halved" aria-hidden="true"></i> **Authentication Method**|Enable OAuth 2.0 / OIDC|✅ Yes|Select **OAuth 2.0 Client Credentials**|
|<i class="fal fa-link" aria-hidden="true"></i> **Token URL**|**IDP Token Endpoint**|✅ Yes|For example `https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token`|
|<i class="fal fa-id-badge" aria-hidden="true"></i> **Client ID**|**Client ID**|✅ Yes|Application (client) ID from Identity Provider registration|
|<i class="fal fa-key" aria-hidden="true"></i> **Client Secret**|**Client Secret**|✅ Yes|Secret value for the registered application|
|<i class="fal fa-bullseye" aria-hidden="true"></i> **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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Paste the full URL <strong>exactly as copied</strong> from <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a>, including the complete query string (<code>logViewId</code> and URL-encoded <code>searchJson</code>). Do not trim parameters.</p></div>
</aside>

```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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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|

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>In OAuth mode, a successful token request does not by itself guarantee authorization to <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a>. Keep the <a href="https://docs.nodinite.com/administration/access-management/claims/features/what-is-a-claim/">Claims</a> + <a href="https://docs.nodinite.com/administration/access-management/policies/features/what-is-a-policy/">Policies</a> + <a href="https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/">Roles</a> chain aligned.</p></div>
</aside>

### Example OAuth 2.0 Values

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

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p><strong>Upgrading from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v6 to v7 with OAuth?</strong> After enabling OpenID Connect in v7, you must update existing Non-Events and ACK/NAK configurations (<a href="https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/12-update-agent-configurations/">Step 13</a>) with OAuth credentials. Monitoring fails until authentication settings are updated and properly setup.</p></div>
</aside>

## <i class="fal fa-arrows-rotate" aria-hidden="true"></i> 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.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-edit" aria-hidden="true"></i> [Non Events - Configuration - Non-Events][]  
* <i class="fal fa-edit" aria-hidden="true"></i> [Non-Events - Configuration - ACK-NAK][]  
* <i class="fal fa-calendar-alt" aria-hidden="true"></i> [Scheduling][Non-Events Monitoring Agent - Scheduling]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-edit" aria-hidden="true"></i> [Configuration][]  
* <i class="fal fa-key" aria-hidden="true"></i> [Claims][]  
* <i class="fal fa-shield-check" aria-hidden="true"></i> [Policies][]  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Install Nodinite Non-Events Monitoring Agent][Install]  
* <i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Monitoring Agents][]  
* <i class="fal fa-box-open" aria-hidden="true"></i> [Applications][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/NonEvent/AuthenticationTab_Windows.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/NonEvent/AuthenticationTab_WindowsImpersonation.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/NonEvents/RemoteConfig/AuthenticationTab-OpenID.png

[Applications]:https://docs.nodinite.com/administration/monitor-management/applications/features/what-is-an-application/
[Claims]:https://docs.nodinite.com/administration/access-management/claims/features/what-is-a-claim/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/non-events/getting-started/configuration/
[Install]:https://docs.nodinite.com/logging-and-monitoring/non-events/getting-started/install/
[Install Nodinite v7 - OpenID]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-openid/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Non Events - Configuration - Non-Events]:https://docs.nodinite.com/logging-and-monitoring/non-events/getting-started/configuration-non-events/
[Non-Events - Configuration - ACK-NAK]:https://docs.nodinite.com/logging-and-monitoring/non-events/getting-started/configuration-ack-nak/
[Non-Events Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[Non-Events Monitoring Agent - Scheduling]:https://docs.nodinite.com/logging-and-monitoring/non-events/features/interval-scheduling/
[Policies]:https://docs.nodinite.com/administration/access-management/policies/features/what-is-a-policy/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Step13]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/12-update-agent-configurations/
[Tag]:https://docs.nodinite.com/administration/customize/tags/features/what-is-a-tag/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[Windows Authentication]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/