I know this question may get some downvotes, but Iβve been searching on Google for three days without real results.
I created a default ASP.NET Core 1.0 RC1 project in Visual Studio with individual user account authentication / authorization. Everything is so simple and simple, because the project is built using Microsoft.AspNet.Authentication.Cookies , and VS 2015 is doing all the hard lifting.
However, we want to expose the API from the same project (using the same database, users, claims, etc.) that will be consumed from mobile devices and even using some simple SPA. Thus, we need to use something like a JWT for the API (there are many tutorials on how to do this using WebAPI).
We want to make the main project using MVC (not SPA) in order to use the use of visible / control forests and all that Visual Studio has to offer.
There are many tutorials for MVC only or WebAPI only, but could you please tell me how I could combine them together?
Is there a way to use JWT only with MVC and WebAPI system-wide?
Thanks in advance.
source share