FederatedAuthentication 类
定义
提供对 Web 应用程序中联合身份验证相关的所有 HTTP 模块状态的访问权限。Provides access to state pertinent to all HTTP modules relevant to federated authentication in the web application.
public ref class FederatedAuthentication abstract sealed
public static class FederatedAuthentication
type FederatedAuthentication = class
Public Class FederatedAuthentication
- 继承
-
FederatedAuthentication
注解
可以通过类公开的静态属性访问为 web 应用程序配置的模块 FederatedAuthentication 。You can access the modules that are configured for the web application through the static properties exposed by the FederatedAuthentication class. GetHttpModule方法提供了一个扩展点,通过此扩展点,可以访问派生自 HttpModuleBase 和为应用程序配置的其他应用程序定义的模块。The GetHttpModule method provides an extension point through which other application-defined modules that derive from HttpModuleBase and that are configured for the application can be accessed.
FederatedAuthentication.FederationConfiguration属性引用为 FederationConfiguration HTTP 模块提供配置设置的的单一实例。The FederatedAuthentication.FederationConfiguration property references a singleton instance of FederationConfiguration that provides configuration settings for the HTTP modules. 第一次访问该属性时,其中一个 HTTP 模块会 FederationConfiguration 初始化 < > 该属性,并将 FederationConfigurationCreated 引发,以便提供一个应用程序,使其能够在用于初始化模块属性之前修改配置对象。The first time the property is accessed by one of the HTTP modules, a FederationConfiguration instance is initialized from the <federationConfiguration> element in the configuration file and the FederationConfigurationCreated is raised to provide an application with the opportunity to modify the configuration object before it is used to initialize module properties. FederationConfiguration对属性的每个后续访问都将返回同一个实例。The same FederationConfiguration instance is returned on each subsequent access of the property.
重要
声明授权管理器 (ClaimsAuthorizationManager) ,用于在使用类时评估基于声明的访问检查, ClaimsPrincipalPermission 或 ClaimsPrincipalPermissionAttribute 在 IdentityConfiguration 通过属性引用的联合身份验证配置对象上设置的对象上配置类 FederatedAuthentication.FederationConfiguration 。The claims authorization manager (ClaimsAuthorizationManager) that is used to evaluate claims based access checks when using the ClaimsPrincipalPermission class or the ClaimsPrincipalPermissionAttribute class is configured on the IdentityConfiguration object that is set on the federation configuration object referenced through the FederatedAuthentication.FederationConfiguration property. 无论应用程序是否 ASP.NET 应用程序都是如此。This is true for all applications whether they are ASP.NET applications or not.
属性
| ClaimsAuthorizationModule |
获取此 Web 应用程序使用的声明授权模块。Gets the claims authorization module used by the web application. |
| FederationConfiguration |
获取 HTTP 模块在该 Web 应用程序使用的单独 FederationConfiguration 实例。Gets the singleton FederationConfiguration instance used by the HTTP modules in this web application. |
| SessionAuthenticationModule |
获取应用程序所用的会话身份验证模块 (SAM)。Gets the session authentication module (SAM) used by the web application. |
| WSFederationAuthenticationModule |
获取 Web 应用程序所用的验证模块 (WSFAM)。Gets the WS-Federation Authentication Module (WSFAM) used by the web application. |
方法
| GetHttpModule<T>() |
获取 Web 应用程序所使用的指定类型的 HTTP 模块。Gets the HTTP module of the specified type that is being used by the web application. |
事件
| FederationConfigurationCreated |
当 FederationConfiguration 属性由在 web 应用中的一个 HTTP 模块第一次访问时发生。Occurs when the FederationConfiguration property is accessed for the first time by one of the HTTP modules in the web application. |