Class ConfigurableAsyncAuthorizationFilter<TOptions>
- Namespace
- Cuemon.AspNetCore.Mvc.Filters
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A base class implementation of a filter that asynchronously confirms request authorization.
public abstract class ConfigurableAsyncAuthorizationFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncAuthorizationFilter, IFilterMetadata where TOptions : class, IParameterObject, new()
Type Parameters
TOptions
The type of the configured options.
- Inheritance
-
Configurable<TOptions>ConfigurableAsyncAuthorizationFilter<TOptions>
- Implements
-
IConfigurable<TOptions>IAsyncAuthorizationFilterIFilterMetadata
- Derived
- Inherited Members
Constructors
ConfigurableAsyncAuthorizationFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncAuthorizationFilter<TOptions> class.
protected ConfigurableAsyncAuthorizationFilter(IOptions<TOptions> setup)
Parameters
setup
IOptions<TOptions>The IOptions<TOptions> which need to be configured.
Methods
OnAuthorizationAsync(AuthorizationFilterContext)
Called early in the filter pipeline to confirm request is authorized.
public abstract Task OnAuthorizationAsync(AuthorizationFilterContext context)
Parameters
context
AuthorizationFilterContextThe Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext.
Returns
See Also
Configurable<TOptions>
IAsyncAuthorizationFilter