SecurityCore.Core 3.0.3

dotnet add package SecurityCore.Core --version 3.0.3
                    
NuGet\Install-Package SecurityCore.Core -Version 3.0.3
                    
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="SecurityCore.Core" Version="3.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SecurityCore.Core" Version="3.0.3" />
                    
Directory.Packages.props
<PackageReference Include="SecurityCore.Core" />
                    
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 SecurityCore.Core --version 3.0.3
                    
#r "nuget: SecurityCore.Core, 3.0.3"
                    
#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 SecurityCore.Core@3.0.3
                    
#: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=SecurityCore.Core&version=3.0.3
                    
Install as a Cake Addin
#tool nuget:?package=SecurityCore.Core&version=3.0.3
                    
Install as a Cake Tool

SecurityCore.Core

Основная библиотека SecurityCore для проверки лицензий и защиты ASP.NET Core приложений.

Что делает

  • Валидация лицензии по цифровой подписи Ed25519 (формат токена: base64(json).base64(signature)).
  • Middleware для автоматической проверки всех запросов.

Формат лицензии

Внутри токена JSON строго вида:

{"product":"Workplace","expiresAt":"YYYY-MM-DDTHH:MM:SSZ"}

Токен передаётся в переменной окружения SC_LICENSE_KEY.

Подключение

// Program.cs
builder.Services.AddSecurityCore();

app.UseSecurityCore(); // без IServiceProvider

Требования

  • .NET 9.0+
  • SC_LICENSE_KEY установлен в окружении

Автор

BelousovMike

Контакты

email: bk_play@mail.ru telegram: @BelousovMike

Product Compatible and additional computed target framework versions.
.NET 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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SecurityCore.Core:

Package Downloads
SecurityCore.FastEndpoints

Интеграция SecurityCore с FastEndpoints для автоматической проверки лицензий в API endpoints

SecurityCore.FluentValidation

Интеграция SecurityCore с FluentValidation для автоматической проверки лицензий при валидации

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.3 265 10/30/2025
3.0.2 255 10/30/2025
3.0.1 235 10/30/2025
3.0.0 235 10/30/2025
2.0.6 231 10/29/2025
2.0.5 286 10/28/2025
2.0.4 223 10/28/2025
2.0.3 237 10/28/2025
2.0.1 234 10/28/2025
2.0.0 233 10/28/2025
1.0.2 221 10/28/2025
1.0.1 214 10/28/2025
1.0.0 225 10/28/2025