Skip to content

Commit 1b1c78f

Browse files
committed
Fix jwtDecoder Documentation Usage
Closes gh-10505
1 parent 7b03fb5 commit 1b1c78f

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,9 +1842,9 @@ Now that we have a tenant-aware processor and a tenant-aware validator, we can p
18421842
----
18431843
@Bean
18441844
JwtDecoder jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator) {
1845-
NimbusJwtDecoder decoder = new NimbusJwtDecoder(processor);
1845+
NimbusJwtDecoder decoder = new NimbusJwtDecoder(jwtProcessor);
18461846
OAuth2TokenValidator<Jwt> validator = new DelegatingOAuth2TokenValidator<>
1847-
(JwtValidators.createDefault(), this.jwtValidator);
1847+
(JwtValidators.createDefault(), jwtValidator);
18481848
decoder.setJwtValidator(validator);
18491849
return decoder;
18501850
}

0 commit comments

Comments
 (0)