OAuthMiddleware<TOptions> 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。
generic <typename TOptions>
 where TOptions : OAuthOptionsgcnew()public ref class OAuthMiddleware : Microsoft::AspNetCore::Authentication::AuthenticationMiddleware<TOptions>public class OAuthMiddleware<TOptions> : Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions> where TOptions : OAuthOptions, new()type OAuthMiddleware<'Options (requires 'Options :> OAuthOptions and 'Options : (new : unit -> 'Options))> = class
    inherit AuthenticationMiddleware<'Options (requires 'Options :> OAuthOptions and 'Options : (new : unit -> 'Options))>Public Class OAuthMiddleware(Of TOptions)
Inherits AuthenticationMiddleware(Of TOptions)类型参数
- TOptions
- 继承
- 派生
构造函数
| OAuthMiddleware<TOptions>(RequestDelegate, IDataProtectionProvider, ILoggerFactory, UrlEncoder, IOptions<SharedAuthenticationOptions>, IOptions<TOptions>) | 初始化新的 OAuthMiddleware<TOptions>。 | 
属性
| AuthenticationScheme | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。(继承自 AuthenticationMiddleware<TOptions>) | 
| Backchannel | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。 | 
| Logger | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。(继承自 AuthenticationMiddleware<TOptions>) | 
| Options | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。(继承自 AuthenticationMiddleware<TOptions>) | 
| UrlEncoder | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。(继承自 AuthenticationMiddleware<TOptions>) | 
方法
| CreateHandler() | AuthenticationHandler<TOptions>提供用于处理与身份验证相关的请求的 对象。 | 
| Invoke(HttpContext) | 用于使用 OAuth 服务对用户进行身份验证的 ASP.NET Core中间件。(继承自 AuthenticationMiddleware<TOptions>) |