Class ApiKeyAuthenticationHandler
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
optionsIOptionsMonitor<AuthenticationSchemeOptions>loggerILoggerFactoryencoderUrlEncoderapiKeyAdministrationServiceIApiKeyAdministrationServicescopeRegistryIScopeRegistryauditLoggerCompositeAuditLoggertenantRoleServiceITenantRoleServiceteamServiceITeamService
Methods
HandleAuthenticateAsync()
Allows derived types to handle authentication.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()