NegotiateHandler 类

定义

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

public ref class NegotiateHandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<Microsoft::AspNetCore::Authentication::Negotiate::NegotiateOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationRequestHandler
public class NegotiateHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler
type NegotiateHandler = class
    inherit AuthenticationHandler<NegotiateOptions>
    interface IAuthenticationRequestHandler
    interface IAuthenticationHandler
Public Class NegotiateHandler
Inherits AuthenticationHandler(Of NegotiateOptions)
Implements IAuthenticationRequestHandler
继承
实现

构造函数

NegotiateHandler(IOptionsMonitor<NegotiateOptions>, ILoggerFactory, UrlEncoder)

创建一个新的 NegotiateHandler

NegotiateHandler(IOptionsMonitor<NegotiateOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
已过时.

创建一个新的 NegotiateHandler

属性

ChallengeCalled

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
ClaimsIssuer

获取颁发任何声明时应使用的颁发者。

(继承自 AuthenticationHandler<TOptions>)
Clock
已过时.

获取 ISystemClock

(继承自 AuthenticationHandler<TOptions>)
Context

获取或设置 HttpContext

(继承自 AuthenticationHandler<TOptions>)
CurrentUri

获取绝对当前 URL。

(继承自 AuthenticationHandler<TOptions>)
Events

处理程序对事件调用方法,这些方法在发生处理的某些点为应用程序提供控制。 如果未提供提供程序,则将提供默认实例,该实例在调用方法时不执行任何操作。

InitializeResult

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
Logger

获取 ILogger

(继承自 AuthenticationHandler<TOptions>)
Options

获取或设置与此身份验证处理程序关联的选项。

(继承自 AuthenticationHandler<TOptions>)
OptionsMonitor

获取 IOptionsMonitor<TOptions> 用于检测选项更改的 。

(继承自 AuthenticationHandler<TOptions>)
OriginalPath

获取身份验证中间件看到的路径。

(继承自 AuthenticationHandler<TOptions>)
OriginalPathBase

获取身份验证中间件看到的路径基。

(继承自 AuthenticationHandler<TOptions>)
PriorHandler

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
Request

获取与 HttpRequest 当前请求关联的 。

(继承自 AuthenticationHandler<TOptions>)
Response

获取与 HttpResponse 当前请求关联的 。

(继承自 AuthenticationHandler<TOptions>)
Scheme

获取或设置 AuthenticationScheme 与该身份验证处理程序关联的 。

(继承自 AuthenticationHandler<TOptions>)
SignInAccepted

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
SignOutAccepted

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
TimeProvider

获取当前时间,主要用于单元测试。

(继承自 AuthenticationHandler<TOptions>)
UrlEncoder

获取 UrlEncoder

(继承自 AuthenticationHandler<TOptions>)

方法

AuthenticateAsync()

对当前请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
AuthenticateAsync(AuthenticateContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
BuildRedirectUri(String)

为指定的 targetPath构造绝对 URL。

(继承自 AuthenticationHandler<TOptions>)
ChallengeAsync(AuthenticationProperties)

质询当前请求。

(继承自 AuthenticationHandler<TOptions>)
ChallengeAsync(ChallengeContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
CreateEventsAsync()

创建默认事件类型。

FinishResponseAsync()

在即将发送响应时调用的挂钩

(继承自 AuthenticationHandler<TOptions>)
ForbidAsync(AuthenticationProperties)

禁止当前请求。

(继承自 AuthenticationHandler<TOptions>)
GetDescriptions(DescribeSchemesContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
HandleAuthenticateAsync()

检查当前请求是否已通过身份验证并返回用户。

HandleAuthenticateOnceAsync()

用于确保 HandleAuthenticateAsync 仅调用一次。 后续调用将返回相同的身份验证结果。

(继承自 AuthenticationHandler<TOptions>)
HandleAuthenticateOnceSafeAsync()

用于确保 HandleAuthenticateAsync 仅安全调用一次。 后续调用将返回相同的身份验证结果。 任何异常都将转换为包含异常的失败身份验证结果。

(继承自 AuthenticationHandler<TOptions>)
HandleChallengeAsync(AuthenticationProperties)

发出 401 WWW-Authenticate协商质询。

HandleForbiddenAsync(AuthenticationProperties)

重写此方法以处理 Forbid。

(继承自 AuthenticationHandler<TOptions>)
HandleForbiddenAsync(ChallengeContext)

重写此方法以处理禁止的质询。

(继承自 AuthenticationHandler<TOptions>)
HandleRequestAsync()

截获不完整的协商身份验证握手,然后继续或完成这些握手。

HandleSignInAsync(SignInContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
HandleSignOutAsync(SignOutContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
HandleUnauthorizedAsync(ChallengeContext)

如果某个身份验证方案将身份验证交互作为请求流的一部分处理,请重写此方法来处理 401 质询问题。 (例如添加响应标头,或将 401 结果更改为登录页的 302 或外部登录位置。)

(继承自 AuthenticationHandler<TOptions>)
InitializeAsync(AuthenticationScheme, HttpContext)

初始化处理程序,解析选项并对其进行验证。

(继承自 AuthenticationHandler<TOptions>)
InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

每个请求调用一次 Initialize,以便将此实例与适当的状态进行上下文化。

(继承自 AuthenticationHandler<TOptions>)
InitializeEventsAsync()

初始化事件对象,每个请求由 InitializeAsync(AuthenticationScheme, HttpContext)调用一次。

(继承自 AuthenticationHandler<TOptions>)
InitializeHandlerAsync()

在初始化选项/事件后调用,以便处理程序完成自身初始化。

(继承自 AuthenticationHandler<TOptions>)
ResolveTarget(String)

解析此身份验证操作转发到的方案。

(继承自 AuthenticationHandler<TOptions>)
ShouldHandleScheme(String, Boolean)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
SignInAsync(SignInContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)
SignOutAsync(SignOutContext)

使用 Negotiate、Kerberos 或 NTLM 对请求进行身份验证。

(继承自 AuthenticationHandler<TOptions>)

适用于