0

I have created a WCF Service for my web application. I am able to access all the functions & methods declared inside the interface. Now, I want to create a new web application with the same WCF Service but i dont want this web app should access all the functions & methods i.e resticted access. Can It Be Achieved?

McGarnagle
  • 101,349
  • 31
  • 229
  • 260
Ulhas Tuscano
  • 5,502
  • 14
  • 58
  • 89

1 Answers1

1

I think you should first implement the credential-based access on WCF service i.e. multiple client application will access the WCF service using credentials. you can specify the declarative ondemand permissions on operation contract.

For example.

  [PrincipalPermission(SecurityAction.Demand,Role = @”<Domain>\Customer”)]

This Article might help you.

userGS
  • 220
  • 1
  • 7