Skip to content

NewClientTokenLifetimesValidator Class

Refuses, while the host is still starting, token lifetimes and a refresh token reuse policy for new clients that no token could be issued or redeemed under.

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

Inheritance System.Object → NewClientTokenLifetimesValidator

Implements Microsoft.Extensions.Options.IValidateOptions<OidcOptions>

Remarks

Every client registering after startup, and every client resolved from its metadata document, takes these values: a lifetime of zero or less issues tokens that have expired when they are issued, one of System.TimeSpan.MaxValue, a natural way to write "no limit", is no expiry the clock can add to the issue time, so every issuance fails, and a reuse policy the enumeration does not define fails each refresh of those clients with an error that names neither the setting nor the value.