Lumen.Identity 1.0.1

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

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.Identity depends on the Authorization library for the IAuthorizationUserSource and IUserDirectory integration 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

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 (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.

Version Downloads Last Updated
1.0.1 157 7/26/2026
1.0.0 214 7/6/2026