![]() |
VOOZH | about |
dotnet add package Identity.Base.Roles --version 0.8.10
NuGet\Install-Package Identity.Base.Roles -Version 0.8.10
<PackageReference Include="Identity.Base.Roles" Version="0.8.10" />
<PackageVersion Include="Identity.Base.Roles" Version="0.8.10" />Directory.Packages.props
<PackageReference Include="Identity.Base.Roles" />Project file
paket add Identity.Base.Roles --version 0.8.10
#r "nuget: Identity.Base.Roles, 0.8.10"
#:package Identity.Base.Roles@0.8.10
#addin nuget:?package=Identity.Base.Roles&version=0.8.10Install as a Cake Addin
#tool nuget:?package=Identity.Base.Roles&version=0.8.10Install as a Cake Tool
Full documentation lives at . This README highlights the basics for quick reference.
Role-based access control primitives for Identity Base. Includes:
ClaimsPrincipal helpers for parsing and checking identity.permissions claims.IdentityRolesDbContext) with convenience registration helpers.// 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. |
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. |
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 |