1 write to _options
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
19
_options
= optionsAccessor.Value;
12 references to _options
Microsoft.AspNetCore.Antiforgery (12)
Internal\DefaultAntiforgeryTokenStore.cs (12)
26
var requestCookie = httpContext.Request.Cookies[
_options
.Cookie.Name!];
40
var cookieToken = httpContext.Request.Cookies[
_options
.Cookie.Name!];
45
if (
_options
.HeaderName != null)
47
requestToken = httpContext.Request.Headers[
_options
.HeaderName];
51
if (requestToken.Count == 0 && httpContext.Request.HasFormContentType && !
_options
.SuppressReadingTokenFromFormBody)
73
requestToken = form[
_options
.FormFieldName];
76
return new AntiforgeryTokenSet(requestToken, cookieToken,
_options
.FormFieldName,
_options
.HeaderName);
84
var options =
_options
.Cookie.Build(httpContext);
86
if (
_options
.Cookie.Path != null)
88
options.Path =
_options
.Cookie.Path;
99
httpContext.Response.Cookies.Append(
_options
.Cookie.Name!, token, options);