AuthenticationHandler<TOptions> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于实现 的 IAuthenticationHandler有意见的抽象。
generic <typename TOptions>
where TOptions : AuthenticationOptionspublic ref class AuthenticationHandler abstract : Microsoft::AspNetCore::Http::Features::Authentication::IAuthenticationHandler
generic <typename TOptions>
where TOptions : AuthenticationSchemeOptionsgcnew()public ref class AuthenticationHandler abstract : Microsoft::AspNetCore::Authentication::IAuthenticationHandler
public abstract class AuthenticationHandler<TOptions> : Microsoft.AspNetCore.Http.Features.Authentication.IAuthenticationHandler where TOptions : AuthenticationOptions
public abstract class AuthenticationHandler<TOptions> : Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : AuthenticationSchemeOptions, new()
type AuthenticationHandler<'Options (requires 'Options :> AuthenticationOptions)> = class
interface IAuthenticationHandler
type AuthenticationHandler<'Options (requires 'Options :> AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> = class
interface IAuthenticationHandler
Public MustInherit Class AuthenticationHandler(Of TOptions)
Implements IAuthenticationHandler
类型参数
- TOptions
用于配置身份验证处理程序的选项的类型。
- 继承
-
AuthenticationHandler<TOptions>
- 派生
- 实现
构造函数
属性
ChallengeCalled |
用于实现 的 IAuthenticationHandler有意见的抽象。 |
ClaimsIssuer |
获取颁发任何声明时应使用的颁发者。 |
Clock |
已过时.
获取 ISystemClock。 |
Context |
获取或设置 HttpContext。 |
CurrentUri |
获取绝对当前 URL。 |
Events |
处理程序对事件调用方法,这些方法在发生处理的某些点为应用程序提供控制。 如果未提供提供程序,则将提供默认实例,该实例在调用方法时不执行任何操作。 |
InitializeResult |
用于实现 的 IAuthenticationHandler有意见的抽象。 |
Logger |
获取 ILogger。 |
Options |
获取或设置与此身份验证处理程序关联的选项。 |
OptionsMonitor |
获取 IOptionsMonitor<TOptions> 用于检测选项更改的 。 |
OriginalPath |
获取身份验证中间件看到的路径。 |
OriginalPathBase |
获取身份验证中间件看到的路径基。 |
PriorHandler |
用于实现 的 IAuthenticationHandler有意见的抽象。 |
Request |
获取与 HttpRequest 当前请求关联的 。 |
Response |
获取与 HttpResponse 当前请求关联的 。 |
Scheme |
获取或设置 AuthenticationScheme 与该身份验证处理程序关联的 。 |
SignInAccepted |
用于实现 的 IAuthenticationHandler有意见的抽象。 |
SignOutAccepted |
用于实现 的 IAuthenticationHandler有意见的抽象。 |
TimeProvider |
获取当前时间,主要用于单元测试。 |
UrlEncoder |
获取 UrlEncoder。 |
方法
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈