Share via


FederatedAuthentication 類別

定義

提供與 web 應用程式中之聯合驗證相關的所有 HTTP 模組狀態的存取。

public ref class FederatedAuthentication abstract sealed
public static class FederatedAuthentication
type FederatedAuthentication = class
Public Class FederatedAuthentication
繼承
FederatedAuthentication

備註

您可以透過 類別所公開的靜態屬性,存取為 Web 應用程式設定的 FederatedAuthentication 模組。 方法 GetHttpModule 提供擴充點,可透過此點,存取衍生自 HttpModuleBase 且為應用程式設定的其他應用程式定義模組。

屬性 FederatedAuthentication.FederationConfiguration 會參考 的單一實例 FederationConfiguration ,以提供 HTTP 模組的組態設定。 第一次由其中一個 HTTP 模組存取 屬性時, FederationConfiguration 實例會從 <組態檔中的 federationConfiguration> 元素初始化,並 FederationConfigurationCreated 引發 ,以提供應用程式修改組態對象的機會,再用來初始化模組屬性。 每次存取 屬性時,都會傳回相同的 FederationConfiguration 實例。

重要

宣告授權管理員 (ClaimsAuthorizationManager) ,用來評估使用 ClaimsPrincipalPermission 類別ClaimsPrincipalPermissionAttribute或 類別時,在透過 屬性參考FederatedAuthentication.FederationConfiguration的同盟組態對象上設定的物件上IdentityConfiguration設定宣告型存取檢查。 不論是 ASP.NET 應用程式,所有應用程式都是如此。

屬性

ClaimsAuthorizationModule

取得 Web 應用程式所使用的宣告授權模組。

FederationConfiguration

取得在這個 Web 應用程式中 HTTP 模組所使用的單一 FederationConfiguration 執行個體。

SessionAuthenticationModule

取得 Web 應用程式所使用的工作階段驗證模組 (SAM)。

WSFederationAuthenticationModule

取得 Web 應用程式所使用的 WS-Federation 驗證模組 (WSFAM)。

方法

GetHttpModule<T>()

取得 Web 應用程式正在使用、指定之型別的 HTTP 模組。

事件

FederationConfigurationCreated

當 web 應用程式的其中一個 HTTP 模組第一次存取 FederationConfiguration 屬性時發生。

適用於

另請參閱