Skip to content

Commit e8bbe7a

Browse files
committed
Fix jwtDecoder Documentation Usage
Closes gh-10505
1 parent f89a34c commit e8bbe7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-resourceserver.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2733,9 +2733,9 @@ Now that we have a tenant-aware processor and a tenant-aware validator, we can p
27332733
----
27342734
@Bean
27352735
JwtDecoder jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator) {
2736-
NimbusJwtDecoder decoder = new NimbusJwtDecoder(processor);
2736+
NimbusJwtDecoder decoder = new NimbusJwtDecoder(jwtProcessor);
27372737
OAuth2TokenValidator<Jwt> validator = new DelegatingOAuth2TokenValidator<>
2738-
(JwtValidators.createDefault(), this.jwtValidator);
2738+
(JwtValidators.createDefault(), jwtValidator);
27392739
decoder.setJwtValidator(validator);
27402740
return decoder;
27412741
}

0 commit comments

Comments
 (0)