Class ApiKeySentinelFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that confirms request authorization in the form of an API key sentinel.
public class ApiKeySentinelFilter : ConfigurableAsyncAuthorizationFilter<ApiKeySentinelOptions>, IConfigurable<ApiKeySentinelOptions>, IAsyncAuthorizationFilter, IFilterMetadata
- Inheritance
-
ApiKeySentinelFilter
- Implements
-
IAsyncAuthorizationFilterIFilterMetadata
- Inherited Members
Constructors
ApiKeySentinelFilter(IOptions<ApiKeySentinelOptions>)
Initializes a new instance of the ApiKeySentinelFilter class.
public ApiKeySentinelFilter(IOptions<ApiKeySentinelOptions> setup)
Parameters
setup
IOptions<ApiKeySentinelOptions>The ApiKeySentinelOptions which need to be configured.
Methods
OnAuthorizationAsync(AuthorizationFilterContext)
Called early in the filter pipeline to confirm request is authorized.
public override async Task OnAuthorizationAsync(AuthorizationFilterContext context)
Parameters
context
AuthorizationFilterContextThe Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext.