Skip to content

Commit

Permalink
Use OIDC @ConfigMapping methods after config class migration
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Nov 5, 2024
1 parent 8d0706c commit 82c9074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public String getTenantId() {

@Override
public Set<String> getTenants() {
return oidcConfig.namedTenants.keySet();
return oidcConfig.namedTenants().keySet();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import org.eclipse.microprofile.config.inject.ConfigProperty;

import io.quarkus.oidc.OidcTenantConfig;
import io.quarkus.oidc.runtime.OidcTenantConfig;
import io.quarkus.oidc.TenantResolver;
import io.quarkus.oidc.runtime.OidcConfig;
import io.quarkus.oidc.runtime.OidcUtils;
Expand All @@ -29,8 +29,8 @@ public String resolve(RoutingContext context) {
if (knownTenant != null)
return knownTenant;
// Named tenants
for (Entry<String, OidcTenantConfig> tenantEntry : oidcConfig.namedTenants.entrySet()) {
if (!tenantEntry.getValue().tenantEnabled)
for (Entry<String, OidcTenantConfig> tenantEntry : oidcConfig.namedTenants().entrySet()) {
if (!tenantEntry.getValue().tenantEnabled())
continue;
String tenant = tenantEntry.getKey();
// First case: login
Expand Down

0 comments on commit 82c9074

Please sign in to comment.