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
optionsIOptionsMonitor<SessionKeyAuthenticationSchemeOptions>Options
loggerILoggerFactoryLogger instance
encoderUrlEncoderURL encoder
configurationIConfigurationLaunch configuration
sessionStorageISessionStorageSession storage singleton
Remarks
Create a new controller instance
Fields
SchemeName
Name of this authentication scheme
public const string SchemeName = "SessionKey"
Field Value
Methods
HandleAuthenticateAsync()
Try to authenticate a request
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
Returns
- Task<AuthenticateResult>
Authentication result