CRFricke.Authorization.Core 1.0.1

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

Authorization.Core

The Authorization.Core package provides an efficient implementation of a rights-based authorization framework that sits on top of Microsoft's ASP.NET Core Identity Framework. The package can be used on its own or with the Authorization.Core.UI package to provide a rich GUI for managing your application's Users and Roles.

The Authorization.Core Package

The Core package uses Claims to represent the access rights defined by the application. These Claims are assigned to Roles using the ASP.NET Core Identity Framework's IdentityRoleClaim class. Roles are assigned to Users via the Identity Framework's IdentityUserClaim class.

The package exposes the AuthUser and AuthRole classes which extend the Identity Framework's IdentityUser and IdentityRole classes.

The Core package also exposes the AuthDbContext and a generic AuthDbContext<TUser, TRole> class. These classes extend the Identity Framework's IdentityDbContext<TUser, TRole, string> class. They provide a virtual SeedDatabase method which is used to ensure that the Administrator Role and User account exist in the database during application startup. The method can be overriden in a derived class to provide similar functionality for your application.

If you will be installing the CRFricke.Authorization.Core.UI package, you don't need to install this one. Install that package instead. Otherwise, you can use the following steps to install and configure the Core package.

  1. Install the Authorization.Core package
  2. Configure your Roles and Users
  3. Testing and Enforcing Authorization
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CRFricke.Authorization.Core:

Package Downloads
CRFricke.Authorization.Core.UI

Extends ASP.NET Core Identity to include a UI for management of Users and Roles.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.6 182 3/19/2025
8.0.5 160 3/19/2025
8.0.4 249 3/18/2025 8.0.4 is deprecated because it has critical bugs.
8.0.1 188 5/29/2024
8.0.0 166 3/6/2024
7.0.3 246 9/1/2023
7.0.1 279 5/21/2023
7.0.0 284 3/22/2023
6.0.6 377 2/16/2023
6.0.5 426 12/12/2022
6.0.4 561 10/15/2022
6.0.3 573 10/8/2022
6.0.2 570 9/3/2022
6.0.1 575 9/2/2022
6.0.0 596 8/1/2022
3.1.1 524 2/8/2022
3.1.0 719 2/8/2022
1.0.1 722 1/27/2022
1.0.0 734 1/27/2022