I have WCF based services with hundreds of endpoints. These services are not secure. I want to add Token Based Authentication on all end points. Issue is that they are too many of them. so, its hard apply check in every function.
if(authenticated)
Return Response
else
Return UnAuthorizedError
Is there any way i can use to get it done with minimal code changes. Something like ActionFilterAttribute, IAuthenticationFilter in MVC.
I have searched for it. But could't find this specific scenario. As there are too many endpoints to change.