Interface TenantConfigFinder


  • public interface TenantConfigFinder
    Configuration of a tenant.
    • Field Detail

      • DEFAULT_TENANT_ID

        static final String DEFAULT_TENANT_ID
        Default tenant id used when requesting configuration for unknown tenant.
        See Also:
        Constant Field Values
    • Method Detail

      • config

        Optional<TenantConfig> config​(String tenantId)
        Open ID Configuration for this tenant.
        Parameters:
        tenantId - identified tenant, or DEFAULT_TENANT_ID if tenant was not identified, or default was chosen
        Returns:
        open ID connect configuration, or empty optional in case we are missing configuration (this will fail the request if the provider is not optional)
      • onChange

        void onChange​(Consumer<String> tenantIdChangeConsumer)
        Register a change listener. When configuration is updated, call the consumer to remove the cached data for this tenant.
        Parameters:
        tenantIdChangeConsumer - consumer of tenant configuration changes