Skip to content

temilaj/ASP.NET-core-role-based-authentication

Repository files navigation

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

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages