Skip to content

ClockSkewCeilingCheck Class

Refuses a tenant whose security profile bounds the clock skew below the one the server's settings allow.

C#
public sealed class ClockSkewCeilingCheck : Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck

Inheritance System.Object → ClockSkewCeilingCheck

Implements ITenantsCheck

Remarks

FAPI 2.0 Security Profile section 5.3.2.1: a server held to it "shall reject JWTs with an iat or nbf timestamp greater than 60 seconds in the future". RFC 7523 Section 3, which governs a bearer assertion outside that profile, names no bound, so a tenant not held to a profile may legitimately allow minutes and this check says nothing to it.

The two settings it reads fail differently above the bound. The tolerance for other parties' assertions is held to the bound by the validator whatever is configured, so there the refusal exists because a setting silently clamped is worse than one refused: a deployment could read the setting back and believe a number the validator was cutting down. The drift between this server's own instances is applied as configured, so above the bound it would let a token this server issued be accepted dated further ahead than the profile allows, and for a tenant whose default profile bounds it this check is what keeps that from happening.

Methods

ClockSkewCeilingCheck.Check(IReadOnlyCollection<TenantDefinition>, OidcOptions) Method

What is wrong with tenants, judged as the whole list the server would serve with the server's own settings options.

C#
public System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal> Check(System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition> tenants, Abblix.Oidc.Server.Common.Configuration.OidcOptions options);

Parameters

tenants System.Collections.Generic.IReadOnlyCollection<TenantDefinition>
options OidcOptions

Implements Check(IReadOnlyCollection<TenantDefinition>, OidcOptions)

Returns

System.Collections.Generic.IEnumerable<TenantRefusal>

Remarks

The server's settings are handed in rather than read from the options pipeline, since the list the settings declare is judged while those very settings are being validated.