OAuthMiddleware<TOptions> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化新的 OAuthMiddleware<TOptions>。
public:
OAuthMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Authentication::SharedAuthenticationOptions ^> ^ sharedOptions, Microsoft::Extensions::Options::IOptions<TOptions> ^ options);
public OAuthMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> sharedOptions, Microsoft.Extensions.Options.IOptions<TOptions> options);
new Microsoft.AspNetCore.Authentication.OAuth.OAuthMiddleware<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))> : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> * Microsoft.Extensions.Options.IOptions<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.OAuth.OAuthMiddleware<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))>
Public Sub New (next As RequestDelegate, dataProtectionProvider As IDataProtectionProvider, loggerFactory As ILoggerFactory, encoder As UrlEncoder, sharedOptions As IOptions(Of SharedAuthenticationOptions), options As IOptions(Of TOptions))
参数
- next
- RequestDelegate
HTTP 管道中要调用的下一个中间件。
- dataProtectionProvider
- IDataProtectionProvider
- loggerFactory
- ILoggerFactory
- encoder
- UrlEncoder
- sharedOptions
- IOptions<SharedAuthenticationOptions>
此 SharedAuthenticationOptions 中间件的配置选项。
- options
- IOptions<TOptions>
中间件的配置选项。