TwitterHandler 类

定义

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

public ref class TwitterHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Authentication::Twitter::TwitterOptions ^>
public class TwitterHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions>
type TwitterHandler = class
    inherit RemoteAuthenticationHandler<TwitterOptions>
Public Class TwitterHandler
Inherits RemoteAuthenticationHandler(Of TwitterOptions)
继承

构造函数

TwitterHandler(IOptionsMonitor<TwitterOptions>, ILoggerFactory, UrlEncoder)

初始化 TwitterHandler 的新实例。

TwitterHandler(IOptionsMonitor<TwitterOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
已过时.

初始化 TwitterHandler 的新实例。

属性

ChallengeCalled

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 AuthenticationHandler<TOptions>)
ClaimsIssuer

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

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

获取 ISystemClock

(继承自 AuthenticationHandler<TOptions>)
Context

获取或设置 HttpContext

(继承自 AuthenticationHandler<TOptions>)
CurrentUri

获取绝对当前 URL。

(继承自 AuthenticationHandler<TOptions>)
Events

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

InitializeResult

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 AuthenticationHandler<TOptions>)
Logger

获取 ILogger

(继承自 AuthenticationHandler<TOptions>)
Options

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

(继承自 AuthenticationHandler<TOptions>)
OptionsMonitor

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

(继承自 AuthenticationHandler<TOptions>)
OriginalPath

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

(继承自 AuthenticationHandler<TOptions>)
OriginalPathBase

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

(继承自 AuthenticationHandler<TOptions>)
PriorHandler

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 AuthenticationHandler<TOptions>)
Request

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

(继承自 AuthenticationHandler<TOptions>)
Response

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

(继承自 AuthenticationHandler<TOptions>)
Scheme

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

(继承自 AuthenticationHandler<TOptions>)
SignInAccepted

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 AuthenticationHandler<TOptions>)
SignInScheme

默认情况下用于登录的身份验证方案。

(继承自 RemoteAuthenticationHandler<TOptions>)
SignOutAccepted

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 AuthenticationHandler<TOptions>)
TimeProvider

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

(继承自 AuthenticationHandler<TOptions>)
UrlEncoder

获取 UrlEncoder

(继承自 AuthenticationHandler<TOptions>)

方法

AuthenticateAsync()

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

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

为指定的 targetPath构造绝对 URL。

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

质询当前请求。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

创建事件实例的新实例。

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, AccessToken, JObject)

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, AccessToken, JsonElement)

AuthenticationTicket从指定的 token创建 。

FinishResponseAsync()

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

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

禁止当前请求。

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

生成一个 Cookie,其中包含用于关联当前远程身份验证请求的 nonce。

(继承自 RemoteAuthenticationHandler<TOptions>)
GenerateCorrelationId(AuthenticationProperties)

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

派生类型可以重写此方法以处理拒绝访问错误。

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

允许派生类型处理身份验证。

(继承自 RemoteAuthenticationHandler<TOptions>)
HandleAuthenticateOnceAsync()

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

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

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

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

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

HandleForbiddenAsync(AuthenticationProperties)

重写此方法以处理 Forbid。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 RemoteAuthenticationHandler<TOptions>)
HandleRemoteAuthenticateAsync()

使用标识提供者对用户标识进行身份验证。

方法处理 CallbackPath 定义的终结点上的请求。

HandleRemoteCallbackAsync()

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

处理当前身份验证请求。

(继承自 RemoteAuthenticationHandler<TOptions>)
HandleSignInAsync(SignInContext)

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 RemoteAuthenticationHandler<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>)
ShouldHandleRequestAsync()

获取一个值,该值确定当前身份验证请求是否应由 处理 HandleRequestAsync()

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

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

验证当前请求是否与当前远程身份验证请求相关联。

(继承自 RemoteAuthenticationHandler<TOptions>)
ValidateCorrelationId(AuthenticationProperties)

用于 Twitter 基于 OAuth 的身份验证的身份验证处理程序。

(继承自 RemoteAuthenticationHandler<TOptions>)

适用于