From 626e53d1214b5b6a639648a7c0bd8c44744d50bf Mon Sep 17 00:00:00 2001 From: Sellami <49169744+selllami@users.noreply.github.com> Date: Tue, 22 Nov 2022 14:59:44 +0100 Subject: [PATCH] Fix: Replace tenantRepository with tenants --- .../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 8bd734b29d..8016262f06 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc @@ -248,7 +248,7 @@ public class TenantJWSKeySelector } private JWSKeySelector fromTenant(String tenant) { - return Optional.ofNullable(this.tenantRepository.findById(tenant)) <3> + return Optional.ofNullable(this.tenants.findById(tenant)) <3> .map(t -> t.getAttrbute("jwks_uri")) .map(this::fromUri) .orElseThrow(() -> new IllegalArgumentException("unknown tenant"));