Raycynix.Extensions.Security.Abstractions
2.2.0
dotnet add package Raycynix.Extensions.Security.Abstractions --version 2.2.0
NuGet\Install-Package Raycynix.Extensions.Security.Abstractions -Version 2.2.0
<PackageReference Include="Raycynix.Extensions.Security.Abstractions" Version="2.2.0" />
<PackageVersion Include="Raycynix.Extensions.Security.Abstractions" Version="2.2.0" />
<PackageReference Include="Raycynix.Extensions.Security.Abstractions" />
paket add Raycynix.Extensions.Security.Abstractions --version 2.2.0
#r "nuget: Raycynix.Extensions.Security.Abstractions, 2.2.0"
#:package Raycynix.Extensions.Security.Abstractions@2.2.0
#addin nuget:?package=Raycynix.Extensions.Security.Abstractions&version=2.2.0
#tool nuget:?package=Raycynix.Extensions.Security.Abstractions&version=2.2.0
Raycynix.Extensions.Security.Abstractions
Raycynix.Extensions.Security.Abstractions contains the transport-neutral contracts used by the Raycynix security and secrets packages.
What it contains
ISecurityContextISecretProviderISecretResolverSecuritySubjectTypeSecurityClaimTypes- shared authorization attributes such as
RequirePermissionAttributeandRequireRoleAttribute
Purpose
This package allows other packages to depend on shared security, authorization, and secret-resolution contracts without depending on implementation packages.
The security model assumes:
- request subjects are authenticated and known
- supported subject types are
UserandService Rolesare aggregatesPermissionsare the canonical access checks
The authorization model exposes declarative attributes that can be reused by multiple pipelines, including messaging and ASP.NET Core:
RequireAuthenticatedSubjectAttributeRequireSubjectTypeAttributeRequirePermissionAttributeRequireAnyPermissionAttributeRequireAllPermissionsAttributeRequireRoleAttributeRequireAnyRoleAttributeRequireAllRolesAttribute
The secret model assumes:
- applications read secrets through shared abstractions
- a provider represents a single source
- a resolver aggregates providers and returns the first available secret
- built-in providers can target local env, GitHub Actions, and TeamCity-style injection
Permissions should use a stable resource.action format, for example users.read or orders.approve.
Logging
This package contains contracts, attributes, constants, records, and enums only. Runtime diagnostics belong to implementation packages, so this package does not add a logging dependency.
Usage
public sealed class UserProjection(ISecurityContext securityContext)
{
public string? CurrentSubjectId => securityContext.IsAuthenticated
? securityContext.SubjectId
: null;
}
| 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
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Raycynix.Extensions.Security.Abstractions:
| Package | Downloads |
|---|---|
|
Raycynix.Extensions.Security
Core security services, typed security configuration, shared identity context handling, and application-level authorization composition for Raycynix applications. |
|
|
Raycynix.Extensions.Messaging.Abstractions
Transport-agnostic messaging contracts, codecs, handlers, outbox abstractions, and direct communication primitives for Raycynix applications. |
|
|
Raycynix.Extensions.Secrets
Unified secret resolution services for Raycynix applications with IConfiguration support, configurable provider precedence, and environment-aware fallback providers for local development and CI/CD. |
|
|
Raycynix.Extensions.Messaging
Transport-agnostic messaging registration, dispatch, direct requests, observability, scoped envelope factories, and outbox/inbox reliability foundations for Raycynix applications. |
|
|
Raycynix.Extensions.Observability.AspNetCore
ASP.NET Core integration for Raycynix observability, including correlation middleware, endpoint mapping, and outgoing HTTP correlation propagation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Starts unified versioning for Raycynix packages from this release.