A run around ASP.Net membership by uqg17706

VIEWS: 0 PAGES: 10

									A run around ASP.Net membership
        Barry Dorrans
        Application Development Consultant
        Charteris plc.
        barry.dorrans@charteris.com
        http://idunno.org/
Authentication and Authorisation
          Authentication
          Determines the identity of the user
          Authorisation
          Determines access to any part of an
          application
Provider Models
          ASP.Net 2.0 provider models for
            Membership
            Roles
            Profile
            Personalisation
          Built-in
            Sql Server
            Active Directory
Creating the schema
          Two methods
            Use the ASP.Net administration tool




            Use the SQL server registration tool
            aspnet_regsql.exe
The Membership Schema
The Membership Schema
web.config
         <system.web>
             <authentication mode="Forms" />
             <roleManager enabled="true" />
         </system.web>
machine.config provider settings
         <membership>
           <clear />
           <add name="AspNetSqlMembershipProvider"
                type="System.Web.Security.SqlMembershipProvider,
                       System.Web, Version=2.0.0.0,
                       Culture=neutral,
                       PublicKeyToken=b03f5f7f11d50a3a"
                connectionStringName="LocalSqlServer"
                enablePasswordRetrieval="false"
                           />
                enablePasswordReset="true"
                requiresQuestionAndAnswer="true"
                applicationName="/"
                requiresUniqueEmail="false"
                passwordFormat="Hashed"
                maxInvalidPasswordAttempts="5"
                minRequiredPasswordLength="7"
                minRequiredNonalphanumericCharacters="1"
                passwordAttemptWindow="10"
                passwordStrengthRegularExpression="" />
         </membership>
Controls
           Login
           LoginView
           PasswordRecovery
           LoginStatus
           LoginName
           CreateUserWizard
           ChangePassword
Demo Time

								
To top