![]() |
VOOZH | about |
dotnet add package Hexalith.Security.Servers --version 2.14.9
NuGet\Install-Package Hexalith.Security.Servers -Version 2.14.9
<PackageReference Include="Hexalith.Security.Servers" Version="2.14.9" />
<PackageVersion Include="Hexalith.Security.Servers" Version="2.14.9" />Directory.Packages.props
<PackageReference Include="Hexalith.Security.Servers" />Project file
paket add Hexalith.Security.Servers --version 2.14.9
#r "nuget: Hexalith.Security.Servers, 2.14.9"
#:package Hexalith.Security.Servers@2.14.9
#addin nuget:?package=Hexalith.Security.Servers&version=2.14.9Install as a Cake Addin
#tool nuget:?package=Hexalith.Security.Servers&version=2.14.9Install as a Cake Tool
Hexalith.Security is a comprehensive security framework for .NET applications providing authentication, authorization, and identity management capabilities. Built with modern C# and Blazor, it offers a robust approach to implementing security in web applications, API servers, and microservices.
👁 Codacy Badge
👁 Quality Gate Status
👁 Security Rating
👁 Maintainability Rating
👁 Code Smells
👁 Lines of Code
👁 Technical Debt
👁 Reliability Rating
👁 Duplicated Lines (%)
👁 Vulnerabilities
👁 Bugs
👁 Build status
👁 NuGet
👁 Latest
The Hexalith.Security project follows a modular architecture with clear separation of concerns:
The security module integrates with:
HexalithSecurityWebAppModule)Client-side authentication and authorization for Blazor WebAssembly applications:
// Program.cs
var builder = WebAssemblyHostBuilder.CreateDefault(args);
// ...
HexalithSecurityWebAppModule.AddServices(builder.Services, builder.Configuration);
HexalithSecurityWebServerModule)Server-side authentication and authorization:
// Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...
builder.Services.AddModule<HexalithSecurityWebServerModule>(builder.Configuration);
var app = builder.Build();
// ...
app.UseModule<HexalithSecurityWebServerModule>();
app.UseSecurity<HexalithSecurityWebServerModule>();
HexalithSecurityApiServerModule)Security for API-focused applications:
// Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...
builder.Services.AddModule<HexalithSecurityApiServerModule>(builder.Configuration);
The repository is organized as follows:
Add the Hexalith.Security NuGet package to your project:
dotnet add package Hexalith.Security
Configure security settings in your appsettings.json:
{
"Security": {
"Disabled": false
}
}
@page "/secure-page"
@attribute [Authorize]
<h1>Secure Page</h1>
<p>This page is only accessible to authenticated users.</p>
@page "/admin-page"
@attribute [Authorize(Roles = SecurityRoles.Owner)]
<h1>Admin Page</h1>
<p>This page is only accessible to users with the Owner role.</p>
@page "/contributor-page"
@attribute [Authorize(Policy = SecurityPolicies.Contributors)]
<h1>Contributors Page</h1>
<p>This page is only accessible to users who can contribute.</p>
This project is licensed under the MIT License - see the file for details.
For support, please open an issue on the GitHub repository.
Join our Discord community: Hexalith Discord
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Hexalith.Security.Servers:
| Package | Downloads |
|---|---|
|
Hexalith.Security.ApiServer
Hexalith is a set of libraries to build an application with micro-service architecture. |
|
|
Hexalith.Security.WebServer
Hexalith is a set of libraries to build an application with micro-service architecture. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.14.9 | 142 | 12/29/2025 |
| 2.14.8 | 465 | 12/11/2025 |
| 2.14.7 | 467 | 12/11/2025 |
| 2.14.6 | 482 | 12/11/2025 |
| 2.14.5 | 465 | 12/11/2025 |
| 2.14.4 | 468 | 12/11/2025 |
| 2.14.3 | 189 | 12/6/2025 |
| 2.14.2 | 175 | 12/6/2025 |
| 2.14.1 | 186 | 12/6/2025 |
| 2.14.0 | 407 | 11/30/2025 |
| 2.13.3 | 308 | 11/30/2025 |
| 2.13.2 | 296 | 11/30/2025 |
| 2.13.1 | 300 | 11/30/2025 |
| 2.13.0 | 373 | 11/21/2025 |
| 2.12.0 | 449 | 11/19/2025 |
| 2.11.20 | 248 | 9/20/2025 |
| 2.11.19 | 246 | 9/20/2025 |
| 2.11.18 | 240 | 8/10/2025 |
| 2.11.17 | 179 | 8/10/2025 |
| 2.11.16 | 324 | 8/5/2025 |