We are building a 3-tier web application with ASP.NET MVC in the middle. We are using a combination of straight MVC and WebAPI for responsiveness. The back-end data is secured using a token-based service.
Our intent is to request a new token for each user loging into the system. While all the tokens will be generated using the same user/password combination, we figured it would give at least some tracebility if we can associate a token to a username and session.
We are storing the generated token into the session state for simplicity and flexibility. We would need to require session state, even for WebAPI calls so we can access that token for WebAPI calls. We are requiring authentication before access our REST Resources.
I have read many posts on SO that make it sound like this is a bad approach. What are the alternatives? and what would be real limitations of this solution?
Thanks in advance for input