LibreAuth

C++ SDK

C++20 / Windows native / MSVC · LibreAuth native client · Protocol v2 available (Enterprise)

C++ C++20 / Windows native / MSVC
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

libreauth_v2.hpp · authority.hpp · session_gate.hpp · ops_bridge ProcessCheckOps after Check · hardening.hpp · la_gate::Boot + AssertLicensed · libcurl + OpenSSL + libsodium + nlohmann/json

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

Install / Dependencies

Terminal
// v2: sdk/cpp/libreauth_v2.hpp
// deps: libcurl + OpenSSL + libsodium + nlohmann/json
// optional signed ops: sdk/cpp/ops_executor.hpp

Code Example

C++
la_gate::Boot(19079);
la::v2::Client::Config cfg{"AppName", "OWNER_ID_10", "https://host", "ED25519_PUBLIC_KEY"};
cfg.clientBuild = 19079;
la::v2::Client app(std::move(cfg), la::v2::NewDeviceKey());
auto init = app.Init();
la_gate::OnInit(init);
app.License(key, hw);
la_gate::MarkLicensed();
la_gate::EnforceHeartbeat(app.Check());

Protocol v2 (Enterprise)

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

Source: cpp/libreauth_v2.hpp

C++ · v2
la_gate::Boot(19079);
la::v2::Client::Config cfg{"AppName", "OWNER_ID_10", "https://host", "ED25519_PUBLIC_KEY"};
cfg.clientBuild = 19079;
la::v2::Client app(std::move(cfg), la::v2::NewDeviceKey());
auto init = app.Init();
la_gate::OnInit(init);
app.License(key, hw);
la_gate::MarkLicensed();
la_gate::EnforceHeartbeat(app.Check());