Identity.Base.Roles
0.6.2
See the version list below for details.
dotnet add package Identity.Base.Roles --version 0.6.2
NuGet\Install-Package Identity.Base.Roles -Version 0.6.2
<PackageReference Include="Identity.Base.Roles" Version="0.6.2" />
<PackageVersion Include="Identity.Base.Roles" Version="0.6.2" />
<PackageReference Include="Identity.Base.Roles" />
paket add Identity.Base.Roles --version 0.6.2
#r "nuget: Identity.Base.Roles, 0.6.2"
#:package Identity.Base.Roles@0.6.2
#addin nuget:?package=Identity.Base.Roles&version=0.6.2
#tool nuget:?package=Identity.Base.Roles&version=0.6.2
Identity.Base.Roles
Full documentation lives at docs/packages/identity-base-roles/index.md. 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.
- Optional DbContext (
IdentityRolesDbContext) and design-time factory.
Usage
// Register RBAC services
var rolesBuilder = services.AddIdentityRoles(configuration);
// If using the provided context
rolesBuilder.AddDbContext<IdentityRolesDbContext>(options =>
{
options.UseNpgsql(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();
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 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. |
-
net9.0
- Identity.Base (>= 0.6.2)
- Microsoft.AspNetCore.Routing.Abstractions (>= 2.3.0)
- Microsoft.EntityFrameworkCore (>= 9.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.10)
- Microsoft.Extensions.Configuration (>= 9.0.10)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.10)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Identity.Base.Roles:
| Package | Downloads |
|---|---|
|
Identity.Base.Admin
Administrative endpoints, authorization handlers, and helpers for managing Identity Base users, roles, and audit trails. |
|
|
Identity.Base.Organizations
Organization management layer for Identity Base, providing domain entities, EF Core integration, services, and HTTP APIs for organization membership and roles. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.17 | 111 | 1/26/2026 |
| 0.7.16 | 151 | 1/20/2026 |
| 0.7.15 | 228 | 1/6/2026 |
| 0.7.12 | 114 | 12/30/2025 |
| 0.7.9 | 391 | 12/17/2025 |
| 0.7.7 | 347 | 12/3/2025 |
| 0.7.6 | 228 | 11/26/2025 |
| 0.7.5 | 371 | 11/14/2025 |
| 0.7.4 | 323 | 11/13/2025 |
| 0.7.3 | 325 | 11/10/2025 |
| 0.7.2 | 237 | 11/9/2025 |
| 0.7.1 | 184 | 11/9/2025 |
| 0.6.3 | 177 | 11/8/2025 |
| 0.6.2 | 182 | 11/8/2025 |
| 0.6.1 | 216 | 11/6/2025 |
| 0.5.10 | 223 | 11/5/2025 |
| 0.5.1 | 233 | 11/2/2025 |
| 0.4.3 | 184 | 11/2/2025 |
| 0.4.2 | 183 | 11/2/2025 |
| 0.3.6 | 156 | 11/1/2025 |
| 0.3.4 | 160 | 11/1/2025 |
| 0.2.7 | 168 | 11/1/2025 |
| 0.2.4 | 221 | 10/29/2025 |
| 0.2.3 | 231 | 10/29/2025 |