An open API service indexing awesome lists of open source software.

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

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)