19 writes to ExpiresUtc
Aspire.Dashboard (1)
Authentication\AspirePolicyEvaluator.cs (1)
71ticket.Properties.ExpiresUtc = minExpiresUtc;
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenHandler.cs (2)
69properties.ExpiresUtc = utcNow + Options.BearerTokenExpiration; 110ExpiresUtc = utcNow + Options.RefreshTokenExpiration
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
259properties.ExpiresUtc = _refreshExpiresUtc; 324signInContext.Properties.ExpiresUtc = issuedUtc.Add(Options.ExpireTimeSpan);
Microsoft.AspNetCore.Authentication.Core.Test (3)
AuthenticationPropertiesTests.cs (3)
213props.ExpiresUtc = new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)); 311ExpiresUtc = new DateTimeOffset(2021, 03, 28, 13, 47, 00, TimeSpan.Zero), 367ExpiresUtc = new DateTimeOffset(2021, 03, 28, 13, 47, 00, TimeSpan.Zero),
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
159tokenValidatedContext.Properties.ExpiresUtc = GetSafeDateTime(validatedToken.ValidTo);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
1433properties.ExpiresUtc = expires; 1488properties.ExpiresUtc = expires;
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (3)
478new AuthenticationProperties() { ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)) })); 990context.Properties.ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)); 1698context.Properties.ExpiresUtc = null;
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
328properties.ExpiresUtc = expires.ToUniversalTime();
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyEvaluator.cs (1)
60ticket.Properties.ExpiresUtc = minExpiresUtc;
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationMiddlewareTests.cs (2)
830res.Properties.ExpiresUtc = firstExpiration; 837res.Properties.ExpiresUtc = secondExpiration;
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
302ExpiresUtc = timeProvider.GetUtcNow() + TimeSpan.FromDays(1),
23 references to ExpiresUtc
Aspire.Dashboard (2)
Authentication\AspirePolicyEvaluator.cs (2)
53if (minExpiresUtc is null || result.Properties?.ExpiresUtc < minExpiresUtc) 55minExpiresUtc = result.Properties?.ExpiresUtc;
CookieSessionSample (1)
MemoryCacheTicketStore.cs (1)
31var expiresUtc = ticket.Properties.ExpiresUtc;
Microsoft.AspNetCore.Authentication.Cookies (5)
CookieAuthenticationHandler.cs (5)
96var expiresUtc = ticket.Properties.ExpiresUtc; 119var expiresUtc = ticket.Properties.ExpiresUtc; 181var expiresUtc = ticket.Properties.ExpiresUtc; 322if (!signInContext.Properties.ExpiresUtc.HasValue) 331var expiresUtc = signInContext.Properties.ExpiresUtc ?? issuedUtc.Add(Options.ExpireTimeSpan);
Microsoft.AspNetCore.Authentication.Core.Test (5)
AuthenticationPropertiesTests.cs (5)
211Assert.Null(props.ExpiresUtc); 214Assert.Equal(new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)), props.ExpiresUtc); 218Assert.Null(props.ExpiresUtc); 333Assert.Equal(props.ExpiresUtc, deserialized.ExpiresUtc);
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (1)
940lastExpiresDate = ctx.Properties.ExpiresUtc;
JwtBearerTests.cs (1)
1232new { Expires = authenticationResult.Properties?.ExpiresUtc, Issued = authenticationResult.Properties?.IssuedUtc });
JwtBearerTests_Handler.cs (1)
1291new { Expires = authenticationResult.Properties?.ExpiresUtc, Issued = authenticationResult.Properties?.IssuedUtc });
Microsoft.AspNetCore.Authorization.Policy (2)
PolicyEvaluator.cs (2)
47if (minExpiresUtc is null || result.Properties?.ExpiresUtc < minExpiresUtc) 49minExpiresUtc = result.Properties?.ExpiresUtc;
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
852Assert.Equal(secondExpiration, authenticateResultFeature.AuthenticateResult?.Properties?.ExpiresUtc);
Microsoft.AspNetCore.Http.Connections (2)
HttpConnectionDispatcherOptions.cs (1)
119/// Authenticated connections whose token sets the <see cref="AuthenticationProperties.ExpiresUtc"/> value will be closed
Internal\HttpConnectionDispatcher.cs (1)
669authenticateResultFeature.AuthenticateResult?.Properties?.ExpiresUtc ?? DateTimeOffset.MaxValue;
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
130if (refreshTicket?.Properties?.ExpiresUtc is not { } expiresUtc ||
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
316Assert.Equal(now + TimeSpan.FromDays(1), context.Properties.ExpiresUtc);