Skip to content

AfshinAkbari/ASPNETCore2CookieAuthentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Authentication without ASP.NET Core Identity 2.0

cookieauth

A cookie based authentication sample for ASP.NET Core 2.0 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 2.0 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 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 88.8%
  • HTML 6.2%
  • Ruby 2.3%
  • PowerShell 1.1%
  • Batchfile 1.0%
  • CSS 0.5%
  • JavaScript 0.1%