Purview.EventSourcing.Admin.Security 2.0.0-prerelease.32

This is a prerelease version of Purview.EventSourcing.Admin.Security.
dotnet add package Purview.EventSourcing.Admin.Security --version 2.0.0-prerelease.32
                    
NuGet\Install-Package Purview.EventSourcing.Admin.Security -Version 2.0.0-prerelease.32
                    
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="Purview.EventSourcing.Admin.Security" Version="2.0.0-prerelease.32" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Purview.EventSourcing.Admin.Security" Version="2.0.0-prerelease.32" />
                    
Directory.Packages.props
<PackageReference Include="Purview.EventSourcing.Admin.Security" />
                    
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 Purview.EventSourcing.Admin.Security --version 2.0.0-prerelease.32
                    
#r "nuget: Purview.EventSourcing.Admin.Security, 2.0.0-prerelease.32"
                    
#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 Purview.EventSourcing.Admin.Security@2.0.0-prerelease.32
                    
#: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=Purview.EventSourcing.Admin.Security&version=2.0.0-prerelease.32&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Purview.EventSourcing.Admin.Security&version=2.0.0-prerelease.32&prerelease
                    
Install as a Cake Tool

Purview.EventSourcing.Admin.Security

Purview.EventSourcing.Admin.Security provides the authorization policies and handlers that protect the Purview EventSourcing admin portal endpoints.

Install

dotnet add package Purview.EventSourcing.Admin.Security

Register the security services

builder.Services.AddAuthorization();

// Defaults to a deny-by-default permission provider when none is supplied.
builder.Services.AddPurviewEventSourcingAdminSecurity();

Or supply a custom IAdminPermissionProvider:

builder.Services.AddPurviewEventSourcingAdminSecurity(new MyPermissionProvider());

Map the authorization policies

builder.Services
    .AddAuthorizationBuilder()
    .AddPurviewEventSourcingAdminPolicies();

Policies

AdminPortalPolicies defines the policy names used by the portal:

Constant Value Purpose
SearchAggregates AdminPortal.Aggregates.Search Searching for aggregates
ViewAggregate AdminPortal.Aggregates.View Viewing a single aggregate
ViewEvents AdminPortal.Events.View Viewing event history
ViewEventPayloads AdminPortal.Events.Payload.View Viewing serialized event payloads
ProjectPointInTime AdminPortal.Projections.Execute Point-in-time projection
ExportEvents AdminPortal.Events.Export Exporting events

Authorization model

  • Deny by default - the default DenyAllPermissionProvider grants nothing.
  • Permissions are resolved through IAdminPermissionProvider and represented as AdminPermission records (feature + optional aggregate-type scope + allow/deny).
  • AdminFeatureAuthorizationHandler enforces feature-level access; AggregateTypeAccessHandler additionally scopes access to the requested aggregate type when a permission is scoped.
  • ViewEvents grants access to event metadata. Payloads are returned as null unless ViewEventPayloads is also granted. Event export requires both ExportEvents and ViewEventPayloads so it cannot bypass payload authorization.
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 Purview.EventSourcing.Admin.Security:

Package Downloads
Purview.EventSourcing.Admin.API

ASP.NET Minimal API endpoints for Purview EventSourcing Admin Portal with OpenAPI documentation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-prerelease.32 43 9/15/2026
2.0.0-prerelease.31 63 9/12/2026
2.0.0-prerelease.30 79 9/8/2026
2.0.0-prerelease.29 89 8/3/2026