1
0
mirror of synced 2026-05-22 13:23:17 +00:00

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
@@ -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;
}