HoneyDrunk.Auth.Abstractions 0.6.0

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

HoneyDrunk.Auth.Abstractions

NuGet License: MIT .NET 10

Pure contracts and abstractions for HoneyDrunk.Auth - Zero dependencies, designed for shared libraries and domain projects.

📋 What Is This?

This package provides the foundational interfaces and models used throughout the HoneyDrunk.Auth ecosystem. It has no external dependencies, making it ideal for defining contracts in shared libraries or domain projects without pulling in runtime implementations.

📦 Installation

dotnet add package HoneyDrunk.Auth.Abstractions
<PackageReference Include="HoneyDrunk.Auth.Abstractions" Version="0.1.0" />

🔑 Key Types

Interfaces

Interface Description
IAuthenticationProvider Contract for validating credentials and producing authenticated identities
IAuthorizationPolicy Contract for evaluating authorization decisions against a request

Models

Type Description
AuthCredential Represents authentication credentials (e.g., Bearer token)
AuthenticatedIdentity Represents a successfully authenticated user with claims
AuthenticationResult Result of an authentication attempt (success or failure)
AuthorizationRequest Describes an authorization check (action, resource, required roles)
AuthorizationDecision Result of an authorization evaluation (allowed or denied)
DenyReason Structured denial reason with code and message

Enums

Enum Description
AuthScheme Supported authentication schemes (e.g., Bearer)
AuthenticationFailureCode Failure codes for authentication errors
AuthorizationDenyCode Denial codes for authorization failures

Constants

Constant Description
AuthClaimTypes Standard JWT claim type constants (sub, role, scope, etc.)

💡 Usage Example

// Create an authorization request
var request = new AuthorizationRequest(
    action: "delete",
    resource: "users/123",
    requiredRoles: ["admin"]);

// Check claims on an identity
if (identity.HasClaim(AuthClaimTypes.Role, "admin"))
{
    // User has admin role
}

// Get tenant context
var tenantId = identity.GetClaimValue(AuthClaimTypes.TenantId);
Package Description
HoneyDrunk.Auth Core runtime with JWT validation and Vault integration
HoneyDrunk.Auth.AspNetCore ASP.NET Core middleware and extensions

📖 Documentation

⚖️ License

This project is licensed under the MIT License.


<div align="center">

Built with ❤️ by HoneyDrunk Studios

</div>

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 (2)

Showing the top 2 NuGet packages that depend on HoneyDrunk.Auth.Abstractions:

Package Downloads
HoneyDrunk.Auth

Authentication and authorization library for .NET. Provides JWT Bearer token validation, policy-based authorization, Vault-backed signing key management, and integration with HoneyDrunk.Kernel for Grid-aware context propagation.

HoneyDrunk.Auth.AspNetCore

ASP.NET Core integration for HoneyDrunk.Auth. Provides middleware for JWT Bearer token authentication, HttpContext identity accessors, and seamless integration with ASP.NET Core's authentication pipeline.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 108 5/27/2026
0.5.0 120 5/21/2026
0.4.0 305 5/18/2026
0.3.0 228 4/25/2026
0.2.0 184 2/14/2026
0.1.0 242 12/25/2025

v0.6.0: Package version aligned with the HoneyDrunk.Auth 0.6.0 Sonar follow-up release (ADR-0011 D11). No contract changes. See CHANGELOG.md for details.