Class BasicAuthenticationHandler
- Namespace
- Cuemon.AspNetCore.Authentication.Basic
- Assembly
- Cuemon.AspNetCore.Authentication.dll
Provides a HTTP Basic Authentication implementation of AuthenticationHandler<TOptions> for ASP.NET Core.
public class BasicAuthenticationHandler : AuthenticationHandler<BasicAuthenticationOptions>, IAuthenticationHandler- Inheritance
- 
      
      
      BasicAuthenticationHandler
- Implements
- Inherited Members
Constructors
BasicAuthenticationHandler(IOptionsMonitor<BasicAuthenticationOptions>, ILoggerFactory, UrlEncoder)
Initializes a new instance of the BasicAuthenticationHandler class.
public BasicAuthenticationHandler(IOptionsMonitor<BasicAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder)Parameters
- optionsIOptionsMonitor<BasicAuthenticationOptions>
- The monitor for the options instance. 
- loggerILoggerFactory
- The ILoggerFactory. 
- encoderUrlEncoder
- The UrlEncoder. 
Methods
HandleAuthenticateAsync()
Handle authenticate as an asynchronous operation.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()Returns
- Task<AuthenticateResult>
- A Task<TResult> representing the asynchronous operation. 
HandleChallengeAsync(AuthenticationProperties)
Handle challenge as an asynchronous operation.
protected override Task HandleChallengeAsync(AuthenticationProperties properties)Parameters
- propertiesAuthenticationProperties
- The properties. 
Returns
See Also
AuthenticationHandler<TOptions>