JonPSmith / AuthPermissions.AspNetCore

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
https://www.thereformedprogrammer.net/finally-a-library-that-improves-role-authorization-in-asp-net-core/
MIT License
764 stars 155 forks source link

Create a demo using JWT and Cookie both #64

Closed MahmudX closed 1 year ago

MahmudX commented 1 year ago

I haven't found any good tutorial that demonstrate how to use both JWT and Cookie based authentication in a standard way.

A demo project with detailed article would be great.

JonPSmith commented 1 year ago

Hi @MahmudX,

There are two ways to read your question:

Authentication using BOTH JWT and Cookie authentication

This is very rare you need both, but Rick Strahl has this article

Good tutorials of either JWT or Cookie authentication

There are loads of good tutorials on this. Here are two