Table of Contents

Class AutoValidateAntiforgeryTokenFilter

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
public class AutoValidateAntiforgeryTokenFilter
Inheritance
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 AuthorizationFilterContext.

Returns

Task

A Task that on completion indicates the filter has executed.

ShouldValidate(AuthorizationFilterContext)

protected virtual bool ShouldValidate(AuthorizationFilterContext context)

Parameters

context AuthorizationFilterContext

Returns

bool