Hi,
I'm trying to authenticate a user throw a kentico webservice, without sucess.
I add a WCF to kentico, that return a XML data. This webservice should be public, so each request should be Authenticated throw a Kentico user to control the data each one can access.
I'm trying to use, kentico API, but when I try to authenticate a user always get a null object, and the user never get authenticated.
My code below...
/// <summary>
/// Try authenticate a user
/// </summary>
/// <param name="user"></param>
/// <param name="pw"></param>
/// <param name="siteName"></param>
/// <returns></returns>
public bool Authentication(string user, string pw, string siteName)
{
if (UserInfoProvider.AuthenticateUser("administrator", "xxxxx", siteName) != null)
{
return true;
}
return false;
}
Thanks.