驗證的 passport 項目 (ASP.NET 設定結構描述)
指定當網頁需要驗證而使用者尚未使用 Microsoft Passport 驗證簽入時重新導向的網頁。
<passport
redirectUrl="redirectURL"
/>
屬性和項目
下列章節會說明屬性、子項目和父項目。
屬性
屬性 |
描述 |
---|---|
redirectUrl |
必要屬性。 重新導向要求的 URL。 這通常是至 Passport 登入頁面的 URL。 預設值為 "internal"。 |
子項目
無。
父項目
項目 |
描述 |
---|---|
configuration |
Common Language Runtime 和 .NET Framework 應用程式所使用之每一個組態檔中的必要根項目。 |
system.web |
在組態檔中,指定 ASP.NET 組態設定的根項目。 包含設定 ASP.NET Web 應用程式和控制該應用程式之行為方式的組態項目。 |
authentication |
設定用於識別檢視 ASP.NET 應用程式使用者的 ASP.NET 驗證配置。 |
備註
passport 項目指定當網頁需要驗證,而使用者尚未使用 Microsoft Passport 驗證簽入時,重新導向的網頁。 只有 authentication 項目的 mode 屬性設為 Passport 時,這個項目才有效。 如需詳細資訊,請參閱 Passport Authentication Provider。
預設組態
下列預設 authentication 項目不會明確地在電腦組態檔或根 Web.config 檔中設定,但它是應用程式傳回的預設組態。
<passport redirectUrl="internal" />
範例
下列範例指定重新導向要求至登入網頁。
<configuration>
<system.web>
<authentication>
<passport redirectUrl="Login.aspx"/>
</authentication>
</system.web>
</configuration>
項目資訊
組態區段處理常式 |
|
組態成員 |
|
可設定的位置 |
Machine.config 根層次 Web.config 應用程式層級 Web.config |
需求 |
IIS 5.0、IIS 5.1 或 IIS 6.0 .NET Framework 1.0、1.1 或 2.0 Visual Studio 2003 或 Visual Studio 2005 |
請參閱
工作
How to: Configure Specific Folders Using Location Settings
How to: Lock ASP.NET Configuration Settings
參考
authentication 項目 (ASP.NET 設定結構描述)
system.web 項目 (ASP.NET 設定結構描述)
驗證的 passport 項目 (ASP.NET 設定結構描述)
概念
ASP.NET Configuration File Hierarchy
其他資源
Passport Authentication Provider