Fix: Replace tenantRepository with tenants

This commit is contained in:
Sellami 2022-11-22 14:59:44 +01:00 committed by Marcus Da Coregio
parent a5464ed819
commit 626e53d121
1 changed files with 1 additions and 1 deletions

View File

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