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, IUserService, IServiceProvider)
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, IUserService userService = null, IServiceProvider serviceProvider = null)
Parameters
optionsIOptionsMonitor<AuthenticationSchemeOptions>loggerILoggerFactoryencoderUrlEncoderapiKeyAdministrationServiceIApiKeyAdministrationServicescopeRegistryIScopeRegistryauditLoggerCompositeAuditLoggertenantRoleServiceITenantRoleServiceteamServiceITeamServiceuserServiceIUserServiceserviceProviderIServiceProvider
Methods
HandleAuthenticateAsync()
Allows derived types to handle authentication.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()