Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
sourcemeta::core::JWKSProvider::Options Struct Reference

Tunables for the caching and verification policy. More...

Public Attributes

std::chrono::seconds fallback_ttl {std::chrono::hours{1}}
 The lifetime to assume when the transport advertises none.
std::chrono::seconds minimum_ttl {std::chrono::minutes{5}}
 The shortest lifetime honored, clamping smaller advertised values up.
std::chrono::seconds maximum_ttl {std::chrono::hours{24}}
 The longest lifetime honored, clamping larger advertised values down.
std::chrono::seconds unknown_kid_cooldown {std::chrono::minutes{5}}
JWTClockSkew clock_skew {}

Detailed Description

Tunables for the caching and verification policy.

Member Data Documentation

◆ clock_skew

JWTClockSkew sourcemeta::core::JWKSProvider::Options::clock_skew {}

The tolerance applied to time-based claims, uniform or per claim. Unlike the other fields, the default is zero tolerance, so set it deliberately when validating tokens minted by a clock that is not your own.

◆ unknown_kid_cooldown

std::chrono::seconds sourcemeta::core::JWKSProvider::Options::unknown_kid_cooldown {std::chrono::minutes{5}}

The wait before another refetch is allowed after an unknown key identifier.


The documentation for this struct was generated from the following file: