Class SessionKeyAuthenticationHandler
Authentication handler for session keys
Inheritance
SessionKeyAuthenticationHandler
  Implements
Inherited Members
Namespace: DuetWebServer.Authorization
Assembly: DuetWebServer.dll
Syntax
public class SessionKeyAuthenticationHandler : AuthenticationHandler<SessionKeyAuthenticationSchemeOptions>, IAuthenticationHandlerConstructors
SessionKeyAuthenticationHandler(IOptionsMonitor<SessionKeyAuthenticationSchemeOptions>, ILoggerFactory, UrlEncoder, ISystemClock, IConfiguration, ISessionStorage)
Create a new controller instance
Declaration
public SessionKeyAuthenticationHandler(IOptionsMonitor<SessionKeyAuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, IConfiguration configuration, ISessionStorage sessionStorage)Parameters
| Type | Name | Description | 
|---|---|---|
| IOptionsMonitor<SessionKeyAuthenticationSchemeOptions> | options | Options | 
| ILoggerFactory | logger | Logger instance | 
| UrlEncoder | encoder | URL encoder | 
| ISystemClock | clock | System clock | 
| IConfiguration | configuration | Launch configuration | 
| ISessionStorage | sessionStorage | Session storage singleton | 
Fields
SchemeName
Name of this authentication scheme
Declaration
public const string SchemeName = "SessionKey"Field Value
| Type | Description | 
|---|---|
| string | 
Methods
HandleAuthenticateAsync()
Try to authenticate a request
Declaration
protected override Task<AuthenticateResult> HandleAuthenticateAsync()Returns
| Type | Description | 
|---|---|
| Task<AuthenticateResult> | Authentication result |