2 writes to Properties
Microsoft.AspNetCore.Authentication (2)
Events\PropertiesContext.cs (1)
23
Properties
= properties ?? new AuthenticationProperties();
Events\RedirectContext.cs (1)
29
Properties
= properties;
29 references to Properties
Microsoft.AspNetCore.Authentication.Cookies (12)
CookieAuthenticationHandler.cs (12)
226
return AuthenticateResult.Success(new AuthenticationTicket(context.Principal, context.
Properties
, Scheme.Name));
312
if (signInContext.
Properties
.IssuedUtc.HasValue)
314
issuedUtc = signInContext.
Properties
.IssuedUtc.Value;
319
signInContext.
Properties
.IssuedUtc = issuedUtc;
322
if (!signInContext.
Properties
.ExpiresUtc.HasValue)
324
signInContext.
Properties
.ExpiresUtc = issuedUtc.Add(Options.ExpireTimeSpan);
329
if (signInContext.
Properties
.IsPersistent)
331
var expiresUtc = signInContext.
Properties
.ExpiresUtc ?? issuedUtc.Add(Options.ExpireTimeSpan);
335
var ticket = new AuthenticationTicket(signInContext.Principal!, signInContext.
Properties
, signInContext.Scheme.Name);
368
signInContext.
Properties
,
375
await ApplyHeaders(shouldRedirect: true, shouldHonorReturnUrlParameter, signedInContext.
Properties
);
411
await ApplyHeaders(shouldRedirect: true, shouldHonorReturnUrlParameter, context.
Properties
);
Microsoft.AspNetCore.Authentication.Test (6)
CookieTests.cs (6)
684
ctx.
Properties
.Items["updated"] = "yes";
843
ctx.
Properties
.IssuedUtc = _timeProvider.GetUtcNow();
939
lastValidateIssuedDate = ctx.
Properties
.IssuedUtc;
940
lastExpiresDate = ctx.
Properties
.ExpiresUtc;
990
context.
Properties
.ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5));
1698
context.
Properties
.ExpiresUtc = null;
Microsoft.AspNetCore.Identity (2)
SecurityStampValidator.cs (2)
117
context.
Properties
.IssuedUtc = TimeProvider.GetUtcNow();
139
var issuedUtc = context.
Properties
.IssuedUtc;
Microsoft.AspNetCore.Identity.Test (9)
SecurityStampValidatorTest.cs (9)
87
Assert.NotNull(context.
Properties
);
145
Assert.NotNull(context.
Properties
);
186
Assert.NotNull(context.
Properties
);
227
Assert.NotNull(context.
Properties
);
264
Assert.NotNull(context.
Properties
);
307
Assert.NotNull(context.
Properties
);
315
Assert.Equal(now, context.
Properties
.IssuedUtc);
316
Assert.Equal(now + TimeSpan.FromDays(1), context.
Properties
.ExpiresUtc);
351
Assert.NotNull(context.
Properties
);