BccCode.Privacy.AspNetCore
0.8.0
See the version list below for details.
dotnet add package BccCode.Privacy.AspNetCore --version 0.8.0
NuGet\Install-Package BccCode.Privacy.AspNetCore -Version 0.8.0
<PackageReference Include="BccCode.Privacy.AspNetCore" Version="0.8.0" />
<PackageVersion Include="BccCode.Privacy.AspNetCore" Version="0.8.0" />
<PackageReference Include="BccCode.Privacy.AspNetCore" />
paket add BccCode.Privacy.AspNetCore --version 0.8.0
#r "nuget: BccCode.Privacy.AspNetCore, 0.8.0"
#:package BccCode.Privacy.AspNetCore@0.8.0
#addin nuget:?package=BccCode.Privacy.AspNetCore&version=0.8.0
#tool nuget:?package=BccCode.Privacy.AspNetCore&version=0.8.0
BccCode.Privacy.AspNetCore
BCC Privacy for ASP.NET Core, minimal APIs and MVC. Part of the BCC Privacy package family; depends
on BccCode.Privacy only, not on EF Core.
builder.Services.AddPrivacyAspNetCore(o => o.OrganisationClaimType = "org"); // a scoped PrivacyScope per request
// ...
app.UseAuthentication();
app.UsePrivacy();
app.MapGet("/members", (AppDbContext db) => db.PersonProfiles.ToListAsync())
.WithPrivacyProcess(Processes.MembershipRegister, Items.Name); // the process, and the items it may return
[PrivacyProcess("membership.register")] // MVC: by id or by key
public sealed class MembersController : ControllerBase { /* ... */ }
public sealed record MemberDto(string Name, [property: PrivacyItem("birth_date")] DateOnly? BirthDate);
| Behaviour | |
|---|---|
| Organisation | From the signed-in user's org claim (configurable, or a function of the request). None: no personal rows |
| Process | From the endpoint: .WithPrivacyProcess(...) or [PrivacyProcess(...)], by id or by key (by key needs PrivacyRules registered) |
| An endpoint without a process that reads personal data | Refused with 403 and a message naming the endpoint and the fix. Endpoints that read no personal data are unaffected |
[PrivacyItem("x")] on a response property |
Left out of the JSON unless the endpoint lists item x. An endpoint that lists no items, an endpoint without a process, and serialisation outside a request return none |
Response masking is a convenience, not a control. It trims what an endpoint returns, but it does not decide what a
request may read: a response type without [PrivacyItem], a hand-written JSON body, a file or another serialiser is not
masked. The control is the EF Core package's read view, which returns an item another organisation has not shared as
NULL, so filtering, sorting and projecting cannot reveal it. The convenience denies by default: list the items an
endpoint returns.
Version 0.x. Licence: Apache 2.0. Source: bcc-code/bcc-privacy, libraries/dotnet.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- BccCode.Privacy (>= 0.8.0)
- Microsoft.Extensions.Compliance.Abstractions (>= 10.11.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BccCode.Privacy.AspNetCore:
| Package | Downloads |
|---|---|
|
BccCode.Privacy.Hosting
One AddPrivacy() for BCC Privacy: the EF Core, ASP.NET Core and Wolverine packages wired together, defaults per environment, the privacy document at /.well-known/bcc-privacy, and the application's processes and data items pushed to the Privacy API at deploy. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.3 | 52 | 11/19/2026 |
| 0.13.2 | 49 | 11/19/2026 |
| 0.13.1 | 51 | 11/19/2026 |
| 0.13.0 | 51 | 11/19/2026 |
| 0.12.0 | 57 | 11/19/2026 |
| 0.11.0 | 50 | 11/19/2026 |
| 0.10.0 | 50 | 11/18/2026 |
| 0.9.2 | 49 | 11/18/2026 |
| 0.9.1 | 52 | 11/18/2026 |
| 0.9.0 | 49 | 11/18/2026 |
| 0.8.1 | 45 | 11/18/2026 |
| 0.8.0 | 58 | 11/18/2026 |
| 0.7.0 | 58 | 11/18/2026 |
| 0.6.2 | 51 | 11/18/2026 |
| 0.6.1 | 50 | 11/18/2026 |
| 0.6.0 | 49 | 11/18/2026 |
| 0.5.7 | 54 | 11/18/2026 |
| 0.5.6 | 54 | 11/18/2026 |
| 0.5.5 | 54 | 11/18/2026 |
| 0.5.4 | 84 | 11/17/2026 |