2 instantiations of AntiforgeryTokenSet
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (1)
422
return new
AntiforgeryTokenSet
(
Internal\DefaultAntiforgeryTokenStore.cs (1)
76
return new
AntiforgeryTokenSet
(requestToken, cookieToken, _options.FormFieldName, _options.HeaderName);
21 references to AntiforgeryTokenSet
Microsoft.AspNetCore.Antiforgery (18)
IAntiforgery.cs (6)
15
/// Generates an <see cref="
AntiforgeryTokenSet
"/> for this request and stores the cookie token
20
/// <returns>An <see cref="
AntiforgeryTokenSet
" /> with tokens for the response.</returns>
25
AntiforgeryTokenSet
GetAndStoreTokens(HttpContext httpContext);
28
/// Generates an <see cref="
AntiforgeryTokenSet
"/> for this request.
31
/// <returns>The <see cref="
AntiforgeryTokenSet
"/> for this request.</returns>
37
AntiforgeryTokenSet
GetTokens(HttpContext httpContext);
Internal\DefaultAntiforgery.cs (9)
40
public
AntiforgeryTokenSet
GetAndStoreTokens(HttpContext httpContext)
47
var
tokenSet = Serialize(antiforgeryFeature);
77
public
AntiforgeryTokenSet
GetTokens(HttpContext httpContext)
104
var
tokens = await _tokenStore.GetRequestTokensAsync(httpContext);
149
var
tokens = await _tokenStore.GetRequestTokensAsync(httpContext);
182
private void ValidateTokens(HttpContext httpContext,
AntiforgeryTokenSet
antiforgeryTokenSet)
404
private
AntiforgeryTokenSet
Serialize(IAntiforgeryFeature antiforgeryFeature)
431
AntiforgeryTokenSet
antiforgeryTokenSet,
452
AntiforgeryTokenSet
antiforgeryTokenSet,
Internal\DefaultAntiforgeryTokenStore.cs (1)
36
public async Task<
AntiforgeryTokenSet
> GetRequestTokensAsync(HttpContext httpContext)
Internal\IAntiforgeryTokenStore.cs (2)
16
/// <returns>The <see cref="
AntiforgeryTokenSet
"/>.</returns>
17
Task<
AntiforgeryTokenSet
> GetRequestTokensAsync(HttpContext httpContext);
Microsoft.AspNetCore.Components.Endpoints (1)
Forms\EndpointAntiforgeryStateProvider.cs (1)
35
var
tokens = !_context.Response.HasStarted ? antiforgery.GetAndStoreTokens(_context) : antiforgery.GetTokens(_context);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
AntiforgeryExtensions.cs (2)
36
var
tokenSet = antiforgery.GetAndStoreTokens(httpContext);
45
public InputContent(
AntiforgeryTokenSet
tokenSet)