Table of Contents

Class LocalApiAuthenticationHandler

Namespace
Duende.IdentityServer.Hosting.LocalApiAuthentication
Assembly
Duende.IdentityServer.dll

Authentication handler for validating access token from the local IdentityServer

public class LocalApiAuthenticationHandler : AuthenticationHandler<LocalApiAuthenticationOptions>, IAuthenticationHandler
Inheritance
LocalApiAuthenticationHandler
Implements
Inherited Members

Constructors

LocalApiAuthenticationHandler(IOptionsMonitor<LocalApiAuthenticationOptions>, ILoggerFactory, UrlEncoder, ITokenValidator, IDPoPProofValidator, IClientStore)

public LocalApiAuthenticationHandler(IOptionsMonitor<LocalApiAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ITokenValidator tokenValidator, IDPoPProofValidator dpopValidator, IClientStore clientStore)

Parameters

options IOptionsMonitor<LocalApiAuthenticationOptions>
logger ILoggerFactory
encoder UrlEncoder
tokenValidator ITokenValidator
dpopValidator IDPoPProofValidator
clientStore IClientStore

Properties

Events

The handler calls methods on the events which give the application control at certain points where processing is occurring. If it is not provided a default instance is supplied which does nothing when the methods are called.

protected LocalApiAuthenticationEvents Events { get; set; }

Property Value

LocalApiAuthenticationEvents

Methods

CreateEventsAsync()

protected override Task<object> CreateEventsAsync()

Returns

Task<object>

HandleAuthenticateAsync()

protected override Task<AuthenticateResult> HandleAuthenticateAsync()

Returns

Task<AuthenticateResult>

HandleChallengeAsync(AuthenticationProperties)

protected override Task HandleChallengeAsync(AuthenticationProperties properties)

Parameters

properties AuthenticationProperties

Returns

Task