63 writes to Name
Aspire.Dashboard (3)
DashboardWebApplication.cs (3)
271options.Cookie.Name = DashboardAntiForgeryCookieName; 743options.Cookie.Name = DashboardAuthCookieName; 791options.Cookie.Name = DashboardAuthCookieName;
Microsoft.AspNetCore.Antiforgery (1)
Internal\AntiforgeryOptionsSetup.cs (1)
28options.Cookie.Name = AntiforgeryOptions.DefaultCookiePrefix + ComputeCookieName(applicationId);
Microsoft.AspNetCore.Antiforgery.Test (22)
AntiforgeryOptionsSetupTest.cs (1)
45o.Cookie.Name = "antiforgery";
DefaultAntiforgeryTest.cs (4)
845Cookie = { Name = "cookie-name" }, 869Cookie = { Name = "cookie-name" }, 893Cookie = { Name = "cookie-name" }, 919Cookie = { Name = "cookie-name" },
DefaultAntiforgeryTokenStoreTest.cs (17)
21Cookie = { Name = _cookieName } 40Cookie = { Name = _cookieName } 61Cookie = { Name = _cookieName } 82Cookie = { Name = "cookie-name" }, 110Cookie = { Name = "cookie-name" }, 138Cookie = { Name = "cookie-name" }, 168Cookie = { Name = "cookie-name" }, 197Cookie = { Name = "cookie-name" }, 225Cookie = { Name = "cookie-name" }, 252Cookie = { Name = "cookie-name" }, 277Cookie = { Name = "cookie-name" }, 305Cookie = { Name = "cookie-name" }, 330Cookie = { Name = "cookie-name" }, 374Name = _cookieName, 416Cookie = { Name = _cookieName } 454Name = _cookieName, 493Name = _cookieName,
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
26Name = CorrelationPrefix,
Microsoft.AspNetCore.Authentication.Cookies (1)
PostConfigureCookieAuthenticationOptions.cs (1)
38options.Cookie.Name = CookieAuthenticationDefaults.CookiePrefix + Uri.EscapeDataString(name);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectConfigureOptions.cs (1)
99cookieBuilder.Name = cookieConfigSection[nameof(CookieBuilder.Name)] ?? cookieBuilder.Name;
OpenIdConnectOptions.cs (1)
80Name = OpenIdConnectDefaults.CookieNoncePrefix,
Microsoft.AspNetCore.Authentication.Test (15)
CookieTests.cs (15)
132o.Cookie.Name = "TestCookie"; 302o.Cookie.Name = "TestCookie"; 315o.Cookie.Name = "TestCookie"; 337o.Cookie.Name = "TestCookie"; 360o.Cookie.Name = "TestCookie"; 386o.Cookie.Name = "SecondCookie"; 1305o => o.Cookie.Name = "One"); 1333o => o.Cookie.Name = "One"); 1503o.Cookie.Name = "TestCookie"; 1526o.Cookie.Name = "TestCookie"; 1548o.Cookie.Name = "TestCookie"; 1571o.Cookie.Name = "TestCookie"; 1593o.Cookie.Name = "TestCookie"; 1652o.Cookie.Name = "Cookie"; 1675o.Cookie.Name = "Cookie";
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
32Name = DefaultStateCookieName,
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyOptions.cs (1)
47Name = ".AspNet.Consent",
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
385o.Cookie.Name = "TestCookie"; 436o.Cookie.Name = "TestCookie";
Microsoft.AspNetCore.Identity (6)
IdentityCookiesBuilderExtensions.cs (3)
69o.Cookie.Name = IdentityConstants.ExternalScheme; 84o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme; 102o.Cookie.Name = IdentityConstants.TwoFactorUserIdScheme;
IdentityServiceCollectionExtensions.cs (3)
69o.Cookie.Name = IdentityConstants.ExternalScheme; 74o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme; 82o.Cookie.Name = IdentityConstants.TwoFactorUserIdScheme;
Microsoft.AspNetCore.Identity.Test (4)
IdentityOptionsTest.cs (4)
77o.ApplicationCookie.Configure(a => a.Cookie.Name = "a"); 78o.ExternalCookie.Configure(a => a.Cookie.Name = "b"); 79o.TwoFactorRememberMeCookie.Configure(a => a.Cookie.Name = "c"); 80o.TwoFactorUserIdCookie.Configure(a => a.Cookie.Name = "d");
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
CookieTempDataProviderOptions.cs (1)
16Name = CookieTempDataProvider.CookieName,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
35Cookie = { Name = expectedCookieName }
Microsoft.AspNetCore.Session (1)
SessionOptions.cs (1)
50Name = SessionDefaults.CookieName;
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
123Name = "TestCookie",
66 references to Name
Microsoft.AspNetCore.Antiforgery (7)
AntiforgeryOptions.cs (1)
44/// If an explicit <see cref="CookieBuilder.Name"/> is not provided, the system will automatically generate a
Internal\AntiforgeryOptionsSetup.cs (1)
25if (options.Cookie.Name == null)
Internal\DefaultAntiforgery.cs (2)
107_logger.MissingCookieToken(_options.Cookie.Name); 153Resources.FormatAntiforgery_CookieToken_MustBeProvided(_options.Cookie.Name));
Internal\DefaultAntiforgeryTokenStore.cs (3)
26var requestCookie = httpContext.Request.Cookies[_options.Cookie.Name!]; 40var cookieToken = httpContext.Request.Cookies[_options.Cookie.Name!]; 99httpContext.Response.Cookies.Append(_options.Cookie.Name!, token, options);
Microsoft.AspNetCore.Antiforgery.Test (3)
AntiforgeryOptionsSetupTest.cs (3)
31var cookieName = options.Value.Cookie.Name; 44Assert.Null(o.Cookie.Name); 56var cookieName = options.Value.Cookie.Name;
Microsoft.AspNetCore.Authentication (4)
RemoteAuthenticationHandler.cs (3)
238var cookieName = Options.CorrelationCookie.Name + correlationId; 254Logger.CorrelationPropertyNotFound(Options.CorrelationCookie.Name!); 260var cookieName = Options.CorrelationCookie.Name + correlationId;
RemoteAuthenticationOptions.cs (1)
142/// If an explicit <see cref="CookieBuilder.Name"/> is not provided, the system will automatically generate a
Microsoft.AspNetCore.Authentication.Cookies (6)
CookieAuthenticationHandler.cs (4)
152var cookie = Options.CookieManager.GetRequestCookie(Context, Options.Cookie.Name!); 282Options.Cookie.Name!, 360Options.Cookie.Name!, 406Options.Cookie.Name!,
CookieAuthenticationOptions.cs (1)
41/// <item><description>The default value for cookie <see cref="CookieBuilder.Name"/> is <c>.AspNetCore.Cookies</c>.
PostConfigureCookieAuthenticationOptions.cs (1)
36if (string.IsNullOrEmpty(options.Cookie.Name))
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
OpenIdConnectConfigureOptions.cs (2)
99cookieBuilder.Name = cookieConfigSection[nameof(CookieBuilder.Name)] ?? cookieBuilder.Name;
OpenIdConnectHandler.cs (4)
1165Options.NonceCookie.Name + Options.StringDataFormat.Protect(nonce), 1186if (Options.NonceCookie.Name is string name && nonceKey.StartsWith(name, StringComparison.Ordinal)) 1190var nonceDecodedValue = Options.StringDataFormat.Unprotect(nonceKey.Substring(Options.NonceCookie.Name.Length, nonceKey.Length - Options.NonceCookie.Name.Length));
OpenIdConnectOptions.cs (1)
318/// The value of <see cref="CookieBuilder.Name"/> is treated as the prefix to the cookie name, and defaults to <see cref="OpenIdConnectDefaults.CookieNoncePrefix"/>.
Microsoft.AspNetCore.Authentication.Test (3)
OpenIdConnect\OpenIdConnectTests.cs (3)
450Assert.Equal("CookieName", options.CorrelationCookie.Name); 481Assert.Equal(".AspNetCore.Correlation.", options.CorrelationCookie.Name); 484Assert.Equal(OpenIdConnectDefaults.CookieNoncePrefix, options.NonceCookie.Name);
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (3)
61var protectedRequestToken = Request.Cookies[Options.StateCookie.Name!]; 103Response.Cookies.Delete(Options.StateCookie.Name!, cookieOptions); 177Response.Cookies.Append(Options.StateCookie.Name!, Options.StateDataFormat.Protect(requestToken), cookieOptions);
TwitterOptions.cs (1)
85/// If an explicit <see cref="CookieBuilder.Name"/> is not provided, the system will automatically generate a
Microsoft.AspNetCore.CookiePolicy (5)
CookiePolicyOptions.cs (1)
37/// If an explicit <see cref="CookieBuilder.Name"/> is not provided, the system will automatically generate a
ResponseCookiesWrapper.cs (4)
56var cookie = Context.Request.Cookies[Options.ConsentCookie.Name!]; 73Append(Options.ConsentCookie.Name!, Options.ConsentCookieValue, cookieOptions); 85Delete(Options.ConsentCookie.Name!, cookieOptions); 94var key = Options.ConsentCookie.Name;
Microsoft.AspNetCore.Identity.Test (4)
IdentityOptionsTest.cs (4)
87Assert.Equal("a", options.Get(IdentityConstants.ApplicationScheme).Cookie.Name); 88Assert.Equal("b", options.Get(IdentityConstants.ExternalScheme).Cookie.Name); 89Assert.Equal("c", options.Get(IdentityConstants.TwoFactorRememberMeScheme).Cookie.Name); 90Assert.Equal("d", options.Get(IdentityConstants.TwoFactorUserIdScheme).Cookie.Name);
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
AntiforgeryMiddlewareTest.cs (4)
41request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 125request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 157request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 189request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken);
SimpleWithWebApplicationBuilderTests.cs (1)
269Client.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(antiforgeryOptions.Value.Cookie.Name, tokens.CookieToken).ToString());
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
CookieTempDataProvider.cs (8)
60if (context.Request.Cookies.ContainsKey(_options.Cookie.Name)) 70var encodedValue = _chunkingCookieManager.GetRequestCookie(context, _options.Cookie.Name); 76Log.TempDataCookieLoadSuccess(_logger, _options.Cookie.Name); 82Log.TempDataCookieLoadFailure(_logger, _options.Cookie.Name, ex); 88_chunkingCookieManager.DeleteCookie(context, _options.Cookie.Name, _options.Cookie.Build(context)); 93Log.TempDataCookieNotFound(_logger, _options.Cookie.Name); 115_chunkingCookieManager.AppendResponseCookie(context, _options.Cookie.Name, encodedValue, cookieOptions); 119_chunkingCookieManager.DeleteCookie(context, _options.Cookie.Name, cookieOptions);
Microsoft.AspNetCore.Routing.FunctionalTests (7)
MinimalFormTests.cs (7)
54request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 114request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 475request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 534request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 586request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 638request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken); 687request.Headers.Add("Cookie", antiforgeryOptions.Value.Cookie.Name + "=" + tokens.CookieToken);
Microsoft.AspNetCore.Session (3)
SessionMiddleware.cs (2)
64var cookieValue = context.Request.Cookies[_options.Cookie.Name!]; 144response.Cookies.Append(_options.Cookie.Name!, _cookieValue, cookieOptions);
SessionOptions.cs (1)
21/// <item><description><see cref="CookieBuilder.Name"/> defaults to <see cref="SessionDefaults.CookieName"/>.</description></item>