Package io.quarkus.oidc.client
Class OidcClientConfig
- java.lang.Object
-
- io.quarkus.oidc.common.runtime.OidcCommonConfig
-
- io.quarkus.oidc.client.OidcClientConfig
-
public class OidcClientConfig extends OidcCommonConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOidcClientConfig.Grant-
Nested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
OidcCommonConfig.Credentials, OidcCommonConfig.Proxy, OidcCommonConfig.Tls
-
-
Field Summary
Fields Modifier and Type Field Description booleanclientEnabledIf this client configuration is enabled.booleanearlyTokensAcquisitionRequires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used.OidcClientConfig.GrantgrantMap<String,Map<String,String>>grantOptionsGrant optionsOptional<String>idA unique OIDC client identifier.Optional<Duration>refreshTokenTimeSkewRefresh token time skew in seconds.Optional<List<String>>scopesList of access token scopes-
Fields inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, clientId, connectionDelay, connectionRetryCount, connectionTimeout, credentials, discoveryEnabled, maxPoolSize, proxy, tls, tokenPath
-
-
Constructor Summary
Constructors Constructor Description OidcClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Map<String,String>>getGrantOptions()Optional<String>getId()Optional<Duration>getRefreshTokenTimeSkew()Optional<List<String>>getScopes()booleanisClientEnabled()voidsetClientEnabled(boolean clientEnabled)voidsetGrantOptions(Map<String,Map<String,String>> grantOptions)voidsetId(String id)voidsetRefreshTokenTimeSkew(Duration refreshTokenTimeSkew)voidsetScopes(List<String> scopes)-
Methods inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
getAuthServerUrl, getClientId, getConnectionDelay, getConnectionTimeout, getCredentials, getMaxPoolSize, getProxy, getTokenPath, isDiscoveryEnabled, setAuthServerUrl, setClientId, setConnectionDelay, setConnectionTimeout, setCredentials, setDiscoveryEnabled, setMaxPoolSize, setProxy, setTokenPath
-
-
-
-
Field Detail
-
id
@ConfigItem public Optional<String> id
A unique OIDC client identifier. It must be set when OIDC clients are created dynamically and is optional in all other cases.
-
clientEnabled
@ConfigItem(defaultValue="true") public boolean clientEnabled
If this client configuration is enabled.
-
scopes
@ConfigItem public Optional<List<String>> scopes
List of access token scopes
-
refreshTokenTimeSkew
@ConfigItem public Optional<Duration> refreshTokenTimeSkew
Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking whether the access token should be refreshed. If the sum is greater than this access token's expiration time then a refresh is going to happen.
-
grant
public OidcClientConfig.Grant grant
-
earlyTokensAcquisition
@ConfigItem(defaultValue="true") public boolean earlyTokensAcquisition
Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used. This property should be disabled if the access token may expire before it is used for the first time and no refresh token is available.
-
-