JwtBearerMiddleware 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加到 HTTP 管道的持有者身份验证组件。 此构造函数不是由应用程序代码直接调用的,而是通过调用 IAppBuilder UseJwtBearerAuthentication 扩展方法添加的。
public:
JwtBearerMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::JwtBearerOptions ^> ^ options);
public JwtBearerMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.JwtBearerOptions> options);
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, encoder As UrlEncoder, options As IOptions(Of JwtBearerOptions))
参数
- next
- RequestDelegate
- loggerFactory
- ILoggerFactory
- encoder
- UrlEncoder
- options
- IOptions<JwtBearerOptions>