Partager via


<passport> Element

Specifies the page to redirect to if the page requires authentication and the user has not signed on with Microsoft Passport authentication.

<configuration>
   <system.web>
      <authentication>
**         <passport>**

<passport redirectUrl="redirectURL"/>

Required Attribute

Attribute Description
redirectUrl The URL to which the request is redirected.

Example

The following example specifies the logon page that requests are redirected to.

<configuration>
   <system.web>
      <authentication>
         <passport redirectUrl="Login.aspx"/>
      </authentication>
   </system.web>
</configuration>

Requirements

Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Configuration.AuthenticationConfigHandler

See Also

<authentication> Element | ASP.NET Configuration | ASP.NET Settings Schema