OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
new JwtTimestampValidator(Duration.ofSeconds(60)),
new IssuerValidator(issuerUri));
new JwtIssuerValidator(issuerUri));
jwtDecoder.setJwtValidator(withClockSkew);
@ -1040,7 +1040,7 @@ To adjust the way in which Resource Server caches the JWK set, `NimbusJwtDecoder
@@ -1040,7 +1040,7 @@ To adjust the way in which Resource Server caches the JWK set, `NimbusJwtDecoder
```java
@Bean
public JwtDecoder jwtDecoder(CacheManager cacheManager) {
return NimbusJwtDecoder.withJwtSetUri(jwkSetUri)
return NimbusJwtDecoder.withJwkSetUri(jwkSetUri)
.cache(cacheManager.getCache("jwks"))
.build();
}
@ -1576,7 +1576,7 @@ To adjust the way in which Resource Server connects to the authorization server,
@@ -1576,7 +1576,7 @@ To adjust the way in which Resource Server connects to the authorization server,
public OpaqueTokenIntrospector introspector(RestTemplateBuilder builder, OAuth2ResourceServerProperties properties) {
@ -1634,7 +1634,7 @@ public class JwtOpaqueTokenIntrospector implements OpaqueTokenIntrospector {
@@ -1634,7 +1634,7 @@ public class JwtOpaqueTokenIntrospector implements OpaqueTokenIntrospector {
private static class ParseOnlyJWTProcessor extends DefaultJWTProcessor<SecurityContext> {