jjonesdtrt,
Have you checked the following article?
Integration with an existing user membership database (Direct Log In Mechanism)
Basically you need to let Cute Chat know who is admin, how to get the username, a list of all users....
Cute Chat doesn't need to how where you get this information. It event supports hard code information.
The following is the user provider used when developing this product.
public string GetConnectionString(CuteSoft.Chat.UserIdentity user)
{
return System.Configuration.ConfigurationSettings.AppSettings["CuteChat.SqlClient.ConnectionString"];
}
//IHttpApplicationUserAdapter
public CuteSoft.Chat.UserIdentity GetUserIdentity()
{
string id=GetUserUniqueName();
if(id==null)
return CuteSoft.Chat.UserIdentity.CreateNull();
CuteSoft.Chat.UserIdentity identity=new CuteSoft.Chat.UserIdentity(id,null,Context.Request.UserHostAddress);
//identity.CustomItems["myprop"]="myval";
return identity;
}
public string GetUserUniqueName() //Get the ID of current user
{
if(Context.User.Identity.IsAuthenticated)
return Context.User.Identity.Name;
return null;
}
//IHttpApplicationDataProvider
public string[] ListUserUniqueName()
{
//list the known users
return new string[]{"admin"};
}
public bool IsAdministrator(string useruniquename)
{
if(string.Compare(useruniquename,"admin",true)==0)
return true;
return false;
}
public string GetUserDisplayName(string useruniquename)
{
switch(useruniquename.ToLower())
{
case "admin":
return "Administrator";
case "terry":
return "Terry.X";
case "marry":
return "Marry.White";
default:
return useruniquename + "test";
}
}
public string[] SearchUserUniqueNameByDisplayName(string userDisplaName)
{
switch(userDisplaName.ToLower())
{
case "administrator":
return new string[]{"admin"};
case "terry.dai":
return new string[]{"terry"};
default:
return new string[]{userDisplaName};
}
}
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx