Package io.quarkus.oidc
Interface TenantConfigResolver
-
public interface TenantConfigResolverA tenant resolver is responsible for resolving the
OidcTenantConfigfor tenants, dynamically.Instead of implementing a
TenantResolverthat maps the tenant configuration based on an identifier and its corresponding entry in the application configuration file, beans implementing this interface can dynamically construct the tenant configuration without having to define each tenant in the application configuration file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTenantConfigResolver.TenantConfigRequestContextA context object that can be used to run blocking tasks.
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default OidcTenantConfigresolve(io.vertx.ext.web.RoutingContext context)Deprecated.Use {@link #resolve(RoutingContext, TenantConfigRequestContext))} instead.default io.smallrye.mutiny.Uni<OidcTenantConfig>resolve(io.vertx.ext.web.RoutingContext routingContext, TenantConfigResolver.TenantConfigRequestContext requestContext)Returns aOidcTenantConfiggiven aRoutingContext.
-
-
-
Method Detail
-
resolve
@Deprecated default OidcTenantConfig resolve(io.vertx.ext.web.RoutingContext context)
Deprecated.Use {@link #resolve(RoutingContext, TenantConfigRequestContext))} instead.Returns aOidcTenantConfiggiven aRoutingContext.- Parameters:
context- the routing context- Returns:
- the tenant configuration. If
null, indicates that the default configuration/tenant should be chosen
-
resolve
default io.smallrye.mutiny.Uni<OidcTenantConfig> resolve(io.vertx.ext.web.RoutingContext routingContext, TenantConfigResolver.TenantConfigRequestContext requestContext)
Returns aOidcTenantConfiggiven aRoutingContext.- Parameters:
requestContext- the routing context- Returns:
- the tenant configuration. If the uni resolves to
null, indicates that the default configuration/tenant should be chosen
-
-