Click here to Skip to main content
15,896,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a WCF Service in which I have various Operation Contracts, I want to limit my WCF Service to be not accessed from out side World. Means even external unauthenticated Users can not even get into my Operation Contract. How can I protect my WCF Service and Operation Contracts in that way. Some may say if they don't have WSDL they can't create Proxy but assume that they have proxy or they have access to some of the Operation Contracts, how can I restrict other Operation contracts for them?

And in the same way I have another Web API RESTful Service, can somebody please let me know how can I protect my Web Api RESTful Service in the same way, for example if he has access on Get methods how can I restrict him from not be able to access Put or Delete methods?

A Code snippet, a link or even a suggestion would be very helpful. Thanks in advance.

What I have tried:

Searching in google and trying with different options
Posted
Comments
F-ES Sitecore 22-Jul-16 8:37am    
How do you restrict access to anything? You implement authentication. Google for using authentication with WCF services for ideas.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900