IIS
  Home arrow IIS arrow Page 2 - Authentication and Authorization
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
IIS

Authentication and Authorization
By: Nandini Venugopalan
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 34
    2004-04-19

    Table of Contents:
  • Authentication and Authorization
  • Authentication Providers
  • Windows Authentication and IIS
  • Configuring Authorization

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Authentication and Authorization - Authentication Providers


    (Page 2 of 4 )

     

    Authentication Providers
    ASP.NET provides three types of authentication, namely windows authentication, forms authentication and passport authentication.  It is the job of the authentication provider to verify the credentials of the user and decide whether a particular request should be considered authenticated or not.

    • Windows Authentication Provider
      Windows authentication provider is the default provider for ASP.NET. It lets us/application authenticate users based on the users’ Windows accounts.  IIS performs authentication for this provider and the authenticated identity is then passed on to the code.

    • Passport Authentication Provider
      This provider uses the passport services provided by Microsoft.

    • Forms Authentication Provider
      The forms authentication provider uses custom HTML forms to collect authentication information and lets us use our logic to authenticate users. The user’s credentials are stored in a cookie for use during the session. If the application authenticates the request, the system issues a form that contains the credentials or a key for reacquiring the identity. Subsequent requests are issued with the form in the request headers; they are authenticated and authorized by an ASP.NET handler using whatever validation method we have specified in our code.

    To select an authentication provider, an entry indicating the same has to be made in the web.config file.


    <authentication mode=”windows”//For Windows authentication
    <authentication mode=”passport”> //For Passport authentication
    <authentication mode=”forms”> //For Forms authentication

    ASP.NET also supports custom authentication providers. Setting the authentication mode for the application to “none” and then writing our own code to perform authentication can achieve this.


    <authentication mode=”none”//For Custom authentication

    ASAPI Filters

    For example, we might install an ISAPI* filter** in IIS that compares incoming requests’ IP address with a list of source IP addresses and considers the request to be authenticated only if the IP address is found in the source list. In this example, we can set the authentication mode to “none” in the web.config file. This will prevent any of the default authentication providers from being triggered.

    We just had a brief look at the authentication providers of ASP.NET. Let us now go into detail and explore the authentication modes in detail.

    More IIS Articles
    More By Nandini Venugopalan


     

    IIS ARTICLES

    - Retrieving IIS information using ASP.NET 2.0
    - IIS 6.0, Getting Information Using WMI
    - The Importance of a Domain
    - Implementing a PKI, Part II: Configuring IIS...
    - Creating Test and Production Sites with Only...
    - Authentication and Authorization
    - Beefing Up IIS: 10 Tips From A Former Solari...
    - An Introduction To ISAPI
    - Secure Your Web Server With SSL
    - Introduction to HTML and ASP
    - Instructions to help in Designing your own C...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek