Identity.Base.Admin 0.2.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Identity.Base.Admin --version 0.2.3
                    
NuGet\Install-Package Identity.Base.Admin -Version 0.2.3
                    
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="Identity.Base.Admin" Version="0.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Identity.Base.Admin" Version="0.2.3" />
                    
Directory.Packages.props
<PackageReference Include="Identity.Base.Admin" />
                    
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 Identity.Base.Admin --version 0.2.3
                    
#r "nuget: Identity.Base.Admin, 0.2.3"
                    
#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 Identity.Base.Admin@0.2.3
                    
#: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=Identity.Base.Admin&version=0.2.3
                    
Install as a Cake Addin
#tool nuget:?package=Identity.Base.Admin&version=0.2.3
                    
Install as a Cake Tool

Identity.Base.Admin

Administrative extensions for Identity Base. Includes:

  • Authorization helpers enforcing admin scope + permission claims
  • Minimal API endpoints for /admin/users (listing and detail)
  • Integrations with Identity.Base.Roles for assigning roles and auditing actions

Consumers opt in by referencing this package and invoking the provided service/endpoint extensions. No admin schema or endpoints are added unless explicitly enabled.

Usage

// Configure services
var adminBuilder = services.AddIdentityAdmin(configuration);

// Configure RBAC storage (choose one)
adminBuilder.AddDbContext<IdentityRolesDbContext>((provider, options) =>
{
    var databaseOptions = provider.GetRequiredService<IOptions<DatabaseOptions>>();
    options.UseNpgsql(databaseOptions.Value.Primary);
});
// or adminBuilder.UseDbContext<MyAppDbContext>();

// During startup seed RBAC data
await app.Services.SeedIdentityRolesAsync();

// Map the admin endpoints alongside the core Identity Base surfaces
app.MapApiEndpoints();
app.MapIdentityAdminEndpoints();

Additional admin capabilities (mutations, audits, role management) will arrive in subsequent iterations.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.15 77 1/6/2026
0.7.12 86 12/30/2025
0.7.9 283 12/17/2025
0.7.7 232 12/3/2025
0.7.6 188 11/26/2025
0.7.5 305 11/14/2025
0.7.4 293 11/13/2025
0.7.3 282 11/10/2025
0.7.2 203 11/9/2025
0.7.1 145 11/9/2025
0.6.3 140 11/8/2025
0.6.2 148 11/8/2025
0.6.1 188 11/6/2025
0.5.10 189 11/5/2025
0.5.1 193 11/2/2025
0.4.3 168 11/2/2025
0.4.2 156 11/2/2025
0.3.6 127 11/1/2025
0.3.4 134 11/1/2025
0.2.7 130 11/1/2025
0.2.4 195 10/29/2025
0.2.3 190 10/29/2025