Neeraj  Kumar

Neeraj Kumar

  • NA
  • 28
  • 13.4k

How to implement Authentication at service level in WCF

Jan 8 2014 2:51 AM
Can someone assit me how to implement Authentication at service level in WCF ?
In below example i want to apply Authentication on class "User" and method "Test()"
 
[ServiceContract]
public interface IUser
{
[OpeartionContract]
string Test();
}
 
//User.svc file
Public class User : IUser
{
public string Test()
{return "";}
 
}
 
If possible please suggest any exmaple.