AuthenticationMiddleware<TOptions> Class

Namespace
Microsoft.AspNetCore.Authentication
Assemblies
  • Microsoft.AspNetCore.Authentication

Syntax

public abstract class AuthenticationMiddleware<TOptions>
    where TOptions : AuthenticationOptions, new ()
class Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions>

Constructors

AuthenticationMiddleware(Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.Extensions.Options.IOptions<TOptions>, Microsoft.Extensions.Logging.ILoggerFactory, System.Text.Encodings.Web.UrlEncoder)
protected AuthenticationMiddleware(RequestDelegate next, IOptions<TOptions> options, ILoggerFactory loggerFactory, UrlEncoder encoder)

Properties

Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions>.AuthenticationScheme
Return type:System.String
public string AuthenticationScheme { get; set; }
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions>.Logger
Return type:Microsoft.Extensions.Logging.ILogger
public ILogger Logger { get; set; }
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions>.Options
Return type:TOptions
public TOptions Options { get; set; }
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware<TOptions>.UrlEncoder
Return type:System.Text.Encodings.Web.UrlEncoder
public UrlEncoder UrlEncoder { get; set; }

Methods

CreateHandler()
Return type:Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>
protected abstract AuthenticationHandler<TOptions> CreateHandler()
Invoke(Microsoft.AspNetCore.Http.HttpContext)
Return type:System.Threading.Tasks.Task
public Task Invoke(HttpContext context)