I am working on a Messaging Application built using WPF and WCF-RESTful site. I am don't have much experience in WCF
This application is used inside intranet as well as internet. The application prompts for authentication (custom login screen in the messaging application) when it accessed through internet (outside the domain).
We have written authentication logic in the WCF service like below,
using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, domain))
if (!pc.ValidateCredentials(userName, password, ContextOptions.Negotiate))
The Website's application pool is set to use NetworkService. The website's authentication is "Anonymous" as the Intranet User's do not require to authenticate.
I do not get any error or exception. Instead, it always returns "false" for any username even though the credential are correct.
Can you please tell me what I am missing here?
Thanks in Advance.