https://github.com/vahidn/aspnetcore2cookieauthentication
Cookie Authentication without ASP.NET Core Identity 8x
https://github.com/vahidn/aspnetcore2cookieauthentication
asp-net-core cookie-authentication identity
Last synced: 4 months ago
JSON representation
Cookie Authentication without ASP.NET Core Identity 8x
- Host: GitHub
- URL: https://github.com/vahidn/aspnetcore2cookieauthentication
- Owner: VahidN
- License: apache-2.0
- Created: 2017-08-28T06:31:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-15T09:15:02.000Z (over 1 year ago)
- Last Synced: 2025-01-26T06:09:07.020Z (over 1 year ago)
- Topics: asp-net-core, cookie-authentication, identity
- Language: SCSS
- Homepage:
- Size: 2.08 MB
- Stars: 34
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Cookie Authentication without ASP.NET Core Identity 9x
===========

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