Skip to content
프로젝트

JonPSmith/AuthPermissions.AspNetCore

GitHub에서 보기

소개

ASP.NET Core 애플리케이션에 추가 인증 권한 부여 및 멀티테넌트 기능을 제공하는 라이브러리입니다.

보안 및 개인정보 보호

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

AuthPermissions.AspNetCore

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 be found here. The documentation can be found in the GitHub wiki and the AuthP roadmap 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 a JonPSmith.MultiProjPack dotnet tool to create the NuGet package using the following command in a command line on the AuthPermissions.AspNetCore directory.

See JonPSmith.MultiProjPack GitHub for why I created the JonPSmith.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 (see this documentation to learn about global tools).

dotnet tool install JonPSmith.MultiProjPack --global

NOTE: To update the MultiProjPack .NET tool you need to go to Updating 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 the MultiProjPack tool to create the

You run the MultiProjPack tool from a command line in the AuthPermissions.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 NuGet version and most likely the releaseNotes in the MultiProjPack.xml before you call the MultiProjPack tool.

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

관련 프로젝트 살펴보기

불러오는 중…