80 likes | 179 Views
Forms Authority Database Store. Username and Passwords: ASP.NET framework allows you to control access to pages, classes, or methods based on username and passwords. Also provides server side controls for common functions, like resetting passwords etc. Authentication
E N D
Forms Authority Database Store • Username and Passwords: • ASP.NET framework allows you to control access to pages, classes, or methods based on username and passwords. • Also provides server side controls for common functions, like resetting passwords etc. • Authentication • The process that determines the identity of the user. • Authorization • If the authenticated user is authorized to do certain actions. • CreateUserWizard control. • ASP.NET fucntion see next page.
Forms Authority Database Store • CreateUserWizardcontrol: • <%@ Page Language="C#" %> • <!DOCTYPE html • PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" • "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> • <html xmlns="http://www.w3.org/1999/xhtml" > • <head runat="server"> • <title>Login</title> • </head> • <body> • <form id="form1" runat="server"> • <div> • <asp:Login ID="Login1" runat="server"> • </asp:Login> • </div> • <div> • <p>Forgotten your password?</p> • <asp:PasswordRecovery ID="PasswordRecovery1" runat="server"> • </asp:PasswordRecovery> • </div> • <div> • <p>Not registered?</p> • <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"> • <WizardSteps> • <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"> • </asp:CreateUserWizardStep> • <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"> • </asp:CompleteWizardStep> • </WizardSteps> • </asp:CreateUserWizard> • </div> • </form> • </body> • </html>
Forms Authority Database Store • CreateUserWizard control: • Created Login • Logged in • Back Button Back
Forms Authority Database Store • CreateUserWizard control: • Retrieve password
Forms Authority Database Store • Username and Passwords: • If you are not prompted to login this indicates that you still have a authentication cookie. • Database store • Show Table • A lot of customization • Sending of emails • Extra wizard setup • Auto-generation of passwords
Forms Authority Database Store • Username and Passwords: • User Table • Passwords stored as salted hash. • Web.config - Membership settings • <system,web> • <membership> • <providers> • <add name="AspNetSqlMembershipProvider" • connectionStringName="LocalSqlServer" • enablePasswordRetrieval="false" • enablePasswordReset="true" • requireQuestionAndAnswer="false" • Etc. • /> • </providers> • </membership> • </system.web>
Forms Authority Database Store QUESTIONS?