BccCode.Privacy.AspNetCore 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BccCode.Privacy.AspNetCore --version 0.3.0
                    
NuGet\Install-Package BccCode.Privacy.AspNetCore -Version 0.3.0
                    
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="BccCode.Privacy.AspNetCore" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BccCode.Privacy.AspNetCore" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="BccCode.Privacy.AspNetCore" />
                    
Project file
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 BccCode.Privacy.AspNetCore --version 0.3.0
                    
#r "nuget: BccCode.Privacy.AspNetCore, 0.3.0"
                    
#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 BccCode.Privacy.AspNetCore@0.3.0
                    
#: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=BccCode.Privacy.AspNetCore&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=BccCode.Privacy.AspNetCore&version=0.3.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.5.2 0 11/16/2026
0.5.1 8 11/16/2026
0.5.0 11 11/16/2026
0.4.4 51 11/15/2026
0.4.3 47 11/15/2026
0.4.2 43 11/15/2026
0.4.1 42 11/15/2026
0.4.0 49 11/15/2026
0.3.1 44 11/15/2026
0.3.0 52 11/15/2026