AI.Klleon.SDK 2025.2.19.18

This package has been deprecated as it is legacy and has critical bugs.
dotnet add package AI.Klleon.SDK --version 2025.2.19.18
                    
NuGet\Install-Package AI.Klleon.SDK -Version 2025.2.19.18
                    
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="AI.Klleon.SDK" Version="2025.2.19.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AI.Klleon.SDK" Version="2025.2.19.18" />
                    
Directory.Packages.props
<PackageReference Include="AI.Klleon.SDK" />
                    
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 AI.Klleon.SDK --version 2025.2.19.18
                    
#r "nuget: AI.Klleon.SDK, 2025.2.19.18"
                    
#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.
#addin nuget:?package=AI.Klleon.SDK&version=2025.2.19.18
                    
Install AI.Klleon.SDK as a Cake Addin
#tool nuget:?package=AI.Klleon.SDK&version=2025.2.19.18
                    
Install AI.Klleon.SDK as a Cake Tool

AI.Klleon.SDK

AI.Klleon.SDK is a lightweight NuGet package that provides easy integration with the Klleon SDK for Web API applications. This library helps developers authenticate Klleon SDK keys efficiently

Features

  • Validate SDK Key and Avatar ID.
  • Simple dependency injection setup.
  • Seamless integration with ASP.NET Core applications.

Installation

You can install this library via NuGet Package Manager:

dotnet add package AI.Klleon.SDK

Configuration

Inject IKlleonAuthService into your service or controller:

[ApiController]
[Route("api/auth")]
public class KlleonAuthController : ControllerBase
{
    private readonly IKlleonAuthService _authService;

    public KlleonAuthController(IKlleonAuthService authService)
    {
        _authService = authService;
    }

    [HttpPost("validate")]
    public async Task<IActionResult> Validate([FromBody] AuthRequest request)
    {
        var result = await _authService.ValidateCredentialsAsync(request.SdkKey, request.AvatarId);
        if (result.IsSuccess)
            return Ok(result.Message);
        return BadRequest(result.Message);
    }
}

Usage

This library provides a simple way to integrate Klleon SDK authentication into your application. Once configured, the service can validate the provided SDK key.

Contact

For any questions, feel free to contact me or create an issue in the repository.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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 is compatible.  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. 
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.