2
Answers

WCF access methods

bn raju

bn raju

11y
2.3k
1

Hi Frd's---


its urgent , if any  one knows please help me, How to implement this process---?


i am a bit lost getting started with a simple WCF service. I have two methods and I want to expose one to the world and the second one I want to limit to certain users. Eventually I want to be able to use a client application to use the restricted method. So far I can access both methods anonymously:

Answers (2)
0
Muralidharan Deenathayalan

Muralidharan Deenathayalan

NA 11.9k 1.5m 11y
You have to add authentication + authorization module in your services.
Based on the service context + operation context + user authorization you should be able to restrict the access.

You may need to maintain some kind of roles + users in the database / in configuration xml file to maintain the authorized users list.

Accepted
0
bn raju

bn raju

NA 28 8.6k 11y
Thanks Dude, 
This concept is very usefull for me---

http://www.dotnetcurry.com/ShowArticle.aspx?ID=592