浏览代码

Fix: Replace tenantRepository with tenants

Sellami 2 年之前
父节点
当前提交
626e53d121
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc

+ 1 - 1
docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc

@@ -248,7 +248,7 @@ public class TenantJWSKeySelector
 	}
 
 	private JWSKeySelector<SecurityContext> 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"));