Table of Contents

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>
IAsyncAuthorizationFilter
IFilterMetadata
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 AuthorizationFilterContext

The Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext.

Returns

Task

A Task that on completion indicates the filter has executed.

See Also

Configurable<TOptions>
IAsyncAuthorizationFilter