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