Reputation: 910
Consider I am having 3 WCF services Svc1, Svc2 and Svc3. I want to authenticate all users by using Windows Authentication but I want to authorize Svc1 to User1 (Windows Authen), Svc2 to User2 (Windows Authen), Svc3 to User3 (Windows Authen).
Currently I can authorize one or many users to all the services through IIS and I have all the above services under same project (application). How can I achieve the above? Is there is any way to configure the specific user for specific service like above?
Upvotes: 0
Views: 48
Reputation: 531
Link to MSDN article explaining the authorization of WCF services using attributes.
Specified as
[PrincipalPermissionAttribute(SecurityAction.Demand, Name = "DomainName\UserName"]
Upvotes: 3