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" />
<PackageReference Include="Purview.EventSourcing.Admin.Security" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Purview.EventSourcing.Admin.Security&version=2.0.0-prerelease.32&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
DenyAllPermissionProvidergrants nothing. - Permissions are resolved through
IAdminPermissionProviderand represented asAdminPermissionrecords (feature + optional aggregate-type scope + allow/deny). AdminFeatureAuthorizationHandlerenforces feature-level access;AggregateTypeAccessHandleradditionally scopes access to the requested aggregate type when a permission is scoped.ViewEventsgrants access to event metadata. Payloads are returned asnullunlessViewEventPayloadsis also granted. Event export requires bothExportEventsandViewEventPayloadsso it cannot bypass payload authorization.
Related packages
- Admin abstractions:
Purview.EventSourcing.Admin.Abstractions - Admin API:
Purview.EventSourcing.Admin.Api - Admin UI:
Purview.EventSourcing.Admin.Site
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.Authorization (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Telemetry.Abstractions (>= 10.10.0)
- Purview.EventSourcing.Admin.Abstractions (>= 2.0.0-prerelease.32)
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 |