I have a WCF application set up to use UserName authentication through the built in MembershipProvider. When I call up a simple test function to see if the user is authenticated I get false. Any idea what I am doing wrong? I've included as much info as I can.
The simple method in WCF:
public bool CheckAuthentication()
Identity.Username and all that is blank as well.
This is the test code I'm using (from a test project):
Oref.OfficeClient OC = new Oref.OfficeClient();
OC.ClientCredentials.UserName.UserName = "username";
OC.ClientCredentials.UserName.Password = "password";
bool B = OC.CheckAuthentication();
And here are the relevant sections of web.config:
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
View Complete Post