validation-options
Optional validations that are applied after decoding a JWT.
All time validation happens on UTC timestamps as seconds.
record validation-options {
required-spec-claims: option<required-claims>,
leeway: option<u64>,
reject-tokens-expiring-in-less-than: option<u64>,
validate-exp: option<bool>,
validate-nbf: option<bool>,
sub: option<string>,
algorithms: option<list<algorithm>>,
}Fields
| Name | Type | Description |
|---|---|---|
| required-spec-claims | option<required-claims> | Which claims are required to be present before starting the validation.
This does not interact with the various Defaults to |
| leeway | option<u64> | Add some leeway (in seconds) to the Defaults to |
| reject-tokens-expiring-in-less-than | option<u64> | Reject a token some time (in seconds) before the The value is the inverse of Defaults to |
| validate-exp | option<bool> | Whether to validate the It will return an error if the time in the Defaults to |
| validate-nbf | option<bool> | Whether to validate the It will return an error if the current timestamp is before the time in the Validation only happens if Defaults to |
| sub | option<string> | If it contains a value, the validation will check that the Validation only happens if Defaults to |
| algorithms | option<list<algorithm>> | The validation will check that the Defaults to HMAC using SHA-256 |