How to Authenticate Users ?

Topics: General Discussion Forum, July and December Releases Forum
Feb 29, 2008 at 5:13 AM
Edited Feb 29, 2008 at 5:25 AM
Hi,

In my Project i wanna check the user has permission or not, in the beginning and inside the service too...
How can i check that, from the Adapter class i wanna check it. then only i can call the InsertCategoryAction(Bussiness Logic).
How can i authenticate inside the service, how can we take the user name into the service..?


Nimesh
Developer
Feb 29, 2008 at 4:39 PM
Edited Feb 29, 2008 at 4:39 PM
There are many places that show you how to authenticate and authorize in a WCF service. You can check this links:

WCF Security 101:
http://msdn.microsoft.com/msdnmag/issues/06/08/SecurityBriefs/

Sample on Declarative security and an easy way to use it:
http://msdn.microsoft.com/msdnmag/issues/07/08/Foundations/

You also have a package for this, "WCF Security Guidance Package" that will help you with securing WCF services.
https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=servicefactory&ReleaseId=8814