Forms authentication is a popular means of securing Internet applications. In ASP.NET’s brand of forms authentication, you designate a login page for logging in unauthenticated users and use URL directives to specify which pages require logins and which ones do not. When an anonymous (that is, unauthenticated) user attempts to access a page that’s only available to authenticated users,ASP.NET automatically redirects them to the login page.ASP.NET 1.x simplified forms authentication by introducing declarative means for designating login pages and specifying authorization rules. ASP.NET 2.0 further simplifies forms authentication by providing the following facilities:A membership service for managing users and user credentials Login controls for logging in users, creating new users, and more A role management service for enacting role-based security In this lab, you’ll use all three to build a secure administrative interface for the My Comics application. You’ll begin by creating a login page. Then you’ll secure the admin page you created in Lab 2so that only authenticated users can access it, and add links to the master page for navigating to the admin page and logging in. Finally,you’ll use role-based security to tighten permissions on the admin page so that only administrators can access it. Add a login page In this exercise, you’ll create a login page that includes a Login control for logging in existing users and a Create User Wizard control for registering new users. Tasks Detailed Steps 1. Open the Web sitea. Start Microsoft Visual Studio and use the “File->Open Web Site” command to open the C:\MSLabs\ASP.NET\Starter\
Download Lab 4: ASP.NET 2.0 Membership, Login Controls, and Role Management.
0 comments:
Post a Comment