14 references to NonceCookie
Microsoft.AspNetCore.Authentication.OpenIdConnect (8)
OpenIdConnectConfigureOptions.cs (2)
63
SetCookieFromConfig(configSection.GetSection(nameof(options.
NonceCookie
)), options.
NonceCookie
);
OpenIdConnectHandler.cs (6)
1162
var cookieOptions = Options.
NonceCookie
.Build(Context, TimeProvider.GetUtcNow());
1165
Options.
NonceCookie
.Name + Options.StringDataFormat.Protect(nonce),
1186
if (Options.
NonceCookie
.Name is string name && nonceKey.StartsWith(name, StringComparison.Ordinal))
1190
var nonceDecodedValue = Options.StringDataFormat.Unprotect(nonceKey.Substring(Options.
NonceCookie
.Name.Length, nonceKey.Length - Options.
NonceCookie
.Name.Length));
1193
var cookieOptions = Options.
NonceCookie
.Build(Context, TimeProvider.GetUtcNow());
Microsoft.AspNetCore.Authentication.Test (6)
OpenIdConnect\OpenIdConnectTests.cs (6)
95
opt.
NonceCookie
.Path = "/";
96
opt.
NonceCookie
.Extensions.Add("ExtN");
484
Assert.Equal(OpenIdConnectDefaults.CookieNoncePrefix, options.
NonceCookie
.Name);
485
Assert.True(options.
NonceCookie
.IsEssential);
486
Assert.True(options.
NonceCookie
.HttpOnly);
487
Assert.Equal(CookieSecurePolicy.Always, options.
NonceCookie
.SecurePolicy);