Class AutoValidateAntiforgeryTokenFilter
public class AutoValidateAntiforgeryTokenFilter
- Inheritance
-
AutoValidateAntiforgeryTokenFilter
Constructors
AutoValidateAntiforgeryTokenFilter(IAntiforgery, ILogger<AutoValidateAntiforgeryTokenFilter>)
public AutoValidateAntiforgeryTokenFilter(IAntiforgery antiforgery, ILogger<AutoValidateAntiforgeryTokenFilter> filelogger)
Parameters
antiforgery
IAntiforgeryfilelogger
ILogger<AutoValidateAntiforgeryTokenFilter>
Methods
OnAuthorizationAsync(AuthorizationFilterContext)
Called early in the filter pipeline to confirm request is authorized.
public Task OnAuthorizationAsync(AuthorizationFilterContext context)
Parameters
context
AuthorizationFilterContext
Returns
ShouldValidate(AuthorizationFilterContext)
protected virtual bool ShouldValidate(AuthorizationFilterContext context)
Parameters
context
AuthorizationFilterContext