From 9535566f84e464d805211f4b28f42e1facc775c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20D=C3=A9l=C3=A8ze?= Date: Wed, 28 Dec 2022 18:35:08 +0100 Subject: [PATCH] Update multitenancy.adoc The Java example at line 421 should use the injected `jwtValidator` and not from the current class referenced by `this. jwtValidator`. --- .../ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc index 35321d00ae..cb31f37739 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc @@ -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 jwtValidator) { NimbusJwtDecoder decoder = new NimbusJwtDecoder(processor); OAuth2TokenValidator validator = new DelegatingOAuth2TokenValidator<> - (JwtValidators.createDefault(), this.jwtValidator); + (JwtValidators.createDefault(), jwtValidator); decoder.setJwtValidator(validator); return decoder; }