// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Identity { /// /// Options for . /// public class SecurityStampValidatorOptions { /// /// Gets or sets the after which security stamps are re-validated. Defaults to 30 minutes. /// /// /// The after which security stamps are re-validated. /// public TimeSpan ValidationInterval { get; set; } = TimeSpan.FromMinutes(30); /// /// Invoked when the default security stamp validator replaces the user's ClaimsPrincipal in the cookie. /// public Func OnRefreshingPrincipal { get; set; } } }