Table of Contents

Class SessionKeyAuthenticationHandler

Namespace
DuetWebServer.Authorization
Assembly
DuetWebServer.dll

Authentication handler for session keys

public class SessionKeyAuthenticationHandler : AuthenticationHandler<SessionKeyAuthenticationSchemeOptions>, IAuthenticationHandler
Inheritance
SessionKeyAuthenticationHandler
Implements
Inherited Members

Remarks

Create a new controller instance

Constructors

SessionKeyAuthenticationHandler(IOptionsMonitor<SessionKeyAuthenticationSchemeOptions>, ILoggerFactory, UrlEncoder, IConfiguration, ISessionStorage)

Authentication handler for session keys

public SessionKeyAuthenticationHandler(IOptionsMonitor<SessionKeyAuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, IConfiguration configuration, ISessionStorage sessionStorage)

Parameters

options IOptionsMonitor<SessionKeyAuthenticationSchemeOptions>

Options

logger ILoggerFactory

Logger instance

encoder UrlEncoder

URL encoder

configuration IConfiguration

Launch configuration

sessionStorage ISessionStorage

Session storage singleton

Remarks

Create a new controller instance

Fields

SchemeName

Name of this authentication scheme

public const string SchemeName = "SessionKey"

Field Value

string

Methods

HandleAuthenticateAsync()

Try to authenticate a request

protected override Task<AuthenticateResult> HandleAuthenticateAsync()

Returns

Task<AuthenticateResult>

Authentication result