Moderator Message Queue not working with single sign on

  •  12-05-2007, 10:18 AM

    Moderator Message Queue not working with single sign on

    I have tried implementing the membership database integration using the steps located @ http://cutesoft.net/ASP.NET+Chat/Developer-Guide/scr/DeploymentIntegration.htm .   I have tested the chat room as a moderator and here are the list of issues i noticed:
     
    • the first thing i noticed is that my friend helping me test did not see the hammer (indicating moderator) beside my name when he entered the room, yet i can see it on my screen. 
    • When i try to kick him i am getting the error: "INVALIDTARGET"
    • When I open moderate mode, the moderator message queue window opens, but when the normal user types anything in the channel it does not appear.  If I (the moderator) leave the room and come back, then i can see the messages he previously typed, but will not see any new ones until i leave and come back again.
    Here is what is currently in my global.asax:

    namespace SamplePortal4

    {

    public class Global : System.Web.HttpApplication

    {

    protected void Application_Start(object sender, EventArgs e)

    {

    CuteChat.ChatProvider.Instance = new AspNetChatProvider();

    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());

    }

    protected void Application_End(object sender, EventArgs e)

    {

    }

    }

    public class AspNetChatProvider : CuteChat.ChatProvider

    {

    public override AppChatIdentity GetLogonIdentity()

    {

    UserAuthenticationInfo userInfo = UserAuthenticationInfo.getUserInfo();

    return new AppChatIdentity(userInfo.UserName, false, Convert.ToString(userInfo.ConsumerID), HttpContext.Current.Request.UserHostAddress);

    }

    public override string FindUserLoginName(string nickName)

    {

    UserAuthenticationInfo userInfo = UserAuthenticationInfo.getUserInfo();

    return userInfo.UserName;

    }

    public override bool IsLobbyAdmin(IChatLobby lobby, string userid)

    {

    UserAuthenticationInfo userInfo = UserAuthenticationInfo.getUserInfo();

    if (userInfo.Roles.Contains("ChatModerator"))

    {

    return true;

    }

    return false;

    }

    public override bool GetUserInfo(string loginName, ref string nickName)

    {

    return true;

    }

    public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)

    {

    UserAuthenticationInfo userInfo = UserAuthenticationInfo.getUserInfo();

    nickName = userInfo.UserName;

    if (userInfo.Roles.Contains("ChatModerator"))

    {

    isAdmin = true;

    }

    else

    {

    isAdmin = false;

    }

    return isAdmin;

    }

    public override bool ValidateUser(string loginName, string pwd)

    {

    UserAuthenticationInfo userInfo = UserAuthenticationInfo.getUserInfo();

    System.Web.Security.FormsAuthentication.SetAuthCookie(userInfo.UserName, false, "/");

    return true;

    }

    }

    }

    I have tried different approaches trying to get this to work and I think i'm finally at a dead end.  Any information would be very helpful.
     
    Thanks!
     
     
View Complete Thread