Fix jwtDecoder Documentation Usage

Closes gh-10505
This commit is contained in:
Jeff Maxwell 2021-11-15 17:42:13 -06:00 committed by Josh Cummings
parent 6b6f473a1b
commit 088a24cf59
1 changed files with 2 additions and 2 deletions

View File

@ -416,9 +416,9 @@ Now that we have a tenant-aware processor and a tenant-aware validator, we can p
---- ----
@Bean @Bean
JwtDecoder jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator) { JwtDecoder jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator) {
NimbusJwtDecoder decoder = new NimbusJwtDecoder(processor); NimbusJwtDecoder decoder = new NimbusJwtDecoder(jwtProcessor);
OAuth2TokenValidator<Jwt> validator = new DelegatingOAuth2TokenValidator<> OAuth2TokenValidator<Jwt> validator = new DelegatingOAuth2TokenValidator<>
(JwtValidators.createDefault(), this.jwtValidator); (JwtValidators.createDefault(), jwtValidator);
decoder.setJwtValidator(validator); decoder.setJwtValidator(validator);
return decoder; return decoder;
} }