AuthZen.AspNetCore 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AuthZen.AspNetCore --version 1.3.0
                    
NuGet\Install-Package AuthZen.AspNetCore -Version 1.3.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="AuthZen.AspNetCore" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuthZen.AspNetCore" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="AuthZen.AspNetCore" />
                    
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 AuthZen.AspNetCore --version 1.3.0
                    
#r "nuget: AuthZen.AspNetCore, 1.3.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 AuthZen.AspNetCore@1.3.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=AuthZen.AspNetCore&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=AuthZen.AspNetCore&version=1.3.0
                    
Install as a Cake Tool

Lightweight fine-grained authorization library for ASP.NET Core using the AuthZen protocol.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.3.11.171925 135 3/11/2026
2026.3.11.122250 108 3/11/2026
2026.3.11.115038 109 3/11/2026
2026.3.11.111700 104 3/11/2026
2026.3.11.100241 110 3/11/2026
2026.3.9.131903 108 3/9/2026
2026.3.9.125706 103 3/9/2026
2026.3.9.124659 102 3/9/2026
2026.3.9.122150 105 3/9/2026
2026.3.9.115906 109 3/9/2026
2026.3.9.111221 100 3/9/2026
2026.3.8.232635 105 3/8/2026
2026.3.8.225737 107 3/8/2026
2026.3.8.223525 102 3/8/2026
2026.3.8.221658 101 3/8/2026
2026.3.8.215836 105 3/8/2026
1.6.0 109 3/23/2026
1.4.0 112 3/23/2026
1.3.0 109 3/23/2026
1.2.0 115 3/22/2026
Loading failed

Version 1.3

- **Enhancement:** Added `ClaimsPrincipalExtensions.GetUserId()` to simplify extracting the user ID from JWT claims.
- **Enhancement:** Updated `AuthorizationFilter` to use the new extension method, allowing optional fallback to the `AuthorizeResourceAttribute.UserId` if the claim is missing.
- **Enhancement:** Added support for `AuthorizeResourceAttribute.CustomAction` to allow defining custom action strings (e.g., "can_delegate").
- **Improvement:** User ID and action resolution are more robust and flexible, supporting enum, custom action, and HTTP method-based defaults.
- **Refactor:** Cleaner and more maintainable authorization filter logic, with automatic inference of `ResourceType` from `ResourceId` if not explicitly set.
- **Backwards Compatible:** Existing usage with `AuthorizeResourceAttribute.UserId` and enum `Action` continues to work.