Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.

License

NotificationsYou must be signed in to change notification settings

JonPSmith/AuthPermissions.AspNetCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

616 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The AuthPermissions.AspNetCore library (shortened to AuthP) provides extra authorization features to a ASP.NET Core application. Here are AuthP's three main features:

  • An improved Role authorization system where the features a Role can access can be changed by an admin user (i.e. no need to edit and redeploy your application when a Role changes).
  • Provides features to create a multi-tenant database system, either using one-level tenant or multi-level tenant (hierarchical).
  • Implements a JWT refresh token feature to improve the security of using JWT Token in your application.

The AuthP is an open-source library under the MIT licence (and remain as a open-source library for ever) and the NuGet package can befound here.The documentation can be found in theGitHub wiki and the AuthProadmap defines the different versions of this library.

List of versions and which .NET framework they support

  • Version 10.?.? NET 10 only (simpler to update to next NET release)
  • Version 9.?.? supports NET 9 only (simpler to update to next NET release)
  • Version 8.?.? supports NET 8 only (simpler to update to next NET release)

If you have already built your application using an older version, then you need to look at the following "how up update" documents

The AuthP library also:

  • Works with any ASP.NET Core authentication provider. Currently has built-in individual accounts and Azure Active Directory versions, but you can create your own.
  • Works with either Cookie authentication or JWT Token authentication.
  • Contains an admin services to sync the authentication provider users with AuthP's users.
  • Has a comprehensive set of admin services to manage AuthP's Roles, Tenants and Users.

How to create an AuthPermissions.AspNetCore NuGet package

The AuthPermissions.AspNetCore library contains more than one project. For this reason you can't (currently) create a NuGet package using NuGet values in a .csproj file. For this reason I created aJonPSmith.MultiProjPack dotnet tool to create the NuGet package using the following command in a command line on the AuthPermissions.AspNetCore directory.

SeeJonPSmith.MultiProjPack GitHub for why I created theJonPSmith.MultiProjPack and more about its features.

1. Install the MultiProjPack dotnet tool

On your computer you need to install the global tool using the command below (seethis documentation to learn about global tools).

dotnet tool install JonPSmith.MultiProjPack --global

NOTE: To update the MultiProjPack .NET tool you need to go toUpdating the MultiProjPack dotnet tool for all the information.

2. Compile the AuthPermissions.AspNetCore in release Mode

You must select "Release" compile mode and then use the "Build > Rebuild Solution" to ensure a new release version of the AuthPermissions.AspNetCore is available.

3. Run theMultiProjPack tool to create the

You run theMultiProjPack tool from a command line in theAuthPermissions.AspNetCore directory. I use Visual Studio's "Open in Terminal" using the command below ("R" is short for "Release")

MultiProjPack R

NOTE: If you want to create a new version of the NuGet package you must update the NuGetversion and most likely thereleaseNotes in theMultiProjPack.xml before you call theMultiProjPack tool.

The created .nupkg file will be found in theAuthPermissions.AspNetCore.nupkg directory AND in the user's{USERPROFILE}\LocalNuGet directory.

About

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.

Topics

Resources

License

Stars

Watchers

Forks

Contributors5

Languages


[8]ページ先頭

©2009-2026 Movatter.jp