Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Combining MVC 5 login and WebAPI 2 login

$
0
0

Hi all,

I have an idea in my head for an application. Which requires to login in to a website and login to webapi from a desktop application. I though i would just combine the 2 system so that the website uses the webapi logic. That way I only have to manage the authenticaton logic in 1 place instead of 2 places. So I created a web application project with the MVC template and 1 with the WebAPI template. And started to compare them thinking that they would be basically the same with some minor differences. But when I reviewed the Startup.Auth and AccountController class they seem to be totally different.

Is it possible to have MVC use WebApi authentication logic or am I completely on the wrong track?

My idea was to stay as close as possible to the template scaffolding since I know very little about authentication systems. First I want just to concentrate on building a proof of concept of the website & application.

Kind regards,

Sander


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>