codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



 


Previous Page  Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8  Page 10 Page 11 Page 12 Page 13 Next Page  

ASP.NET Contains its Own Portable Configuration and Security Model

Perhaps the biggest complication any web developer faces during a development cycle comes when the application has been completed and is ready for deployment to a production server environment. For secured applications especially, this process can become painstaking, as the application's user accounts and associated privileges must also be ported into production.

 

To accommodate web developers' needs for application configuration and security portability, Microsoft minimized the interdependence on Internet Information Server and Windows user accounts for securing web applications and adopted the use of XML as a configuration language to make the process a snap. In every ASP.NET or ASP.NET Web Services application, a file called web.config exists within the application's virtual root. This file contains numerous areas of configuration specifics.

 

Two of these sections – authentication and authorization – are illustrated in the following code fragment. Extracted from a complete web.config file, this XML code demonstrates how a web application can be configured to deny anonymous requests.

 

<authentication mode="Windows" />

  <authorization>

    <deny users="?" />

  </authorization>

 

Using the ? wildcard (which represents anonymous requests to this application) as the attribute value of a single XML node, this application has been shielded against any unauthenticated clients.

 

When the application containing the web.config file that this code exists within is deployed to a production server, the security specifics it identifies will be deployed with it. What's better is that, should the security or configuration needs change, they can be implemented through a simple XML authoring process, which can be completed in any text editor.

 

In Chapter 7 of this book, we'll take a more in-depth look at the various methods at your disposal for authentication and authorization.


Previous Page  Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8  Page 10 Page 11 Page 12 Page 13 Next Page  




Click here to Buy!

Buy Fast Track ASP.NET here

© Copyright 2002 Wrox Press These chapter is written by Brady Gaster, Marco Bellinaso & Kevin Hoffman and taken from "Fast Track ASP.NET" published by Wrox Press Limited in June 2002; ISBN 1861007191; copyright © Wrox Press Limited 2002; all rights reserved.

No part of these chapters may be reproduced, stored in a retrieval system or transmitted in any form or by any means -- electronic, electrostatic, mechanical, photocopying, recording or otherwise -- without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews.











Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009