BccCode.Privacy.Client 0.0.5

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

BCC Privacy Client (.NET)

Machine-to-machine client for the BCC Privacy API, built on BCC Platform like the Core API and Notifications clients.

Install

dotnet add package BccCode.Privacy.Client

Register

With the BCC platform already configured (AddBccPlatform(...)):

services.AddBccPrivacy();

Or standalone, with an environment and the client credentials:

services.AddBccPrivacy(AppEnvironment.Prod, new OAuthCredentials
{
    ClientId = "...",
    ClientSecret = "...",
});

The token is requested for the platform's M2M audience (api.bcc.no, sandbox-api.bcc.no in sandbox), the same one the Core API uses. The API host is https://privacy.bcc.no (https://privacy.sandbox.bcc.no in sandbox); pass an explicit base path with AddBccPrivacy(apiBasePath, oAuth) for anything else.

Use

var personalData = await privacyClient.GetPersonalDataAsync();
var processes = await privacyClient.GetProcessesAsync();

GetPersonalDataAsync returns every personal-data item (names in each language, classification and scopes), including items no process uses yet. GetProcessesAsync returns every active process (controller, purposes in each language, legal basis, validity) with the personal-data items it uses.

Method Scope
GetPersonalDataAsync privacy.catalogue#read
GetProcessesAsync privacy.catalogue#read

The client application must be granted the scope on the Core API resource in Auth0. Failed calls throw PrivacyApiException with the status code and response body.

Releases

.github/workflows/sdk-dotnet-publish.yml publishes the package to NuGet; the version follows bcc-core-api's SDK workflow. A merge to main that changes sdk/dotnet publishes <major>.<minor>.<n> once the integration tests pass, where <n> counts the SDK's commits since the last sdk-dotnet-v<major>.<minor>.0 tag (0.0.<n> until the first tag). A pull request only builds and packs; nothing is published from it. To publish a beta (<version>-beta.<run>) from a branch, run the workflow by hand on that branch; a required reviewer of the nuget-beta environment approves the run before it publishes. Tag a commit sdk-dotnet-v<major>.<minor>.0 to start a new minor or major version.

See the .NET SDK section of the integration guide for usage.

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

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
0.0.7 0 11/14/2026
0.0.6 0 11/14/2026
0.0.5 0 11/14/2026