I have a WCF REST service. Now the question is how can I secure my REST service so no one can use/call it? and what would be the best开发者_JAVA技巧 way to call it (e.g. using jquery, or from code behind)? the client application is on MVC 3.
please help and advise
Many Thanks
Not sure if you're still looking for a solution. But I used WCFRESTContrib as a basis for my project for the security features, among other things. It's very easy to setup Basic Authentication on the entire service, or on an individual basis for each service method. They have a full description on it here. If you don't decide to use the project, it should at least give you a good understanding on how it works with WCF REST api's.
精彩评论