Integration with existing membership database and single sign on

Last post 11-29-2004, 5:48 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  11-29-2004, 4:05 PM 2678

    Integration with existing membership database and single sign on

    I have seen several people requesting this and the FAQ shows that it has the ability to do it, but what steps are required to use an existing membership database and not require a user to login because they would have already been authenticated by another database.
     
    I have a asp.net site with a SQL backend which stores the user info. The password is stored with MD5 encryption.
     
    Would it be possible to have the user login to my site, then when they access CuteChat it would use their existing username?
  •  11-29-2004, 4:23 PM 2679 in reply to 2678

    Re: Integration with existing membership database and single sign on

    rmfhouston,

    Please check the document:

    How can I hook CuteChat with my existing login system?
     

    CuteChat was built with the idea of extensibility in mind.

    CuteChat implements what is commonly known as a "Provider Model" design pattern—which will be used throughout the ASP.NET 2.0 framework. 

    A "Provider Model" design pattern separates the application logic for the service from its underlying storage repository by introducing a "provider" software component in between.

    This "provider" component exposes a standard interface to the service logic, but allows developers to implement the provider component on top of a repository of their choice.
    By creating custom providers, developers can easily write their own data and business logic layers and simply plug it into existing user management system and reuse the same set of user management system.
    The CuteChat 1.0 ships with seven pre-built providers...
     
    Keep me posted

    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

  •  11-29-2004, 4:54 PM 2680 in reply to 2679

    Re: Integration with existing membership database and single sign on

    Adam,
     
    Thanks for the reply, but that doesnt fully answer my question. The first being that ASP.Net framework is still in BETA. I cannot re-code my site with 2.0 funtionality that is still in BETA form.
     
    So that leaves the seven pre-built providers. Are these the ones that allow integreation into portal sites? Because I am not using a portal so that would not work. I would need CuteChat to work with my own application.
     
    I am not asking for something straight out of the box, but I would like some reference documentation that would point me in the right direction on what would need to be changed to allow for single sign on and integration into my user database. I am coding in vb and not totally familiar with c#.
     
    Any help would be appreciated.
  •  11-29-2004, 5:48 PM 2681 in reply to 2680

    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 as RSS news feed in XML