mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
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…
x
Reference in New Issue
Block a user