5 writes to MaxAge
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
61
options.
MaxAge
= StringHelpers.ParseValueOrDefault(configSection[nameof(options.MaxAge)], _invariantNullableTimeSpanParse, options.MaxAge);
Microsoft.AspNetCore.Authentication.Test (4)
OpenIdConnect\OpenIdConnectChallengeTests.cs (3)
503
opt.
MaxAge
= TimeSpan.FromMinutes(20);
638
opt.
MaxAge
= TimeSpan.FromSeconds(500);
662
opt.
MaxAge
= TimeSpan.FromSeconds(500);
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
548
o.
MaxAge
= TimeSpan.FromSeconds(-1);
9 references to MaxAge
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
OpenIdConnectConfigureOptions.cs (2)
61
options.MaxAge = StringHelpers.ParseValueOrDefault(configSection[nameof(options.
MaxAge
)], _invariantNullableTimeSpanParse, options.
MaxAge
);
OpenIdConnectHandler.cs (1)
429
var maxAge = properties.GetParameter<TimeSpan?>(OpenIdConnectParameterNames.MaxAge) ?? Options.
MaxAge
;
OpenIdConnectOptions.cs (4)
95
if (
MaxAge
.HasValue &&
MaxAge
.Value < TimeSpan.Zero)
97
throw new ArgumentOutOfRangeException(nameof(
MaxAge
),
MaxAge
.Value, "The value must not be a negative TimeSpan.");
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\TestSettings.cs (2)
275
if (_options.
MaxAge
.HasValue)
277
Assert.Equal(TimeSpan.FromMinutes(20), _options.
MaxAge
.Value);