Lumen.Authorization.AspNetCore 3.0.1

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

Lumen.Authorization

Pluggable role-based authorization library for ASP.NET Core (.NET 8). Manages Permissions, Profiles (roles), and User↔Profile assignments, backed by SQL Server and exposed via a mountable Backoffice UI.

Packages

Package Purpose
Lumen.Authorization Core: domain, CQRS handlers, EF Core persistence, DI root
Lumen.Authorization.Contracts Public interfaces (IUserPermissionService, IUserIdAccessor) and exported events
Lumen.Authorization.Migrations EF Core migrations for the Lumen schema; hosted service applies them on startup
Lumen.Authorization.AspNetCore ASP.NET Core glue: [RequirePermission], policy provider, discovery, enforcement
Lumen.Authorization.Backoffice Razor Class Library with Profiles & Permissions management UI

Minimum wiring in Program.cs

// Umbrella: registers core, migrations, enforcement, and discovery in one call
builder.Services.AddLumenAuthorization(builder.Configuration);

// Optional: mountable Backoffice UI
builder.Services.AddLumenBackoffice();

// ...

app.UseStaticFiles();      // serves _content/Lumen.Authorization.Backoffice/
app.UseAuthentication();
app.UseAuthorization();
app.MapLumenBackoffice("/lumen");

SQL Server is required. Provide the connection string via IConfiguration["ConnectionStrings:DefaultConnection"] or use the string overload: AddLumenAuthorization("Server=...;Database=...;").

Protecting an endpoint

// Convention: permission code = "Controller.Action"
[RequirePermission]
public IActionResult Index() { ... }

// Explicit code
[RequirePermission("Profiles.Delete")]
public IActionResult Delete(Guid id) { ... }

Repository & documentation

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Lumen.Authorization.AspNetCore:

Package Downloads
Lumen.Authorization.Backoffice

Razor Class Library providing a mountable Backoffice UI for Lumen.Authorization. Includes controllers, ViewComponents, and CSS for managing Permissions, Profiles, and User↔Profile assignments. Mount via AddLumenBackoffice() + MapLumenBackoffice("/lumen").

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 136 7/15/2026
3.0.0 125 7/14/2026
2.0.0 129 7/14/2026
1.1.0 126 7/6/2026
1.0.0 119 7/5/2026