Sdílet prostřednictvím


JwtBearerMiddleware Konstruktor

Definice

Nosná ověřovací komponenta, která se přidá do kanálu HTTP. Tento konstruktor není volána kódem aplikace přímo, místo toho je přidán voláním metody rozšíření 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))

Parametry

loggerFactory
ILoggerFactory
encoder
UrlEncoder

Platí pro