public interface TenantConfigFinder
Configuration of a tenant.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default tenant id used when requesting configuration for unknown tenant.
  • Method Summary

    Modifier and Type
    Method
    Description
    config(String tenantId)
    Open ID Configuration for this tenant.
    void
    onChange(Consumer<String> tenantIdChangeConsumer)
    Register a change listener.
  • Field Details

    • DEFAULT_TENANT_ID

      static final String DEFAULT_TENANT_ID
      Default tenant id used when requesting configuration for unknown tenant.
      See Also:
  • Method Details

    • 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