VahidN / ASPNETCore2CookieAuthentication

Cookie Authentication without ASP.NET Core Identity 7x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie Authentication without ASP.NET Core Identity 7x

GitHub Actions status

cookieauth

A cookie based authentication sample for ASP.NET Core 7x without using the Identity system. It includes:

  • Users and Roles tables with a many-to-may relationship.
  • A separated EF Core data layer with enabled migrations.
  • An EF Core 7x based service layer.
  • A Db initializer to seed the default database values.
  • An account controller with cookie and DB based login and logout capabilities.
  • 2 sample API controllers to show how user-roles can be applied and used.
  • A cookie validator service to show how to react to the server side changes to a user's info immediately.

About

Cookie Authentication without ASP.NET Core Identity 7x

License:Apache License 2.0


Languages

Language:SCSS 60.2%Language:JavaScript 30.3%Language:C# 8.7%Language:HTML 0.6%Language:Batchfile 0.2%Language:Smalltalk 0.0%