Package io.quarkus.oidc.common.runtime
Class OidcCommonConfig
java.lang.Object
io.quarkus.oidc.common.runtime.OidcCommonConfig
- Direct Known Subclasses:
OidcClientCommonConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionThe base URL of the OpenID Connect (OIDC) server, for example, `https://host:port/auth`.The duration to attempt the initial connection to an OIDC server.intThe number of times to retry re-establishing an existing OIDC connection if it is temporarily lost.The number of seconds after which the current OIDC connection request times out.Discovery of the OIDC endpoints.booleanFollow redirects automatically when WebClient gets HTTP 302.The maximum size of the connection pool used by the WebClient.Options to configure the proxy the OIDC adapter uses to talk with the OIDC server.The relative path or absolute URL of the OIDC dynamic client registration endpoint.TLS configurationsbooleanWhether DNS lookup should be performed on the worker thread. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProxy()voidsetAuthServerUrl(String authServerUrl) voidsetConnectionDelay(Duration connectionDelay) voidsetConnectionTimeout(Duration connectionTimeout) voidsetDiscoveryEnabled(boolean enabled) voidsetDiscoveryEnabled(Boolean discoveryEnabled) voidsetMaxPoolSize(int maxPoolSize) voidsetProxy(OidcCommonConfig.Proxy proxy) voidsetRegistrationPath(String registrationPath)
-
Field Details
-
authServerUrl
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 (#publicKey) or certificate chain verification only (#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. -
discoveryEnabled
Discovery of the OIDC endpoints. If not enabled, you must configure the OIDC endpoint URLs individually. -
registrationPath
The relative path or absolute URL of the OIDC dynamic client registration endpoint. Set ifdiscoveryEnabledis `false` or a discovered token endpoint path must be customized. -
connectionDelay
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. -
connectionRetryCount
public int connectionRetryCountThe 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. -
connectionTimeout
The number of seconds after which the current OIDC connection request times out. -
useBlockingDnsLookup
public boolean useBlockingDnsLookupWhether 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. -
maxPoolSize
The maximum size of the connection pool used by the WebClient. -
followRedirects
public boolean followRedirectsFollow 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. -
proxy
Options to configure the proxy the OIDC adapter uses to talk with the OIDC server. -
tls
TLS configurations
-
-
Constructor Details
-
OidcCommonConfig
public OidcCommonConfig() -
OidcCommonConfig
-
-
Method Details
-
getConnectionDelay
-
setConnectionDelay
-
getAuthServerUrl
-
setAuthServerUrl
-
getRegistrationPath
-
setRegistrationPath
-
isDiscoveryEnabled
-
setDiscoveryEnabled
public void setDiscoveryEnabled(boolean enabled) -
getProxy
-
setProxy
-
getConnectionTimeout
-
setConnectionTimeout
-
getMaxPoolSize
-
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) -
getDiscoveryEnabled
-
setDiscoveryEnabled
-