I'm quite new to asp.net mvc webapi technologies.
Scenario: I'm desiging a mvc web application for enterprise. I'm aware that MVC controllers can have authorization and authentication via security attributes.
The web application shows various trends for household water consumption. The vision is to have this data accessible via mobile, tablets (you name it).
I'm wondering whehter WebAPI would be better off then controllers so that same API can be consumed by many devices.
Question: The question I've with webapi is the security. On web application once user logged in controller knows the user's security profile etc. In case of devices how would the security work? Should all the clients must pass credentials and if it is how is secruity handled on server? Should we create one service account and provide to each clients?
Thank you, not sure if I explained well.