Lumen.Identity
1.0.1
dotnet add package Lumen.Identity --version 1.0.1
NuGet\Install-Package Lumen.Identity -Version 1.0.1
<PackageReference Include="Lumen.Identity" Version="1.0.1" />
<PackageVersion Include="Lumen.Identity" Version="1.0.1" />
<PackageReference Include="Lumen.Identity" />
paket add Lumen.Identity --version 1.0.1
#r "nuget: Lumen.Identity, 1.0.1"
#:package Lumen.Identity@1.0.1
#addin nuget:?package=Lumen.Identity&version=1.0.1
#tool nuget:?package=Lumen.Identity&version=1.0.1
Lumen.Identity
Pluggable authentication library for ASP.NET Core (.NET 8).
Provides user registration, login, JWT/refresh-token rotation, email confirmation,
password reset/change, lockout, and integration bridges for Lumen.Authorization.
Packages
| Package | Purpose |
|---|---|
Lumen.Identity |
Core: user domain, CQRS handlers, JWT/BCrypt/MailKit adapters, authorization bridges |
Lumen.Identity.AspNetCore |
ASP.NET Core integration: AddLumenIdentity() umbrella and MapLumenIdentityEndpoints() minimal-API endpoints |
Lumen.Identity.Migrations |
EF Core migrations for the identity schema (SQL Server); hosted service applies them on startup |
Lumen.Identity.Migrations.PostgreSQL |
EF Core migrations for the identity schema (PostgreSQL, snake_case); hosted service applies them on startup |
Requires
Lumen.Authorization >= 1.1.0.
Lumen.Identitydepends on the Authorization library for theIAuthorizationUserSourceandIUserDirectoryintegration contracts.
Minimum wiring in Program.cs
// AddLumenIdentity registers: Identity core, JWT Bearer, Authorization core, and migrations
builder.Services.AddLumenIdentity(builder.Configuration);
// ...
app.UseAuthentication();
app.UseAuthorization();
// Minimal-API endpoints: /identity/login, /identity/register, /identity/refresh, etc.
app.MapLumenIdentityEndpoints();
SQL Server or PostgreSQL is required. Provide the connection string via
IConfiguration["ConnectionStrings:DefaultConnection"].
Available endpoints
| Method | Path | Description |
|---|---|---|
POST |
/identity/login |
Authenticate user, returns JWT + refresh token |
POST |
/identity/refresh |
Rotate refresh token, returns new JWT |
POST |
/identity/logout |
Revoke refresh token |
POST |
/identity/register |
Create user account |
GET |
/identity/me |
Return current user info (requires auth) |
POST |
/identity/confirm-email |
Confirm email address |
POST |
/identity/resend-confirmation |
Resend confirmation email |
POST |
/identity/forgot-password |
Request password reset email |
POST |
/identity/reset-password |
Apply password reset token |
POST |
/identity/change-password |
Change password (requires auth) |
Multi-provider database support
// SQL Server (default)
builder.Services.AddLumenIdentity(builder.Configuration);
// PostgreSQL — use the PostgreSQL migrations package instead
builder.Services.AddLumenIdentity(builder.Configuration, options =>
options.Provider = DatabaseProvider.PostgreSQL);
Repository & documentation
- Source: https://github.com/KauaVilasBoas/Lumen
- Architecture decision (Authorization as library): ADR-0004
- Architecture decision (tenant-scoped authorization): ADR-0006
| Product | Versions 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. |
-
net8.0
- BCrypt.Net-Next (>= 4.0.3)
- FluentValidation (>= 11.11.0)
- Lumen.Authorization (>= 3.0.0)
- Lumen.Authorization.Contracts (>= 3.0.0)
- Lumen.Modularity (>= 1.0.0)
- MailKit (>= 4.16.0)
- MediatR (>= 12.4.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.15)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.15)
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.11)
- System.IdentityModel.Tokens.Jwt (>= 8.9.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Lumen.Identity:
| Package | Downloads |
|---|---|
|
Lumen.Identity.AspNetCore
ASP.NET Core integration for Lumen.Identity: minimal-API endpoints for login, refresh, register, logout, confirm-email, forgot/reset/change password, and the AddLumenIdentity() umbrella that wires Identity core, migrations, and JWT Bearer authentication in one call. |
|
|
Lumen.Identity.Migrations.PostgreSQL
EF Core migrations for the Lumen.Identity schema (PostgreSQL, snake_case). Includes a hosted service that applies migrations automatically on startup. Add this package alongside Lumen.Identity when targeting PostgreSQL. |
|
|
Lumen.Identity.Migrations
EF Core migrations for the Lumen.Identity schema (SQL Server). Includes a hosted service that applies migrations automatically on startup. Add this package alongside Lumen.Identity when targeting SQL Server. |
GitHub repositories
This package is not used by any popular GitHub repositories.