Table of Contents

Class BasicAuthenticationHandler

Namespace
Cuemon.AspNetCore.Authentication.Basic
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>.Scheme
AuthenticationHandler<BasicAuthenticationOptions>.Options
AuthenticationHandler<BasicAuthenticationOptions>.Context
AuthenticationHandler<BasicAuthenticationOptions>.Request
AuthenticationHandler<BasicAuthenticationOptions>.Response
AuthenticationHandler<BasicAuthenticationOptions>.OriginalPath
AuthenticationHandler<BasicAuthenticationOptions>.OriginalPathBase
AuthenticationHandler<BasicAuthenticationOptions>.Logger
AuthenticationHandler<BasicAuthenticationOptions>.UrlEncoder
AuthenticationHandler<BasicAuthenticationOptions>.Clock
AuthenticationHandler<BasicAuthenticationOptions>.TimeProvider
AuthenticationHandler<BasicAuthenticationOptions>.OptionsMonitor
AuthenticationHandler<BasicAuthenticationOptions>.Events
AuthenticationHandler<BasicAuthenticationOptions>.ClaimsIssuer
AuthenticationHandler<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 ILoggerFactory

The ILoggerFactory.

encoder UrlEncoder

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 async Task HandleChallengeAsync(AuthenticationProperties properties)

Parameters

properties AuthenticationProperties

The properties.

Returns

Task

A Task representing the asynchronous operation.

See Also

AuthenticationHandler<TOptions>