AuthlyX 2.2.0

dotnet add package AuthlyX --version 2.2.0
                    
NuGet\Install-Package AuthlyX -Version 2.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AuthlyX" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuthlyX" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AuthlyX" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AuthlyX --version 2.2.0
                    
#r "nuget: AuthlyX, 2.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AuthlyX@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AuthlyX&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AuthlyX&version=2.2.0
                    
Install as a Cake Tool

AuthlyX C# SDK

This is a C# authentication SDK for desktop and .NET applications that want simple integration with the AuthlyX API.

This package is for SDK users. The Console and WinForms apps in the example folder are only reference examples to help you integrate faster.

Supported Targets

The SDK supports:

  • .NET Framework 4.8
  • .NET Standard 2.0
  • .NET
  • .NET Core

Modern .NET and .NET Core projects can consume the netstandard2.0 build.

Installation

Choose the setup that fits your project.

1. NuGet package installation

This is the quickest option and the easiest one to maintain.

Install the package from NuGet:

Install-Package AuthlyX

Or with the .NET CLI:

dotnet add package AuthlyX

Once installed, import the namespace in your project:

using AuthlyX;

Use this option if you want package updates, clean dependency management, and the simplest setup.

2. Class installation

If you prefer to keep the SDK as a source file inside your project, you can add AuthlyX.cs manually.

Steps:

  1. Download AuthlyX.cs.
  2. Add it to your project.
  3. Install the required dependencies manually:
    • Newtonsoft.Json
    • Portable.BouncyCastle
  4. Import the namespace:
using AuthlyX;

You can install the dependencies with NuGet Package Manager:

Install-Package Newtonsoft.Json
Install-Package Portable.BouncyCastle

Or with the .NET CLI:

dotnet add package Newtonsoft.Json
dotnet add package Portable.BouncyCastle

This option works well if you want the SDK source directly in your solution and prefer to manage updates yourself.

3. DLL installation

If you already have a compiled AuthlyX.dll, you can reference it manually instead of installing the full package through NuGet.

Steps:

  1. Build or obtain AuthlyX.dll.
  2. In Visual Studio, right-click References or Dependencies.
  3. Choose Add Reference.
  4. Browse to AuthlyX.dll and add it.
  5. Make sure your project also has the required dependencies:
    • Newtonsoft.Json
    • Portable.BouncyCastle
  6. Import the namespace:
using AuthlyX;

This option is useful when you want to ship or test a specific SDK build without pulling from NuGet.

Quick Start

public static Auth AuthlyXApp = new Auth(
    ownerId: "12345678",
    appName: "MYAPP",
    version: "1.0.0",
    secret: "qIBFoBJWQH4jaOZr6Sf8BJZyEVnT0LiN4QfGxJGn"
);

/*
Optional:
- Set debug to false to disable SDK logs.
- Set api to your custom domain, for example: https://example.com/api/v2
*/

Then initialize:

AuthlyXApp.Init();

Optional Parameters

public static Auth AuthlyXApp = new Auth(
    ownerId: "12345678",
    appName: "MYAPP",
    version: "1.0.0",
    secret: "qIBFoBJWQH4jaOZr6Sf8BJZyEVnT0LiN4QfGxJGn",
    debug: false,
    api: "https://example.com/api/v2"
);

Available options

  • debug

    • Default: true
    • Set false to disable SDK logs
  • api

    • Default: https://authly.cc/api/v2
    • Use this for your custom domain

Available Methods

  • Init()
  • Login(identifier, password = null, deviceType = null)
  • Register(username, password, licenseKey, email = null)
  • ChangePassword(oldPassword, newPassword)
  • ExtendTime(username, licenseKey)
  • GetVariable(key)
  • SetVariable(key, value)
  • Log(message)
  • GetChats(channelName)
  • SendChat(message, channelName = null)
  • ValidateSession()

Authentication Example

// Username + password
AuthlyXApp.Login("username", "password");

// License key only
AuthlyXApp.Login("XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");

// Device login
AuthlyXApp.Login("YOUR_MOTHERBOARD_ID", deviceType: "motherboard");

The SDK routes Login(...) automatically:

  • password + identifier for username login
  • identifier only for license login
  • deviceType + identifier for device login

Username Login Example

AuthlyXApp.Login("username", "password");

if (AuthlyXApp.response.success)
{
    Console.WriteLine("Login success");
    Console.WriteLine(AuthlyXApp.userData.Username);
    Console.WriteLine(AuthlyXApp.userData.SubscriptionLevel);
}
else
{
    Console.WriteLine(AuthlyXApp.response.message);
}

userData.SubscriptionLevel is populated automatically after username, license, and device authentication flows.

License Login Example

AuthlyXApp.Login("XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");

if (AuthlyXApp.response.success)
{
    Console.WriteLine("License login success");
}
else
{
    Console.WriteLine(AuthlyXApp.response.message);
}

Device Login Example

Motherboard

AuthlyXApp.Login("YOUR_MOTHERBOARD_ID", deviceType: "motherboard");

if (AuthlyXApp.response.success)
{
    Console.WriteLine("Motherboard login success");
}
else
{
    Console.WriteLine(AuthlyXApp.response.message);
}

Processor

AuthlyXApp.Login("YOUR_PROCESSOR_ID", deviceType: "processor");

if (AuthlyXApp.response.success)
{
    Console.WriteLine("Processor login success");
}
else
{
    Console.WriteLine(AuthlyXApp.response.message);
}

Variable Example

AuthlyXApp.SetVariable("theme", "dark");

string value = AuthlyXApp.GetVariable("theme");
Console.WriteLine(value);

Change Password Example

AuthlyXApp.ChangePassword("oldpass", "newpass");

if (AuthlyXApp.response.success)
{
    Console.WriteLine("Password changed successfully");
}
else
{
    Console.WriteLine(AuthlyXApp.response.message);
}

Chat Example

AuthlyXApp.SendChat("Hello world", "MAIN");

string chats = AuthlyXApp.GetChats("MAIN");
Console.WriteLine(chats);

Non-Blocking UI Usage

For WinForms or UI apps, use the callback overloads so the app does not freeze:

AuthlyXApp.Login("user", "pass", callback: response =>
{
    if (response.success)
    {
        MessageBox.Show("Logged in");
    }
    else
    {
        MessageBox.Show(response.message);
    }
});

You can also use callback-based versions of the main methods, including:

  • Init
  • Login
  • Register
  • GetVariable
  • GetChats
  • ValidateSession

Logging

By default, SDK logging is enabled.

Logs are written to:

C:\ProgramData\AuthlyX\{AppName}\YYYY_MM_DD.log

To disable logs:

debug: false

Sensitive values such as passwords, secrets, and signatures are masked automatically.

Method Name Casing

The SDK accepts both PascalCase and lowercase method names.

Examples:

AuthlyXApp.Login("username", "password");
AuthlyXApp.login("username", "password");

AuthlyXApp.Init();
AuthlyXApp.init();

Notes

  • The SDK currently supports both sid and hwid for compatibility with older integrations.
  • If you are starting fresh, treat sid as the preferred system identifier concept.
  • The example apps in the example folder are reference integrations, not required project structure.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.0 93 5/31/2026
2.1.1 99 5/17/2026
2.1.0 115 5/9/2026
2.0.4 119 4/20/2026 2.0.4 is deprecated.
2.0.3 119 4/19/2026 2.0.3 is deprecated.
2.0.2 130 3/28/2026 2.0.2 is deprecated.
2.0.1 124 3/28/2026 2.0.1 is deprecated.

V2.2: Reliability, Security & Bug Fixes.