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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

License:MIT License


Languages

Language:C# 99.4%Language:CSS 0.6%Language:JavaScript 0.0%