Skip to content

0.0.3

Latest

Choose a tag to compare

@abhishekkumar-harman abhishekkumar-harman released this 12 Jun 11:47
7ba7aae

What's Changed

Clock-Skew Validation Enforcement

The clockSkew configuration property now enforces a hard maximum of 60 seconds.
Providing a value above this limit throws an IllegalArgumentException immediately at
configuration time — both via the builder API and via Spring Boot auto-configuration
properties — so misconfigured deployments fail fast rather than silently accepting
an unsafe tolerance.

Behaviour summary

Input Result
null Treated as Duration.ZERO (no skew)
060 s Accepted and stored as-is
> 60 s IllegalArgumentException: "clockSkew exceeds the maximum allowed value of 60 seconds"
Negative IllegalArgumentException: "clockSkew must not be negative"

Affected classes

  • TokenValidatorBuilder.clockSkew(Duration) — new MAX_CLOCK_SKEW constant (Duration.ofSeconds(60)) exposed as static final
  • TokenValidatorProperties.setClockSkew(Duration) — same enforcement; MAX_CLOCK_SKEW exposed as public static final

Dependency Upgrades

Dependency Previous Updated
Spring Boot 4.0.6 4.0.7

Other Changes

New Contributors

Full Changelog: 0.0.2...0.0.3