Fix: Replace tenantRepository with tenants
This commit is contained in:
parent
a5464ed819
commit
626e53d121
|
@ -248,7 +248,7 @@ public class TenantJWSKeySelector
|
||||||
}
|
}
|
||||||
|
|
||||||
private JWSKeySelector<SecurityContext> fromTenant(String tenant) {
|
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(t -> t.getAttrbute("jwks_uri"))
|
||||||
.map(this::fromUri)
|
.map(this::fromUri)
|
||||||
.orElseThrow(() -> new IllegalArgumentException("unknown tenant"));
|
.orElseThrow(() -> new IllegalArgumentException("unknown tenant"));
|
||||||
|
|
Loading…
Reference in New Issue