Skip to content

RecordLifetimeOptionsValidator Class

Fails at startup on a duration that would keep nothing: a record gone before anything could read it, or a write the storage refuses outright. That includes a time to keep the record of a session's clients too short for the record to be renewed, and a client assertion lifetime that would let no assertion through.

C#
public sealed class RecordLifetimeOptionsValidator : Microsoft.Extensions.Options.IValidateOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions>

Inheritance System.Object → RecordLifetimeOptionsValidator

Implements Microsoft.Extensions.Options.IValidateOptions<OidcOptions>

Remarks

At zero or below a record would be gone before anything could read it. For the session's clients that means a logout notifying nobody; for a logout confirmation it means the storage refusing the write outright, so every logout question would fault. A retention merely shorter than the host's sessions cannot be detected here, because the session lifetime is the host's cookie setting.

The session's clients are refused anything under Abblix.Oidc.Server.Common.Configuration.RecordLifetimeOptionsValidator.MinSessionClientsRetention as well. A renewal of their record notes itself until a retention after the moment it started, so a retention shorter than the renewal itself would hand the storage an expiry already past, which a store such as Redis refuses, and the authorization making the renewal would fail.