Package io.quarkus.oidc.client
Class OidcClientConfig
java.lang.Object
io.quarkus.oidc.common.runtime.OidcCommonConfig
io.quarkus.oidc.client.OidcClientConfig
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
OidcCommonConfig.Credentials, OidcCommonConfig.Proxy, OidcCommonConfig.Tls
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time.boolean
If this client configuration is enabled.boolean
Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used.Grant optionsCustom HTTP headers which have to be sent to the token endpointA unique OIDC client identifier.Refresh token time skew in seconds.List of access token scopesFields inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, clientId, connectionDelay, connectionRetryCount, connectionTimeout, credentials, discoveryEnabled, maxPoolSize, proxy, revokePath, tls, tokenPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGrant()
getId()
boolean
boolean
void
setAbsoluteExpiresIn
(boolean absoluteExpiresIn) void
setClientEnabled
(boolean clientEnabled) void
setGrant
(OidcClientConfig.Grant grant) void
void
setHeaders
(Map<String, String> headers) void
void
setRefreshTokenTimeSkew
(Duration refreshTokenTimeSkew) void
Methods inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
getAuthServerUrl, getClientId, getConnectionDelay, getConnectionTimeout, getCredentials, getMaxPoolSize, getProxy, getRevokePath, getTokenPath, isDiscoveryEnabled, setAuthServerUrl, setClientId, setConnectionDelay, setConnectionTimeout, setCredentials, setDiscoveryEnabled, setMaxPoolSize, setProxy, setRevokePath, setTokenPath
-
Field Details
-
id
A unique OIDC client identifier. It must be set when OIDC clients are created dynamically and is optional in all other cases. -
clientEnabled
If this client configuration is enabled. -
scopes
List of access token scopes -
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. -
absoluteExpiresIn
If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time. -
grant
-
grantOptions
Grant options -
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. -
headers
Custom HTTP headers which have to be sent to the token endpoint
-
-
Constructor Details
-
OidcClientConfig
public OidcClientConfig()
-
-
Method Details
-
getId
-
setId
-
getGrantOptions
-
setGrantOptions
-
isClientEnabled
public boolean isClientEnabled() -
setClientEnabled
public void setClientEnabled(boolean clientEnabled) -
getScopes
-
setScopes
-
getRefreshTokenTimeSkew
-
setRefreshTokenTimeSkew
-
getHeaders
-
setHeaders
-
isAbsoluteExpiresIn
public boolean isAbsoluteExpiresIn() -
setAbsoluteExpiresIn
public void setAbsoluteExpiresIn(boolean absoluteExpiresIn) -
setGrant
-
getGrant
-