Update multitenancy.adoc

The Java example at line 421 should use the injected `jwtValidator` and not from the current class referenced by `this. jwtValidator`.
This commit is contained in:
Olivier Délèze 2022-12-28 18:35:08 +01:00 committed by Josh Cummings
parent 27b3f4d403
commit 9535566f84
1 changed files with 1 additions and 1 deletions

View File

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