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"));