asp.net mvc 4 - Monitoring all the information of users using mvc 4 web api -


i have rest service based on mvc 4 , web api. need monitor users using service (eg: user name , organization user belongs to, how many hours accessing service , so). can please provide best architecture this. best way doing this?

you can use custom httpmessagehandler doing authentication , track information need user in database. need background processing of data , doing statistics usage of api. message handler, start 1 provided in thinktecture.identitymodel library (you can customize it), http://leastprivilege.com/2013/04/22/asp-net-web-api-security-the-thinktecture-identitymodel-authenticationhandler/


Comments