Class OidcCommonConfigBuilder.OidcCommonConfigImpl

java.lang.Object
io.quarkus.oidc.common.runtime.config.OidcCommonConfigBuilder.OidcCommonConfigImpl
All Implemented Interfaces:
OidcCommonConfig
Direct Known Subclasses:
OidcClientCommonConfigBuilder.OidcClientCommonConfigImpl
Enclosing class:
OidcCommonConfigBuilder<T>

protected static class OidcCommonConfigBuilder.OidcCommonConfigImpl extends Object implements OidcCommonConfig
  • Constructor Details

  • Method Details

    • authServerUrl

      public Optional<String> authServerUrl()
      Description copied from interface: OidcCommonConfig
      The base URL of the OpenID Connect (OIDC) server, for example, `https://host:port/auth`. Do not set this property if you use 'quarkus-oidc' and the public key verification (
      invalid reference
      #publicKey
      ) or certificate chain verification only (
      invalid reference
      #certificateChain
      ) is required. The OIDC discovery endpoint is called by default by appending a `.well-known/openid-configuration` path to this URL. For Keycloak, use `https://host:port/realms/{realm}`, replacing `{realm}` with the Keycloak realm name.
      Specified by:
      authServerUrl in interface OidcCommonConfig
    • discoveryEnabled

      public Optional<Boolean> discoveryEnabled()
      Description copied from interface: OidcCommonConfig
      Discovery of the OIDC endpoints. If not enabled, you must configure the OIDC endpoint URLs individually.
      Specified by:
      discoveryEnabled in interface OidcCommonConfig
    • registrationPath

      public Optional<String> registrationPath()
      Description copied from interface: OidcCommonConfig
      The relative path or absolute URL of the OIDC dynamic client registration endpoint. Set if OidcCommonConfig.discoveryEnabled() is `false` or a discovered token endpoint path must be customized.
      Specified by:
      registrationPath in interface OidcCommonConfig
    • connectionDelay

      public Optional<Duration> connectionDelay()
      Description copied from interface: OidcCommonConfig
      The duration to attempt the initial connection to an OIDC server. For example, setting the duration to `20S` allows 10 retries, each 2 seconds apart. This property is only effective when the initial OIDC connection is created. For dropped connections, use the `connection-retry-count` property instead.
      Specified by:
      connectionDelay in interface OidcCommonConfig
    • connectionRetryCount

      public int connectionRetryCount()
      Description copied from interface: OidcCommonConfig
      The number of times to retry re-establishing an existing OIDC connection if it is temporarily lost. Different from `connection-delay`, which applies only to initial connection attempts. For instance, if a request to the OIDC token endpoint fails due to a connection issue, it will be retried as per this setting.
      Specified by:
      connectionRetryCount in interface OidcCommonConfig
    • connectionTimeout

      public Duration connectionTimeout()
      Description copied from interface: OidcCommonConfig
      The number of seconds after which the current OIDC connection request times out.
      Specified by:
      connectionTimeout in interface OidcCommonConfig
    • useBlockingDnsLookup

      public boolean useBlockingDnsLookup()
      Description copied from interface: OidcCommonConfig
      Whether DNS lookup should be performed on the worker thread. Use this option when you can see logged warnings about blocked Vert.x event loop by HTTP requests to OIDC server.
      Specified by:
      useBlockingDnsLookup in interface OidcCommonConfig
    • maxPoolSize

      public OptionalInt maxPoolSize()
      Description copied from interface: OidcCommonConfig
      The maximum size of the connection pool used by the WebClient.
      Specified by:
      maxPoolSize in interface OidcCommonConfig
    • followRedirects

      public boolean followRedirects()
      Description copied from interface: OidcCommonConfig
      Follow redirects automatically when WebClient gets HTTP 302. When this property is disabled only a single redirect to exactly the same original URI is allowed but only if one or more cookies were set during the redirect request.
      Specified by:
      followRedirects in interface OidcCommonConfig
    • proxy

      public OidcCommonConfig.Proxy proxy()
      Description copied from interface: OidcCommonConfig
      HTTP proxy configuration.
      Specified by:
      proxy in interface OidcCommonConfig
    • tls

      public OidcCommonConfig.Tls tls()
      Description copied from interface: OidcCommonConfig
      TLS configuration.
      Specified by:
      tls in interface OidcCommonConfig