03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16<br />

Security <strong>in</strong> Your <strong>ASP</strong>.<strong>NET</strong> <strong>4.5</strong><br />

Website<br />

WHAT YOU WILL LEARN IN THIS CHAPTER:<br />

‰ Important term<strong>in</strong>ology you’ll encounter when deal<strong>in</strong>g with security<br />

‰ The <strong>ASP</strong>.<strong>NET</strong> application services that drive the security model of<br />

<strong>ASP</strong>.<strong>NET</strong><br />

‰ How you can let users sign up for an account for your site<br />

‰ How users can reset their passwords or request new ones<br />

‰ How you can manage the users <strong>and</strong> roles <strong>in</strong> your database at development<br />

time<br />

‰ How you can present different content to different users based on<br />

their access rights <strong>in</strong> the system<br />

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER<br />

You can f<strong>in</strong>d the wrox.com code downloads for this chapter on the Download Code tab at<br />

www.wrox.com/remtitle.cgi?isbn=1118311809. The code is <strong>in</strong> the chapter 16 download.<br />

Until now, you have been creat<strong>in</strong>g pages <strong>in</strong> your website that are accessible to all visitors to<br />

your site. There is currently no way to block certa<strong>in</strong> resources like <strong>ASP</strong>X files or even whole<br />

folders for specific users. That means, for example, that currently anyone can access your<br />

Management folder <strong>and</strong> start mess<strong>in</strong>g with the genres <strong>and</strong> reviews <strong>in</strong> the system.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!