Re: Integration with existing membership database and single sign on

  •  11-29-2004, 5:48 PM

    Re: Integration with existing membership database and single sign on

    rmfhouston,
     
    If your portal is not based on the seven applications (with built-in providers), . You need to create a custom Provider to integrate CuteChat with existing user login system.
     
    To implement a custom CuteChat Provider, you will need to provide a concrete implementation of the SqlDataProvider class and IUserIdentityAdapter class, and plug it into the system through appropriate configuration settings.
    Please check section and code building a CuteChat provider for the lastest ASPNetForums 2.0. The Provider for ASPNetForums 2.0 will allow CuteChat communicate with the existing ASPNetForums 2.0 login system.

    To provide a complete implementation, you will need to provide overrides for all of the methods and properties of the SqlDataProvider.
     
    For example:

    The implementation of the ListUserUniqueName method

    Description:
    Retrieves all the user names in the database.

    public override string[] ListUserUniqueName() { 
        using(SqlCommand cmd=CreateCommand()) { 
            cmd.CommandText="select UserName from "+OwnerPrefix+"Forums_Users"; 
            return SqlDataAccess.ExecuteStringArray(cmd); 
        } 
    }

    The implementation of the ListRoleUniqueName method

    Description:
    Retrieves all the role names available to all users.

    public override string[] ListRoleUniqueName() { 
        using(SqlCommand cmd=CreateCommand()) { 
            cmd.CommandText="select Name from "+OwnerPrefix+"Forums_Roles"; 
            return SqlDataAccess.ExecuteStringArray(cmd); 
        } 
    }

     


    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

View Complete Thread