共用方式為


System.IdentityModel.Services 命名空間

包含用於使用 Windows 身份基礎(WIF)應用程式的類別,這些應用程式會以 WS-Federation 協定進行聯邦認證。 它包含 HTTP 模組 WSFederationAuthenticationModule (WSFAM)和 SessionAuthenticationModule (SAM),以及支援其操作的類別。 WSFAM 負責 WS-Federation 登入與登出序列的處理,SAM 則透過維護及處理 Cookie 來管理會話。 命名空間還包含代表 WS-Federation 訊息(WSFederationMessage)、SignInRequestMessageSignInResponseMessage()、()和登出訊息(SignOutRequestMessage)的類別,以及在物件模型與這些訊息的線路上表示之間進行序列化與反序列化的序列化器。

類別

名稱 Description
AsynchronousOperationException

當非同步操作發生錯誤時拋出的例外。

AttributeRequestMessage

代表一個 WS-Federation 屬性請求訊息。 當收到訊息中的 wa 參數為「wattr1.0」時,會產生此訊息。

AuthorizationFailedEventArgs

提供 AuthorizationFailed 事件的資料。

ChunkedCookieHandler

代表一個 Cookie 處理器,能寫入 Cookie 資料,確保 Cookie 的大小永遠不會超過設定大小。

ChunkedCookieHandlerElement

代表 <chunkedCookieHandler> 配置元素。

ClaimsAuthorizationModule

代表一個執行基於權利要求授權的 HTTP 模組。

ClaimsPrincipalPermission

代表一種權限,利用實 ClaimsAuthorizationManager 作判斷是否應授予主動主體存取資源。 無法繼承這個類別。

ClaimsPrincipalPermissionAttribute

代表一種安全屬性,用於根據實例在當前應用情境中 ClaimsAuthorizationManager 所提供的邏輯,宣告性地指派存取檢查。 無法繼承這個類別。

CookieHandler

提供一個抽象基底類別,用於在 HTTP 用戶端讀取、寫入及刪除會話 Cookie。

CookieHandlerElement

代表 <cookieHandler> 配置元素。

ErrorEventArgs

提供 SignOutError 事件的資料。

FederatedAuthentication

提供與網頁應用程式中所有與聯邦認證相關的 HTTP 模組相關的狀態存取。

FederatedAuthenticationSessionEndingException

表示登入會話應終止,且目前請求未進行驗證。

FederatedPassiveSecurityTokenServiceOperations

一個公用類別,封裝了聯邦被動安全憑證服務通常執行的操作。

FederatedSessionExpiredException

例外是當會話結束時拋出的。

FederationException

WS-Federation 支援中提出例外的基礎類別。

FederationManagement

定義建立聯邦元資料文件及基於聯盟元資料文件更新應用程式設定的靜態方法。

FederationMessage

定義所有聯邦訊息類別的基底類別。

HttpModuleBase

可設定 <system.identityModel.services> 元素 (SystemIdentityModelServicesSection) 的 HTTP 模組的基底類別。

MachineKeyTransform

保護會話令牌,使用 web.config 或 machine.config 設定檔區段指定的 <machineKey> 密碼資料。

PseudonymRequestMessage

代表 WS-Federation 化名請求訊息。 當收到的訊息 wa 參數為「wpseudo1.0」時,會產生此訊息。

RedirectingToIdentityProviderEventArgs

提供 RedirectingToIdentityProvider 事件的資料。

SecurityTokenReceivedEventArgs

提供 SecurityTokenReceived 事件的資料。

SecurityTokenValidatedEventArgs

提供 SecurityTokenValidated 事件的資料。

ServiceCertificateElement

代表 <serviceCertificate> 設定檔中的元素。

SessionAuthenticationModule

實作一個 ASP.NET 模組,在 WS-Federation 情境下處理會話 Cookie。

SessionSecurityTokenCreatedEventArgs

提供活動 SessionSecurityTokenCreated 及活動資料 SessionSecurityTokenCreated

SessionSecurityTokenReceivedEventArgs

提供 SessionSecurityTokenReceived 事件的資料。

SessionSecurityTokenResolver

解析目前快取中的會話安全權杖。

SigningOutEventArgs

提供 SigningOut 事件的資料。

SignInRequestMessage

代表 WS-Federation 登入請求訊息。

SignInResponseMessage

代表 WS-Federation Sign-In 回應訊息。

SignOutCleanupRequestMessage

代表 WS-Federation Sign-Out 清理訊息。 當收到的訊息將動作參數(wa)設定為「wsignoutcleanup1.0」時,該訊息即被建立。

SignOutRequestMessage

代表 WS-Federation 登出訊息。 當收到的訊息的動作參數(wa)設為「wsignout1.0」時,會產生此訊息。

WSFederationAuthenticationModule

WSFederationAuthenticationModule 是一個 HTTP 模組,用於透過強制聯邦認證設定來保護 ASP.NET 應用程式。 WSFederationAuthenticationModule 是 WIF 開箱即用的主要模組,用於處理 ASP.NET 申請中基於理賠的身份存取。

WSFederationAuthenticationModule 會觸發多個事件,讓 ASP.NET 開發者能改變預設行為,並控制認證與理賠處理的細節。 WSFederationAuthenticationModule 功能分為工作特定的方法。

WSFederationMessage

表示一個 WS-Federation 訊息,並定義基底類別,作為更專門化 WS-Federation 訊息類別的衍生來源。

WSFederationMessageException

當序列化或反序列化 WS-Federation 訊息時發生錯誤時拋出的例外。

WSFederationSerializer

提供將 WS-Federation 訊息 RequestSecurityToken 轉換為 和 RequestSecurityTokenResponse 物件的方法,這些物件是 WS-Trust 協定特定的。

列舉

名稱 Description
ApplicationType

指定應用程式的種類。

CookieHandlerMode

指定支援的 Cookie 處理程式模式。

定義 Mode 屬性的可能值。 這個屬性會定義 CookieHandlerElement 物件所設定的Cookie處理程式類型。 如需詳細資訊,請參閱 CookieHandlerElement 類別。