Mixing MVC 5 + WEB API 2 Authentication for website and mobile application

I just downloaded Visual Studio 2013 and want to create a new web application using the same authentication for the site version and mobile version.

I downloaded both templates (MVC5 w / Indivual Account and WEB API w / Individual Account) to check them out, but it looks like I really want to merge these projects, so MVC5 uses Web Api 2 OWIN for basic username and password authentication along with Social Media logins through Oauth.

SPA - I watched this template, but I am not looking for SPA, because my site must be SEO friendly and I know MVC and want to continue using it.

This is similar to the obvious template that developers would like to have in order to support both websites and mobile applications in one project.

+4
source share
2 answers

If your goal is to exchange user accounts between the MVC application and the Web Api application, then all you need to do is point out that they both point to the same UserStore.

0
source

All Articles