![]() |
VOOZH | about |
dotnet add package Hexalith.Security.WebServer --version 2.14.9
NuGet\Install-Package Hexalith.Security.WebServer -Version 2.14.9
<PackageReference Include="Hexalith.Security.WebServer" Version="2.14.9" />
<PackageVersion Include="Hexalith.Security.WebServer" Version="2.14.9" />Directory.Packages.props
<PackageReference Include="Hexalith.Security.WebServer" />Project file
paket add Hexalith.Security.WebServer --version 2.14.9
#r "nuget: Hexalith.Security.WebServer, 2.14.9"
#:package Hexalith.Security.WebServer@2.14.9
#addin nuget:?package=Hexalith.Security.WebServer&version=2.14.9Install as a Cake Addin
#tool nuget:?package=Hexalith.Security.WebServer&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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.14.9 | 133 | 12/29/2025 |
| 2.14.8 | 454 | 12/11/2025 |
| 2.14.7 | 456 | 12/11/2025 |
| 2.14.6 | 455 | 12/11/2025 |
| 2.14.5 | 453 | 12/11/2025 |
| 2.14.4 | 440 | 12/11/2025 |
| 2.14.3 | 181 | 12/6/2025 |
| 2.14.2 | 150 | 12/6/2025 |
| 2.14.1 | 150 | 12/6/2025 |
| 2.14.0 | 396 | 11/30/2025 |
| 2.13.3 | 281 | 11/30/2025 |
| 2.13.2 | 287 | 11/30/2025 |
| 2.13.1 | 280 | 11/30/2025 |
| 2.13.0 | 354 | 11/21/2025 |
| 2.12.0 | 436 | 11/19/2025 |
| 2.11.20 | 230 | 9/20/2025 |
| 2.11.19 | 219 | 9/20/2025 |
| 2.11.18 | 239 | 8/10/2025 |
| 2.11.17 | 166 | 8/10/2025 |
| 2.11.16 | 309 | 8/5/2025 |