Identity.Base.Admin 0.7.12

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

Identity.Base.Admin

Refer to docs/packages/identity-base-admin/index.md for the canonical documentation covering endpoints, configuration, and extension points.

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 & register the RBAC DbContext
var adminBuilder = services.AddIdentityAdmin(
    configuration,
    configureDbContext: (provider, options) =>
    {
        var connectionString = provider.GetRequiredService<IConfiguration>().GetConnectionString("Primary")
            ?? throw new InvalidOperationException("ConnectionStrings:Primary must be set.");

        options.UseNpgsql(connectionString); // or UseSqlServer(connectionString)
    });
adminBuilder.UseTablePrefix("Contoso"); // optional

// Alternatively, call adminBuilder.UseDbContext<MyAppDbContext>() if you already registered one.

// 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.12 58 12/30/2025
0.7.9 267 12/17/2025
0.7.7 193 12/3/2025
0.7.6 181 11/26/2025
0.7.5 299 11/14/2025
0.7.4 288 11/13/2025
0.7.3 274 11/10/2025
0.7.2 197 11/9/2025
0.7.1 138 11/9/2025
0.6.3 137 11/8/2025
0.6.2 141 11/8/2025
0.6.1 185 11/6/2025
0.5.10 185 11/5/2025
0.5.1 187 11/2/2025
0.4.3 163 11/2/2025
0.4.2 152 11/2/2025
0.3.6 123 11/1/2025
0.3.4 128 11/1/2025
0.2.7 124 11/1/2025
0.2.4 190 10/29/2025
0.2.3 181 10/29/2025