VOOZH about

URL: https://www.nuget.org/packages/Identity.Base.Roles/

⇱ NuGet Gallery | Identity.Base.Roles 0.8.10




👁 Image
Identity.Base.Roles 0.8.10

dotnet add package Identity.Base.Roles --version 0.8.10
 
 
NuGet\Install-Package Identity.Base.Roles -Version 0.8.10
 
 
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.Roles" Version="0.8.10" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Identity.Base.Roles" Version="0.8.10" />
 
Directory.Packages.props
<PackageReference Include="Identity.Base.Roles" />
 
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.Roles --version 0.8.10
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Identity.Base.Roles, 0.8.10"
 
 
#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.Roles@0.8.10
 
 
#: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.Roles&version=0.8.10
 
Install as a Cake Addin
#tool nuget:?package=Identity.Base.Roles&version=0.8.10
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Identity.Base.Roles

Full documentation lives at . This README highlights the basics for quick reference.

Role-based access control primitives for Identity Base. Includes:

  • EF Core entities and configuration for roles, permissions, role-permission associations, user-role links, and audit entries.
  • Configuration binding for role/permission definitions and default role assignments.
  • Services for role assignment and permission resolution.
  • ClaimsPrincipal helpers for parsing and checking identity.permissions claims.
  • Optional DbContext (IdentityRolesDbContext) with convenience registration helpers.

Usage

// Register RBAC services and configure the provided DbContext
var rolesBuilder = services.AddIdentityRoles(
 configuration,
 configureDbContext: (sp, options) =>
 {
 var connectionString = sp.GetRequiredService<IConfiguration>().GetConnectionString("Primary")
 ?? throw new InvalidOperationException("ConnectionStrings:Primary must be set.");

 options.UseNpgsql(connectionString); // or UseSqlServer(connectionString)
 });

// Or map an existing DbContext that implements IRoleDbContext
rolesBuilder.UseDbContext<AppDbContext>();

// Map endpoints when building the app
app.MapIdentityRolesUserEndpoints();

// During startup
await app.Services.SeedIdentityRolesAsync(); // host-controlled migrations must run first

Consumers opt in explicitly; no additional tables are created unless the package is referenced and configured.

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (2)

Showing the top 2 NuGet packages that depend on Identity.Base.Roles:

Package Downloads
Identity.Base.Organizations

Organization management layer for Identity Base, providing domain entities, EF Core integration, services, and HTTP APIs for organization membership and roles.

Identity.Base.Admin

Administrative endpoints, authorization handlers, and helpers for managing Identity Base users, roles, and audit trails.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.10 129 6/6/2026
0.8.8 263 4/6/2026
0.8.6 1,058 3/4/2026
0.8.5 138 3/4/2026
0.8.4 722 2/9/2026
0.7.17 189 1/26/2026
0.7.16 271 1/20/2026
0.7.15 264 1/6/2026
0.7.12 143 12/30/2025
0.7.9 416 12/17/2025
0.7.7 418 12/3/2025
0.7.6 260 11/26/2025
0.7.5 400 11/14/2025
0.7.4 354 11/13/2025
0.7.3 353 11/10/2025
0.7.2 265 11/9/2025
0.7.1 213 11/9/2025
0.6.3 213 11/8/2025
0.6.2 211 11/8/2025
0.6.1 245 11/6/2025
Loading failed