Results 1 to 4 of 4

Thread: Membership provider in asp.net

  1. #1
    Join Date
    Feb 2009
    Posts
    61

    Membership provider in asp.net

    Hi,
    I am planing to implement a membership provider on my web page. We have a multiple users. I want to launch a membership service for them so that only my users can access my website completely and enjoy other privileges. Before starting I want some guidelines to perform the above action. By referring some materials and code example I can collect more confident and information. Any suggestion related to this topic is really appreciated. Thanks

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Membership provider in asp.net

    The design and structure of an software is an important part for its reliability. Here I am posting you some guidelines to implement the membership service on a web page. By the below sample your web page can validate and create a user. Now look at the below code sample and place it in the web.config file. It contains DBMembershipProvider Assembly. This one is the starting point of membership service in you web server.

    Code:
    <membership defaultProvider="DBProviderMembershipProvider">
    
              <providers>
    
                       <add name="DBProviderMembershipProvider"
    
                        type="MyMembershipProvider,DBMembershipProvider"
    
                        description="DB Provider membership provider" />
    
              </providers>
    
    </membership>

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Membership provider in asp.net

    You can use an ready made and automated service called xml membership provider. It is designed for asp.net 2.0. Well asp.net comes with a SqlMembershipProvider and ActiveDirectoryMembershipProvider. This two option makes user authentication and authorization an easy task to perform. Now instead of that I am giving you a much more simple solution. It is like and plug and play device. Just download the code and place it. You can also refer the structure of this code to get an idea about how to implement the service. Click below to download.
    XmlMembershipProvider

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Membership provider in asp.net

    Here by this service your users can create a user name and password in your website. It is facility which enables a user to setup an account with the website. The SQL server database is an priority need in the membership thing which will used to store the information of user. There is also a method in this by which a question will pop up in case the user forgets the password. The steps are as follows :
    • In your web.config file go under <system.web> and create a <membership> element.
    • Then create <providers> element under the <membership>
    • Now add a <clear/> element to clear the collection of user which will act as a child to provider.
    • Now create <add/> under clear. Put the listed attributes : name, type, connectionStringName, applicationName, enablePasswordRetrieval, enablePasswordReset, requiresQuestionAndAnswer, requiresUniqueEmail, and passwordFormat

    Then the second part to set the security service which will accept user name/password.
    • Go to configuration file. Add <bindings> element under the <system.ServiceModel>. Then add wsHttpBinding to the binding section.
    • Then you will need to set the mode attribute of <security> to message.
    • Then set the clientCredentialType of <message> to username. Specify the username's and password.

    Then the last part to configure a service by which the user can use membership provider
    • First add <behaviour> to the <system.serviceModel> as a child.
    • Then to the section of <behaviors> element add a serviceBehaviors.
    • Set the name attribute to an appropriate value by adding a behavior element.
    • Then to the <behavior> element add <serviceCredentials>.
    • Then to <serviceCredentials> element add a userNameAuthentication.
    • Now finally set the userNamePasswordValidationMode attribute to MembershipProvider.

Similar Threads

  1. Replies: 3
    Last Post: 28-08-2011, 10:46 PM
  2. What new in membership on xbox live
    By $Bradan$ in forum Video Games
    Replies: 4
    Last Post: 20-11-2010, 12:07 AM
  3. Building a membership website
    By goni in forum Software Development
    Replies: 3
    Last Post: 21-08-2009, 01:01 PM
  4. How to use custom methods in asp.net in membership provider
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 28-07-2009, 11:04 AM
  5. Printing Group membership
    By Charlie R in forum Active Directory
    Replies: 1
    Last Post: 09-02-2007, 06:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,655,909.14169 seconds with 17 queries