BccCode.Privacy.Wolverine
12.0.0
See the version list below for details.
dotnet add package BccCode.Privacy.Wolverine --version 12.0.0
NuGet\Install-Package BccCode.Privacy.Wolverine -Version 12.0.0
<PackageReference Include="BccCode.Privacy.Wolverine" Version="12.0.0" />
<PackageVersion Include="BccCode.Privacy.Wolverine" Version="12.0.0" />
<PackageReference Include="BccCode.Privacy.Wolverine" />
paket add BccCode.Privacy.Wolverine --version 12.0.0
#r "nuget: BccCode.Privacy.Wolverine, 12.0.0"
#:package BccCode.Privacy.Wolverine@12.0.0
#addin nuget:?package=BccCode.Privacy.Wolverine&version=12.0.0
#tool nuget:?package=BccCode.Privacy.Wolverine&version=12.0.0
BccCode.Privacy.Wolverine
BCC Privacy for Wolverine. Part of the BCC Privacy package family; depends
on BccCode.Privacy and Wolverine only. Hosting's AddPrivacy
registers it (UseWolverine, on by default).
builder.Host.UseWolverine(opts => opts.UsePrivacy()); // the org, process and person on envelopes, and before every handler
[PrivacyProcess<EventRegistrationProcess>] // optional: the handler's own process (method, class or message type)
public static class RegistrationHandler { public static Task Handle(Register m, AppDbContext db) => /* ... */; }
| Behaviour | |
|---|---|
| A message sent while handling a request or another message | Carries the sender's org (bcc-privacy-org), process slug (bcc-privacy-process) and person (bcc-privacy-person), unless the sender set them |
| A handler | Its PrivacyContext gets the org on the envelope and the process it declares, else the one on the envelope; the DbContext takes them on first use. A middleware or the handler can set the context itself with Use(orgs, processId) before that |
| A process slug this application does not declare | A read or save is refused, naming the slug |
| A handler without a process, or a message without an org | No personal rows |
| The signed-in person | Carried and trusted like the org; when this person saves their own row under a consent process without that consent, the EF adapter throws PrivacyConsentRequiredException |
| Trusted sources | opts.UsePrivacy(trustedSources: ["members-api"]): the headers of envelopes from other sources are ignored (LIB-14) |
PrivacyContext as a handler or middleware parameter |
The scope's own, the one the handler's DbContext reads (it has no public constructor, and is always service-located) |
AddPrivacy wraps the DbContext's registration in a factory, so each context gets its scope's PrivacyContext.
Wolverine cannot build such a registration in generated code: tell it to resolve the context from the scope,
opts.CodeGeneration.AlwaysUseServiceLocationFor<AppDbContext>(), as for PrivacyContext.
An installer that has the service collection rather than the Wolverine options (such as
BccCode.Privacy.Hosting's AddPrivacy()) calls services.AddPrivacyWolverine() instead: since
Wolverine 3, an extension added with ConfigureWolverine may not register services.
Wolverine HTTP endpoints
Wolverine HTTP builds an isolated service scope per endpoint by default, so an endpoint's PrivacyContext and DbContext
were not the request's (spike F11). Give endpoints the request's:
app.UseAuthentication();
app.UsePrivacy();
app.MapWolverineEndpoints(o => o.UsePrivacy<AppDbContext>()); // SourceServiceFromHttpContext for PrivacyContext and the context
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.Core.Api.Client (>= 1.0.27)
- BccCode.Linq (>= 2.0.1.43)
- BccCode.Platform.Apis (>= 2.0.1.40)
- BccCode.Platform.Config (>= 2.0.1.40)
- BccCode.Privacy.Client (>= 1.0.39)
- BccCode.Privacy.Hosting (>= 12.0.0)
- BccCode.Privacy.Vocabulary (>= 1.0.39)
- BccCode.PubSub.Client (>= 1.0.55)
- Microsoft.AspNetCore.Authentication.OpenIdConnect (>= 10.0.15)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.15)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.4)
- WolverineFx (>= 6.65.1)
- WolverineFx.EntityFrameworkCore (>= 6.65.1)
- WolverineFx.Http (>= 6.65.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.6.8 | 42 | 11/26/2026 |
| 14.6.7 | 37 | 11/26/2026 |
| 14.6.6 | 41 | 11/26/2026 |
| 14.6.5 | 43 | 11/26/2026 |
| 14.6.4 | 40 | 11/26/2026 |
| 14.6.3 | 45 | 11/26/2026 |
| 14.6.2 | 43 | 11/26/2026 |
| 14.6.1 | 50 | 11/26/2026 |
| 14.6.0 | 39 | 11/26/2026 |
| 14.5.0 | 45 | 11/26/2026 |
| 14.4.0 | 42 | 11/26/2026 |
| 14.3.0 | 39 | 11/26/2026 |
| 14.2.0 | 38 | 11/26/2026 |
| 14.1.1 | 42 | 11/26/2026 |
| 14.1.0 | 42 | 11/26/2026 |
| 14.0.1 | 40 | 11/26/2026 |
| 14.0.0 | 41 | 11/26/2026 |
| 13.0.0 | 42 | 11/26/2026 |
| 12.0.1 | 33 | 11/26/2026 |
| 12.0.0 | 43 | 11/26/2026 |