Table of Contents

Class ApiKeyAuthenticationHandler

Namespace
Tharga.Team.Service
Assembly
Tharga.Team.Service.dll

Authentication handler that validates API keys from the X-API-KEY header.

public class ApiKeyAuthenticationHandler : AuthenticationHandler<AuthenticationSchemeOptions>, IAuthenticationHandler
Inheritance
ApiKeyAuthenticationHandler
Implements
Inherited Members

Constructors

ApiKeyAuthenticationHandler(IOptionsMonitor<AuthenticationSchemeOptions>, ILoggerFactory, UrlEncoder, IApiKeyAdministrationService, IScopeRegistry, CompositeAuditLogger, ITenantRoleService, ITeamService)

Creates a new instance of the API key authentication handler.

public ApiKeyAuthenticationHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, IApiKeyAdministrationService apiKeyAdministrationService, IScopeRegistry scopeRegistry = null, CompositeAuditLogger auditLogger = null, ITenantRoleService tenantRoleService = null, ITeamService teamService = null)

Parameters

options IOptionsMonitor<AuthenticationSchemeOptions>
logger ILoggerFactory
encoder UrlEncoder
apiKeyAdministrationService IApiKeyAdministrationService
scopeRegistry IScopeRegistry
auditLogger CompositeAuditLogger
tenantRoleService ITenantRoleService
teamService ITeamService

Methods

HandleAuthenticateAsync()

Allows derived types to handle authentication.

protected override Task<AuthenticateResult> HandleAuthenticateAsync()

Returns

Task<AuthenticateResult>

The AuthenticateResult.