LibreAuth

C# SDK

.NET / WinForms / Console · LibreAuth native client · Protocol v2 available (Enterprise)

C# .NET / WinForms / Console
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

LibreAuthV2.cs + Authority.cs + SessionGate.cs + OpsEnvelope/OpsBridge/OpsExecutor + Hardening.cs · Boot(client_build) → OnInit → MarkLicensed · HeartbeatOrDie after Check · NuGet NSec + BouncyCastle · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: csharp/LibreAuth.cs
  4. Ed25519 key: from init → Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
dotnet add package Newtonsoft.Json
// 1.x: sdk/csharp/LibreAuth.cs
// v2 Enterprise: sdk/csharp/LibreAuthV2.cs + OpsEnvelope.cs (define NSEC)

Code Example

C#
using LibreAuth.Sdk.V2;

SessionGate.Boot(19079);
var app = new LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/");
app.ClientBuild = 19079;
var init = await app.InitAsync();
SessionGate.OnInit(init);
await app.LicenseAsync(key, hwid);
SessionGate.MarkLicensed();
await SessionGate.HeartbeatOrDie(app);

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: csharp/LibreAuthV2.cs

C# · v2
using LibreAuth.Sdk.V2;

SessionGate.Boot(19079);
var app = new LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/");
app.ClientBuild = 19079;
var init = await app.InitAsync();
SessionGate.OnInit(init);
await app.LicenseAsync(key, hwid);
SessionGate.MarkLicensed();
await SessionGate.HeartbeatOrDie(app);