2 instantiations of AntiforgeryTokenSet
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (1)
422return new AntiforgeryTokenSet(
Internal\DefaultAntiforgeryTokenStore.cs (1)
76return 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> 25AntiforgeryTokenSet GetAndStoreTokens(HttpContext httpContext); 28/// Generates an <see cref="AntiforgeryTokenSet"/> for this request. 31/// <returns>The <see cref="AntiforgeryTokenSet"/> for this request.</returns> 37AntiforgeryTokenSet GetTokens(HttpContext httpContext);
Internal\DefaultAntiforgery.cs (9)
40public AntiforgeryTokenSet GetAndStoreTokens(HttpContext httpContext) 47var tokenSet = Serialize(antiforgeryFeature); 77public AntiforgeryTokenSet GetTokens(HttpContext httpContext) 104var tokens = await _tokenStore.GetRequestTokensAsync(httpContext); 149var tokens = await _tokenStore.GetRequestTokensAsync(httpContext); 182private void ValidateTokens(HttpContext httpContext, AntiforgeryTokenSet antiforgeryTokenSet) 404private AntiforgeryTokenSet Serialize(IAntiforgeryFeature antiforgeryFeature) 431AntiforgeryTokenSet antiforgeryTokenSet, 452AntiforgeryTokenSet antiforgeryTokenSet,
Internal\DefaultAntiforgeryTokenStore.cs (1)
36public async Task<AntiforgeryTokenSet> GetRequestTokensAsync(HttpContext httpContext)
Internal\IAntiforgeryTokenStore.cs (2)
16/// <returns>The <see cref="AntiforgeryTokenSet"/>.</returns> 17Task<AntiforgeryTokenSet> GetRequestTokensAsync(HttpContext httpContext);
Microsoft.AspNetCore.Components.Endpoints (1)
Forms\EndpointAntiforgeryStateProvider.cs (1)
35var tokens = !_context.Response.HasStarted ? antiforgery.GetAndStoreTokens(_context) : antiforgery.GetTokens(_context);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
AntiforgeryExtensions.cs (2)
36var tokenSet = antiforgery.GetAndStoreTokens(httpContext); 45public InputContent(AntiforgeryTokenSet tokenSet)