1 write to RequestToken
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryTokenSet.cs (1)
26RequestToken = requestToken;
29 references to RequestToken
Microsoft.AspNetCore.Antiforgery (4)
Internal\DefaultAntiforgery.cs (4)
111if (tokens.RequestToken == null) 156if (tokens.RequestToken == null) 185Debug.Assert(!string.IsNullOrEmpty(antiforgeryTokenSet.RequestToken)); 476requestToken = _tokenSerializer.Deserialize(antiforgeryTokenSet.RequestToken!);
Microsoft.AspNetCore.Antiforgery.Test (11)
DefaultAntiforgeryTest.cs (11)
147Assert.Equal(context.TestTokenSet.FormTokenString, tokenset.RequestToken); 184Assert.Equal(context.TestTokenSet.FormTokenString, tokenset.RequestToken); 204Assert.Equal(context.TestTokenSet.FormTokenString, tokenset.RequestToken); 239Assert.Equal("serialized-form-token-from-context", tokenset.RequestToken); 274Assert.Equal(context.TestTokenSet.FormTokenString, tokenSet.RequestToken); 307Assert.Equal(context.TestTokenSet.FormTokenString, tokenSet.RequestToken); 338Assert.Equal(context.TestTokenSet.FormTokenString, tokenSet.RequestToken); 465Assert.Equal(context.TestTokenSet.FormTokenString, tokenSet.RequestToken); 499Assert.Equal(context.TestTokenSet.FormTokenString, tokenSet.RequestToken); 551Assert.Equal("serialized-form-token-from-context", tokenset.RequestToken); 595Assert.Equal("serialized-form-token-from-context", tokenset.RequestToken);
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
AntiforgeryMiddlewareTest.cs (4)
44new("__RequestVerificationToken", tokens.RequestToken), 128new("__RequestVerificationToken", tokens.RequestToken), 160new("__RequestVerificationToken", tokens.RequestToken), 192new("__RequestVerificationToken", tokens.RequestToken),
SimpleWithWebApplicationBuilderTests.cs (1)
270Client.DefaultRequestHeaders.Add(tokens.HeaderName, tokens.RequestToken);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AntiforgeryExtensions.cs (1)
48_requestToken = tokenSet.RequestToken!;
Microsoft.AspNetCore.Routing.FunctionalTests (7)
MinimalFormTests.cs (7)
57new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 117new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 478new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 537new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 589new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 641new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 690new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken),
MinimalFormSample (1)
Program.cs (1)
23<input name="{token.FormFieldName}" type="hidden" value="{token.RequestToken}" />