Mahta.Utilities.Auth.ApiAuthorization.Abstractions 10.0.0

dotnet add package Mahta.Utilities.Auth.ApiAuthorization.Abstractions --version 10.0.0
                    
NuGet\Install-Package Mahta.Utilities.Auth.ApiAuthorization.Abstractions -Version 10.0.0
                    
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="Mahta.Utilities.Auth.ApiAuthorization.Abstractions" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mahta.Utilities.Auth.ApiAuthorization.Abstractions" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Mahta.Utilities.Auth.ApiAuthorization.Abstractions" />
                    
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 Mahta.Utilities.Auth.ApiAuthorization.Abstractions --version 10.0.0
                    
#r "nuget: Mahta.Utilities.Auth.ApiAuthorization.Abstractions, 10.0.0"
                    
#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 Mahta.Utilities.Auth.ApiAuthorization.Abstractions@10.0.0
                    
#: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=Mahta.Utilities.Auth.ApiAuthorization.Abstractions&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Mahta.Utilities.Auth.ApiAuthorization.Abstractions&version=10.0.0
                    
Install as a Cake Tool

Mahta.Utilities.Auth.ApiAuthorization.Abstractions

Lightweight API authorization contracts for request/response layers.

This package contains only DTO-safe authorization types:

  • Decision request/response contracts.
  • Authorization target and subject contracts.
  • Authorization enums.
  • IRequestAuthorization for request DTOs that declare target and permission metadata.
  • IRequestAuthorizationRule<TRequest> and RequestAuthorizationRequirement for validator-style authorization rules that keep request DTOs clean.

It intentionally does not contain MVC filters, HttpContext accessors, OAuth clients, service discovery, or Access HTTP transport. Use Mahta.Utilities.Auth.ApiAuthorization in the endpoint/API layer for runtime enforcement.

The package adds these common namespaces as transitive global usings for consuming projects:

  • Mahta.Utilities.Auth.ApiAuthorization.Decisions
  • Mahta.Utilities.Auth.ApiAuthorization.Enums
  • Mahta.Utilities.Auth.ApiAuthorization.Requests

Preferred rule style:

public class GetOrdersAuthorizationRule
    : IRequestAuthorizationRule<GetOrdersRequest>
{
    public ValueTask<RequestAuthorizationRequirement> GetRequirementAsync(
        GetOrdersRequest request,
        CancellationToken cancellationToken = default)
        => ValueTask.FromResult(
            RequestAuthorizationRequirement.Require(
                AuthorizationTargets.Center(request.TenantId, request.CenterId),
                "orders.read"));
}
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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Mahta.Utilities.Auth.ApiAuthorization.Abstractions:

Package Downloads
Mahta.Utilities.Auth.ApiAuthorization

Mahta Utilities Auth ApiAuthorization

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 100 9/13/2026