https://github.com/ukcoderj/dotnetcorewithcookieandjwtauth
.NET Core with Cookie And JWT Auth
https://github.com/ukcoderj/dotnetcorewithcookieandjwtauth
Last synced: about 1 year ago
JSON representation
.NET Core with Cookie And JWT Auth
- Host: GitHub
- URL: https://github.com/ukcoderj/dotnetcorewithcookieandjwtauth
- Owner: ukcoderj
- Created: 2018-09-18T09:32:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T14:05:33.000Z (about 7 years ago)
- Last Synced: 2024-11-04T14:57:23.944Z (over 1 year ago)
- Language: C#
- Size: 631 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotnet Core With Cookie AND JWT Auth
.NET Core with Cookie And JWT Auth
Super simple. No frills. Have even called the api via jquery to avoid framework dependencies (Angular/React etc).
Created following reading 2 tutorials:
[ASPNET JWT CORE](https://code-maze.com/authentication-aspnetcore-jwt-2/)
[Cookies and JWT](https://wildermuth.com/2017/08/19/Two-AuthorizationSchemes-in-ASP-NET-Core-2)
## Requires:
Visual Studio 2017
## Setup:
- Clone this repro
- Run
- Visit https://localhost:44314/SeedAuth to seed the admin user (and roles)
- Try logging in via cookie (standard location, top right) or api (link provided)