ASP.NET-core-role-based-authentication icon indicating copy to clipboard operation
ASP.NET-core-role-based-authentication copied to clipboard

Code sample detailing role-based authentication and how to create custom roles in ASP.NET core (1.x and 2.x)

ASP.NET Core role based authentication and custom role creation

Code sample detailing how to create custom roles in ASP.NET core on startup and role-based authentication using role checks and policy based checks.

This application consists of:

  • Sample pages using ASP.NET Core MVC
  • Bower for managing client-side libraries
  • Theming using Bootstrap

Installing

clone or download this repo into your local computer, check-in to the root directory of the app and run the app

ASP.NET core 1.x

ASP.NET core 2.x

Run & Deploy

restore the .NET core packages described in the package.json, install the npm and bower dependencies,and then update database with the migrations and run the project:

dotnet run

the dotnet run command simultaneously re-compiles and runs the kestrel-server.

I would love to hear your feedback