AspNetCore.Identity.ByPermissions 1.1.16

.NET Standard 2.0
dotnet add package AspNetCore.Identity.ByPermissions --version 1.1.16
NuGet\Install-Package AspNetCore.Identity.ByPermissions -Version 1.1.16
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="AspNetCore.Identity.ByPermissions" Version="1.1.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Identity.ByPermissions --version 1.1.16
#r "nuget: AspNetCore.Identity.ByPermissions, 1.1.16"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AspNetCore.Identity.ByPermissions as a Cake Addin
#addin nuget:?package=AspNetCore.Identity.ByPermissions&version=1.1.16

// Install AspNetCore.Identity.ByPermissions as a Cake Tool
#tool nuget:?package=AspNetCore.Identity.ByPermissions&version=1.1.16



This system provides a abstraction layer of the claims system, registering the claims as attributes.The Identity framework manages the access checks and the system store the different permissions in a collection in order to access them in a manager page. This does easier the work of manage the access becouse once the manage zone is written, it's only necesary add attributes.

Information in build

Soon I am going to write the documentation, sorry (The next info is not complete)...

  1. Register the "Permissions Service"
public void ConfigureServices(IServiceCollection services)
  services.AddAuthorization(options =>
      options.AddPermissions(new PermissionService());
  1. Add the Permissions in the "Controllers" and "Actions"
//[AttributePermission("Permission Name","Description")]
[Permission("Home",  "Can access to Home Controller")]
public class HomeController : Controller
  public IActionResult Index()
    return View();
  //This line add a Permissions named "About" with a description and assigned to the action
  [Permission("About",  "Can see about page")]
  public IActionResult About()
    ViewData["Message"] = "Your application description page.";
    return View();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
1.1.16 1,083 8/26/2018
1.1.2 832 8/9/2018
1.0.0 844 8/9/2018