BccCode.Privacy.AspNetCore
0.5.0
See the version list below for details.
dotnet add package BccCode.Privacy.AspNetCore --version 0.5.0
NuGet\Install-Package BccCode.Privacy.AspNetCore -Version 0.5.0
<PackageReference Include="BccCode.Privacy.AspNetCore" Version="0.5.0" />
<PackageVersion Include="BccCode.Privacy.AspNetCore" Version="0.5.0" />
<PackageReference Include="BccCode.Privacy.AspNetCore" />
paket add BccCode.Privacy.AspNetCore --version 0.5.0
#r "nuget: BccCode.Privacy.AspNetCore, 0.5.0"
#:package BccCode.Privacy.AspNetCore@0.5.0
#addin nuget:?package=BccCode.Privacy.AspNetCore&version=0.5.0
#tool nuget:?package=BccCode.Privacy.AspNetCore&version=0.5.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 may return all) |
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.5.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.