Table of Contents

Class AutoValidateAntiforgeryTokenFilter

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
public class AutoValidateAntiforgeryTokenFilter
Inheritance
object
AutoValidateAntiforgeryTokenFilter

Constructors

AutoValidateAntiforgeryTokenFilter(IAntiforgery, ILogger<AutoValidateAntiforgeryTokenFilter>)

public AutoValidateAntiforgeryTokenFilter(IAntiforgery antiforgery, ILogger<AutoValidateAntiforgeryTokenFilter> filelogger)

Parameters

antiforgery IAntiforgery
filelogger ILogger<AutoValidateAntiforgeryTokenFilter>

Methods

OnAuthorizationAsync(AuthorizationFilterContext)

Called early in the filter pipeline to confirm request is authorized.

public Task OnAuthorizationAsync(AuthorizationFilterContext context)

Parameters

context AuthorizationFilterContext

The Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext.

Returns

Task

A System.Threading.Tasks.Task that on completion indicates the filter has executed.

ShouldValidate(AuthorizationFilterContext)

protected virtual bool ShouldValidate(AuthorizationFilterContext context)

Parameters

context AuthorizationFilterContext

Returns

bool