Class BasicAuthenticationHandler
- Assembly
- Cuemon.AspNetCore.Authentication.dll
Provides a HTTP Basic Authentication implementation of Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions> for ASP.NET Core.
public class BasicAuthenticationHandler : AuthenticationHandler<BasicAuthenticationOptions>, IAuthenticationHandler
- Inheritance
-
AuthenticationHandler<BasicAuthenticationOptions>BasicAuthenticationHandler
- Implements
-
IAuthenticationHandler
- Inherited Members
-
AuthenticationHandler<BasicAuthenticationOptions>.InitializeAsync(AuthenticationScheme, HttpContext)AuthenticationHandler<BasicAuthenticationOptions>.InitializeEventsAsync()AuthenticationHandler<BasicAuthenticationOptions>.CreateEventsAsync()AuthenticationHandler<BasicAuthenticationOptions>.InitializeHandlerAsync()AuthenticationHandler<BasicAuthenticationOptions>.BuildRedirectUri(String)AuthenticationHandler<BasicAuthenticationOptions>.ResolveTarget(String)AuthenticationHandler<BasicAuthenticationOptions>.AuthenticateAsync()AuthenticationHandler<BasicAuthenticationOptions>.HandleAuthenticateOnceAsync()AuthenticationHandler<BasicAuthenticationOptions>.HandleAuthenticateOnceSafeAsync()AuthenticationHandler<BasicAuthenticationOptions>.HandleForbiddenAsync(AuthenticationProperties)AuthenticationHandler<BasicAuthenticationOptions>.ChallengeAsync(AuthenticationProperties)AuthenticationHandler<BasicAuthenticationOptions>.ForbidAsync(AuthenticationProperties)AuthenticationHandler<BasicAuthenticationOptions>.SchemeAuthenticationHandler<BasicAuthenticationOptions>.OptionsAuthenticationHandler<BasicAuthenticationOptions>.ContextAuthenticationHandler<BasicAuthenticationOptions>.RequestAuthenticationHandler<BasicAuthenticationOptions>.ResponseAuthenticationHandler<BasicAuthenticationOptions>.OriginalPathAuthenticationHandler<BasicAuthenticationOptions>.OriginalPathBaseAuthenticationHandler<BasicAuthenticationOptions>.LoggerAuthenticationHandler<BasicAuthenticationOptions>.UrlEncoderAuthenticationHandler<BasicAuthenticationOptions>.ClockAuthenticationHandler<BasicAuthenticationOptions>.TimeProviderAuthenticationHandler<BasicAuthenticationOptions>.OptionsMonitorAuthenticationHandler<BasicAuthenticationOptions>.EventsAuthenticationHandler<BasicAuthenticationOptions>.ClaimsIssuerAuthenticationHandler<BasicAuthenticationOptions>.CurrentUri
Constructors
BasicAuthenticationHandler(IOptionsMonitor<BasicAuthenticationOptions>, ILoggerFactory, UrlEncoder)
Initializes a new instance of the BasicAuthenticationHandler class.
public BasicAuthenticationHandler(IOptionsMonitor<BasicAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder)
Parameters
options
IOptionsMonitor<BasicAuthenticationOptions>The monitor for the options instance.
logger
ILoggerFactoryThe ILoggerFactory.
encoder
UrlEncoderThe 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 async Task HandleChallengeAsync(AuthenticationProperties properties)
Parameters
properties
AuthenticationPropertiesThe properties.
Returns
See Also
AuthenticationHandler<TOptions>