AugusteVN.Auth.Permissions.Contracts 1.1.0

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

Auth Extensions

A collection of auth contracts and extensions.


Contains

TODO: properly document.


public record ScopedPermission(string Scope, int Sum);

public record ScopedPermissions(string Scope, Dictionary<string, int> Permissions);

public class PermissionsBuilder
{
    List<ScopedPermissions> ScopedPermissions { get; }

    void Add(string scope, Dictionary<string, int> permissions);
}

static class PermissionsProvider
{
    static List<Permissions> PermissionsList { get; }
    
    static Dictionary<string, int> PermissionsDict { get; }
}

static class Extensions
{
    static bool HasFlag(this int instance, int flag);
}


Brought to you by: kiss-code.com.

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

Showing the top 5 NuGet packages that depend on AugusteVN.Auth.Permissions.Contracts:

Package Downloads
AugusteVN.Modules.Auth._Shared

Authentication and authorization contracts for the Auth module

AugusteVN.Modules.Commerce._Shared.Spa

Blazor components for product listing, cart, and order history

AugusteVN.Modules.Metrics._Shared.Spa

Blazor components for metrics display

AugusteVN.Modules.EmailCampaigns._Shared.Spa

Blazor components for managing campaigns, templates, and subscribers

AugusteVN.Modules.Payments._Shared.Spa

Blazor components for payment plans and subscription management

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 754 7/24/2026

Added PermissionsProvider, HasFlag extension method and ScopedPermission records.