Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
Forms Authority Database Store PowerPoint Presentation
Download Presentation
Forms Authority Database Store

Forms Authority Database Store

59 Views Download Presentation
Download Presentation

Forms Authority Database Store

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. 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.

  2. 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>

  3. Forms Authority Database Store • CreateUserWizard control: • Created Login • Logged in • Back Button Back

  4. Forms Authority Database Store • CreateUserWizard control: • Retrieve password

  5. 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

  6. 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>

  7. Forms Authority Database Store QUESTIONS?