Interface TenantPolicyConfigResolver


public interface TenantPolicyConfigResolver
A tenant resolver is responsible for resolving the KeycloakPolicyEnforcerTenantConfig for tenants, dynamically.
  • Method Details

    • resolve

      io.smallrye.mutiny.Uni<KeycloakPolicyEnforcerTenantConfig> resolve(io.vertx.ext.web.RoutingContext routingContext, io.quarkus.oidc.OidcTenantConfig tenantConfig, io.quarkus.oidc.OidcRequestContext<KeycloakPolicyEnforcerTenantConfig> requestContext)
      Returns a KeycloakPolicyEnforcerTenantConfig given a RoutingContext and tenant id.
      Parameters:
      routingContext - routing context; nullable
      tenantConfig - tenant config; never null
      requestContext - request context; never null
      Returns:
      the tenant configuration. If the uni resolves to null, indicates that the default configuration/tenant should be chosen