1

I have an existing ASP.NET MVC Web App with individual user accounts , but I want to create a mobile app for the web app. I got stuck on the authentication part, because I want to support web api authentication in my same mvc project.

How can I add web api authentication to mvc project? Any help is appreciated , Thanks

4
  • here some links that could be helpful: stackoverflow.com/questions/28116565/… bitoftech.net/2015/01/21/… Commented Sep 19, 2017 at 14:06
  • "web api authentication" is not a thing in itself. By what method would you like the mobile app to authenticate to the API? You could use the same user accounts, in fact. That would make sense, if the user logs into the mobile app with the same credentials as they would the MVC app. Commented Sep 19, 2017 at 14:54
  • @ADyson , Of course users will login on there same accounts as mvc, and that is exactly what i am asking about, how can I achieve this on the same project and what is the best way to do it? Commented Sep 20, 2017 at 13:07
  • Have you read this? learn.microsoft.com/en-us/aspnet/web-api/overview/security/… If you're using Individual Accounts as you mention, then this should be a starting point. The UI is shown as web-based but the key thing is the HTTP requests it generates, the the use of the auth token. The links that Andrey gave above are also worth reading. It's a biggish topic. Commented Sep 20, 2017 at 13:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.