Identity.Base.Roles
0.2.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Identity.Base.Roles --version 0.2.7
NuGet\Install-Package Identity.Base.Roles -Version 0.2.7
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.2.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Identity.Base.Roles" Version="0.2.7" />
<PackageReference Include="Identity.Base.Roles" />
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.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Identity.Base.Roles, 0.2.7"
#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.2.7
#: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.2.7
#tool nuget:?package=Identity.Base.Roles&version=0.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Identity.Base.Roles
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Identity.Base (>= 0.2.7)
- 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 |