Passport Authentication in asp.net

Started by nandagopal, Aug 18, 2008, 12:00 PM

Previous topic - Next topic

nandagopal



Passport Authentication

Passport Authentication provider uses Microsoft's Passport service to authenticate users. You need to purchase this service in order to use it.

Forms Authentication

Forms Authentication uses HTML forms to collect the user information and then it takes required actions on those HTML collected values.

In order to use Forms Authentication you must set the Anonymous Access checkbox to checked. Now we need to have that whenever the user tries to run the application he or she will be redirected to the login page.

Listing 5
<authentication mode="Forms">
  <forms loginUrl = "frmIndex.aspx" name="4465GT" timeout="4"/>
</authentication>
<authorization>
  <deny users="?" />
</authorization>

As you can see, we set the Authentication mode to "Forms." The forms loginUrl is the first page being displayed when the application is run by any user.