Class OidcConfig.Builder
java.lang.Object
io.helidon.security.providers.oidc.common.BaseBuilder<OidcConfig.Builder, OidcConfig>
io.helidon.security.providers.oidc.common.OidcConfig.Builder
- All Implemented Interfaces:
Builder<OidcConfig.Builder, OidcConfig>, Supplier<OidcConfig>
- Enclosing class:
OidcConfig
A fluent API
Builder to build instances of OidcConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessTokenIpCheck(boolean enabled) Whether to check if current IP address matches the one access token was issued for.addTenantConfig(TenantConfig tenantConfig) Add specificTenantConfiginstance.build()Build the instance from this builder.clientCredentialsConfig(ClientCredentialsConfig clientCredentialsConfig) Set the configuration related to the client credentials flow.clientCredentialsConfig(Consumer<ClientCredentialsConfig.Builder> builderConsumer) Configure client credentials configuration over the builder consumer.clientTimeout(Duration duration) Timeout of calls using web client.Update this builder with values from configuration.cookieCompressionEnabled(boolean cookieCompressionEnabled) Whether to GZIP-compress the access token cookie when this reduces its size.cookieCompressionEnabledIdToken(boolean cookieCompressionEnabled) Whether to GZIP-compress the ID token cookie when this reduces its size.cookieDomain(String domain) Domain the cookie is valid for.cookieEncryptionEnabled(boolean cookieEncryptionEnabled) Whether to encrypt token cookie created by this microservice.cookieEncryptionEnabledIdToken(boolean cookieEncryptionEnabled) Whether to encrypt id token cookie created by this microservice.cookieEncryptionEnabledRefreshToken(boolean cookieEncryptionEnabled) Whether to encrypt refresh token cookie created by this microservice.cookieEncryptionEnabledState(boolean cookieEncryptionEnabled) Whether to encrypt state cookie created by this microservice.cookieEncryptionEnabledTenantName(boolean cookieEncryptionEnabled) Whether to encrypt tenant name cookie created by this microservice.cookieEncryptionName(String cookieEncryptionName) Name of the encryption configuration available throughSecurity.encrypt(String, byte[])andSecurity.decrypt(String, String).cookieEncryptionPassword(char[] cookieEncryptionPassword) Master password for encryption/decryption of cookies.cookieHttpOnly(Boolean httpOnly) When using cookie, if set to true, the HttpOnly attribute will be configured.cookieMaxAgeSeconds(long age) When using cookie, used to set MaxAge attribute of the cookie, defining how long the cookie is valid.cookieName(String cookieName) Name of the cookie to use.cookieNameIdToken(String cookieName) Name of the cookie to use for id token.cookieNameRefreshToken(String cookieName) The name of the cookie to use for the refresh token.cookieNameState(String cookieName) The name of the cookie to use for the state storage.cookiePath(String path) Path the cookie is valid for.cookieSameSite(SetCookie.SameSite sameSite) When using cookie, used to set the SameSite cookie value.cookieSameSite(String sameSite) When using cookie, used to set the SameSite cookie value.cookieSecure(Boolean secure) When using cookie, if set to true, the Secure attribute will be configured.cookieTenantName(String cookieName) The name of the cookie to use for the tenant name.fallbackToDefaultTenantEnabled(boolean enabled) Whether unknown tenant ids should use default tenant configuration.forceHttpsRedirects(boolean forceHttpsRedirects) Force HTTPS for redirects to identity provider.frontendUri(String uri) Full URI of this application that is visible from the user browser; if not configured, OIDC redirect URI construction uses the dynamically discovered requested URI origin, which must be permitted byfrontend-uri-allow-listin this OIDC configuration.frontendUriAllowList(AllowList allowList) Allowed dynamically discovered frontend origins whenfrontend-uriis not configured.headerTokenHandler(TokenHandler tokenHandler) ATokenHandlerto process header containing a JWT.idTokenParamName(String idTokenParamName) Name of a query parameter that contains the JWT id token when parameter is used.idTokenSignatureValidation(boolean enabled) Whether id token signature check should be enabled.jwkCircuitBreaker(CircuitBreaker jwkCircuitBreaker) Circuit breaker around each complete retry batch used to load OIDC metadata and signing JWKs; by default, the circuit opens after one exhausted batch and permits a recovery probe after 5 seconds.Retry used while loading OIDC metadata and signing JWKs; by default, it wraps two timeout-guarded attempts within an 11-second overall timeout.jwkTimeout(Timeout jwkTimeout) Timeout applied to each attempt to load OIDC metadata and signing JWKs; it defaults to 5 seconds, must be positive, must execute on the current thread, and must not exceed the retry overall timeout.legacyCookieEncryption(boolean legacyCookieEncryption) Whether password-based encrypted OIDC cookies should be written without a version byte and with the legacy PBKDF2 iteration count.legacyCookieFallback(boolean legacyCookieFallback) Whether password-based encrypted OIDC cookies should retry decryption with the alternate cookie format after primary decryption fails.logoutEnabled(Boolean logoutEnabled) Whether to enable logout support.Path to register web server for logout link.maxRedirects(int maxRedirects) Configure maximal number of redirects when redirecting to an OIDC provider within a single authentication attempt.Name of a query parameter that contains the JWT access token when parameter is used.paramTenantName(String paramName) Name of a query parameter that contains the tenant name when the parameter is used.pkceChallengeMethod(PkceChallengeMethod pkceChallengeMethod) Proof Key Code Exchange (PKCE) challenge creation method.pkceEnabled(boolean enabled) Whether this provider should support PKCE.postLogoutUri(URI uri) URI to redirect to once the logout process is done.redirect(boolean redirect) By default, the client should redirect to the identity server for the user to log in.Configure the strategy used to count redirects to an identity server.redirectAttemptParam(String paramName) Configure the redirect attempt query parameter and cookie name prefix.redirectUri(String redirectUri) URI to register web server component on, used by the OIDC server to redirect authorization requests to after a user logs in or approves scopes.tokenRefreshSkew(Duration tokenRefreshSkew) Amount of time access token should be refreshed before its expiration time.tokenSignatureValidation(boolean enabled) Whether access token signature check should be enabled.Whether to use cookie to store JWT between requests.Whether to expect JWT in a header field.Whether to use a query parameter to send JWT token from application to this server.webclient(Consumer<WebClientConfig.Builder> builderConsumer) WebClient configuration consumer.Methods inherited from class BaseBuilder
audience, authorizationEndpointUri, baseScopes, checkAudience, clientId, clientSecret, decryptionKeys, decryptionKeys, identityUri, introspectEndpointUri, issuer, jwkCircuitBreaker, jwkCircuitBreaker, jwkCircuitBreaker, jwkRetry, jwkRetry, jwkRetry, jwkTimeout, jwkTimeout, jwkTimeout, logoutEndpointUri, oidcMetadata, oidcMetadata, oidcMetadataJsonObject, oidcMetadataWellKnown, optionalAudience, realm, scopeAudience, serverType, signJwk, signJwk, signJwk, tokenEndpointAuthentication, tokenEndpointUri, validateJwtWithJwkModifier and TypeMethodDescriptionAudience of issued tokens.URI of an authorization endpoint used to redirect users to for logging-in.baseScopes(String scopes) Configure base scopes.checkAudience(boolean checkAudience) Configure audience claim check.Client ID as generated by OIDC server.clientSecret(String clientSecret) Client secret as generated by OIDC server.decryptionKeys(Resource resource) A resource pointing to JWK with private keys used for JWE content key decryption.decryptionKeys(JwkKeys contentKeyDecryptionKeys) SetJwkKeysused for JWE content key decryption.identityUri(URI uri) URI of the identity server, base used to retrieve OIDC metadata.introspectEndpointUri(URI uri) Endpoint to use to validate JWT.Issuer of issued tokens.jwkCircuitBreaker(CircuitBreakerConfig jwkCircuitBreaker) Circuit breaker used while loading OIDC metadata and signing JWK.Circuit breaker used while loading OIDC metadata and signing JWK.jwkCircuitBreaker(Supplier<? extends CircuitBreaker> supplier) Circuit breaker used while loading OIDC metadata and signing JWK.jwkRetry(RetryConfig jwkRetry) Retry used while loading OIDC metadata and signing JWK.jwkRetry(Consumer<RetryConfig.Builder> consumer) Retry used while loading OIDC metadata and signing JWK.Retry used while loading OIDC metadata and signing JWK.jwkTimeout(TimeoutConfig jwkTimeout) Timeout applied to each attempt to load OIDC metadata and signing JWK.jwkTimeout(Consumer<TimeoutConfig.Builder> consumer) Timeout applied to each attempt to load OIDC metadata and signing JWK.jwkTimeout(Supplier<? extends Timeout> supplier) Timeout applied to each attempt to load OIDC metadata and signing JWK.logoutEndpointUri(URI logoutEndpointUri) URI of a logout endpoint used to redirect users to for logging-out.oidcMetadata(Resource resource) Resource configuration for OIDC Metadata containing endpoints to various identity services, as well as information about the identity server.oidcMetadata(ResourceConfig resourceConfig) Resource configuration for OIDC metadata.oidcMetadataJsonObject(JsonObject metadata) Helidon JSON with the OIDC metadata.oidcMetadataWellKnown(boolean useWellKnown) If set to true, metadata will be loaded from default (well known) location, unless it is explicitly defined using oidc-metadata-resource.optionalAudience(boolean optional) Allow audience claim to be optional.Realm to return when not redirecting and an error occurs that sends back WWW-Authenticate header.scopeAudience(String audience) Audience of the scope required by this application.serverType(String type) Configure one of the supported types of identity servers.A resource pointing to JWK with public keys of signing certificates used to validate JWT.signJwk(ResourceConfig resourceConfig) Resource configuration pointing to JWK with public keys of signing certificates used to validate JWT.SetJwkKeysto use for JWT validation.tokenEndpointAuthentication(OidcConfig.ClientAuthentication tokenEndpointAuthentication) Type of authentication to use when invoking the token endpoint.tokenEndpointUri(URI uri) URI of a token endpoint used to obtain a JWT based on the authentication code.validateJwtWithJwk(Boolean useJwk) Use JWK (a set of keys to validate signatures of JWT) to validate tokens.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OidcConfigget()default OidcConfig.Builderidentity()Instance of this builder as the correct type.default OidcConfig.Builderupdate(Consumer<OidcConfig.Builder> consumer) Update the builder in a fluent API way.
-
Constructor Details
-
Builder
protected Builder()Create an OIDC configuration builder.
-
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
config
Update this builder with values from configuration.- Overrides:
configin classBaseBuilder<OidcConfig.Builder, OidcConfig>- Parameters:
config- configuration located on node with OIDC configuration keys (e.g. client-id)- Returns:
- updated builder instance
-
jwkRetry
Description copied from class:BaseBuilderRetry used while loading OIDC metadata and signing JWKs; by default, it wraps two timeout-guarded attempts within an 11-second overall timeout.- Overrides:
jwkRetryin classBaseBuilder<OidcConfig.Builder, OidcConfig>- Parameters:
jwkRetry- retry to use- Returns:
- updated builder instance
-
jwkTimeout
Description copied from class:BaseBuilderTimeout applied to each attempt to load OIDC metadata and signing JWKs; it defaults to 5 seconds, must be positive, must execute on the current thread, and must not exceed the retry overall timeout. Current-thread execution ensures that a retry cannot overlap an attempt that is still unwinding after an interrupt. The deadline interrupts the loader; prompt termination also depends on the underlying I/O honoring interruption or enforcing its own timeout.- Overrides:
jwkTimeoutin classBaseBuilder<OidcConfig.Builder, OidcConfig>- Parameters:
jwkTimeout- timeout to use- Returns:
- updated builder instance
-
jwkCircuitBreaker
Description copied from class:BaseBuilderCircuit breaker around each complete retry batch used to load OIDC metadata and signing JWKs; by default, the circuit opens after one exhausted batch and permits a recovery probe after 5 seconds.- Overrides:
jwkCircuitBreakerin classBaseBuilder<OidcConfig.Builder, OidcConfig>- Parameters:
jwkCircuitBreaker- circuit breaker to use- Returns:
- updated builder instance
-
tokenRefreshSkew
Amount of time access token should be refreshed before its expiration time. Default is 5 seconds.- Parameters:
tokenRefreshSkew- time to refresh token before expiration- Returns:
- updated builder
-
logoutEnabled
Whether to enable logout support. When logout is enabled, we use two cookies (User token and user ID token) and we expose an endpointlogoutUri(String)that can be used to log the user out from Helidon session and also from OIDC session (usesBaseBuilder.logoutEndpointUri(java.net.URI)on OIDC server). Logout support is disabled by default.- Parameters:
logoutEnabled- whether to enable logout- Returns:
- updated builder instance
-
redirect
By default, the client should redirect to the identity server for the user to log in. This behavior can be overridden by setting redirect to false. When token is not present in the request, the client will not redirect and just return appropriate error response code.- Parameters:
redirect- Whether to redirect to OIDC server in case the request does not contain sufficient information to authenticate the user, defaults to true- Returns:
- updated builder instance
-
frontendUri
Full URI of this application that is visible from the user browser; if not configured, OIDC redirect URI construction uses the dynamically discovered requested URI origin, which must be permitted byfrontend-uri-allow-listin this OIDC configuration.- Parameters:
uri- the frontend URI, such ashttp://my.server.com/myApp- Returns:
- updated builder instance
-
frontendUriAllowList
Allowed dynamically discovered frontend origins whenfrontend-uriis not configured. The default empty list denies all dynamic origins with HTTP 401. Values are matched asscheme://host[:port], with lowercase HTTP(S) scheme and host and omitted default ports. Paths, queries and fragments are not part of an origin. IPv6 addresses are normalized to bracketed canonical form. When HTTPS is forced, matching uses HTTPS and maps the default HTTP port to the default HTTPS port; other ports are retained. Configure an explicitfrontend-urito override discovery and this list.- Parameters:
allowList- non-null frontend origin allow-list- Returns:
- updated builder instance
-
forceHttpsRedirects
Force HTTPS for redirects to identity provider. Defaults tofalse.- Parameters:
forceHttpsRedirects- flag to redirect with https- Returns:
- updated builder instance
-
fallbackToDefaultTenantEnabled
Whether unknown tenant ids should use default tenant configuration.- Parameters:
enabled- whether unknown tenant ids fall back to default tenant- Returns:
- updated builder instance
-
redirectUri
URI to register web server component on, used by the OIDC server to redirect authorization requests to after a user logs in or approves scopes. Note that usually the redirect URI configured here must be the same one as configured on OIDC server.Defaults to "/oidc/redirect"
- Parameters:
redirectUri- the URI (path without protocol, host and port) used to redirect requests back to us- Returns:
- updated builder instance
-
logoutUri
Path to register web server for logout link. This should be used by application to redirect user to logout the current user from Helidon based session (when using cookies and redirection). This endpoint will logout user from Helidon session (remove Helidon cookies) and redirect user to logout screen of the OIDC server.- Parameters:
logoutUri- URI path for logout component- Returns:
- updated builder instance
-
postLogoutUri
URI to redirect to once the logout process is done. The endpoint should not be protected by OIDC (as this would serve no purpose, just to log the user in again). This endpoint usually must be registered with the application as the allowed post-logout redirect URI. Note that the URI should not contain any query parameters. You can obtain state using the state query parameter that must be provided tologoutUri(String).- Parameters:
uri- this will be used by the OIDC server to redirect user to once logout is done; can define just a path, in which case the scheme, host, and port will be taken from the configured frontend URI, or from the allowed requested URI origin when the frontend URI is not configured- Returns:
- updated builder instance
-
redirectAttemptParam
Configure the redirect attempt query parameter and cookie name prefix.- Parameters:
paramName- name of the parameter or cookie name prefix- Returns:
- updated builder instance
-
redirectAttemptCounterStrategy
Configure the strategy used to count redirects to an identity server.- Parameters:
strategy- redirect attempt counter strategy- Returns:
- updated builder instance
-
maxRedirects
Configure maximal number of redirects when redirecting to an OIDC provider within a single authentication attempt.Defaults to 5
- Parameters:
maxRedirects- maximal number of redirects from Helidon to OIDC provider- Returns:
- updated builder instance
-
headerTokenHandler
ATokenHandlerto process header containing a JWT. Default is "Authorization" header with a prefix "bearer ".- Parameters:
tokenHandler- token handler to use- Returns:
- updated builder instance
-
useHeader
Whether to expect JWT in a header field.- Parameters:
useHeader- set to true to use a header extracted withheaderTokenHandler(TokenHandler)- Returns:
- updated builder instance
-
paramName
Name of a query parameter that contains the JWT access token when parameter is used.- Parameters:
paramName- name of the query parameter to expect- Returns:
- updated builder instance
-
idTokenParamName
Name of a query parameter that contains the JWT id token when parameter is used.- Parameters:
idTokenParamName- name of the query parameter to expect- Returns:
- updated builder instance
-
paramTenantName
Name of a query parameter that contains the tenant name when the parameter is used. Defaults toOidcConfig.DEFAULT_TENANT_PARAM_NAME.- Parameters:
paramName- name of the query parameter to expect- Returns:
- updated builder instance
-
useParam
Whether to use a query parameter to send JWT token from application to this server.- Parameters:
useParam- whether to use a query parameter (true) or not (false)- Returns:
- updated builder instance
- See Also:
-
cookieEncryptionName
Name of the encryption configuration available throughSecurity.encrypt(String, byte[])andSecurity.decrypt(String, String). If configured and encryption is enabled for any cookie, Security MUST be configured in global or currentio.helidon.common.context.Context(this is done automatically in Helidon MP).- Parameters:
cookieEncryptionName- name of the encryption configuration in security used to encrypt/decrypt cookies- Returns:
- updated builder
-
cookieEncryptionPassword
Master password for encryption/decryption of cookies. This must be configured to the same value on each microservice using the cookie. If encrypted cookies are enabled and this method andcookieEncryptionName(String)are not used, Helidon creates or reads a fallback.helidon-oidc-secretfile in the current working directory.- Parameters:
cookieEncryptionPassword- encryption password- Returns:
- updated builder
-
legacyCookieEncryption
Whether password-based encrypted OIDC cookies should be written without a version byte and with the legacy PBKDF2 iteration count. This can be enabled during rolling upgrades so upgraded nodes continue creating cookies that older nodes can decrypt. Leave disabled for steady-state deployments and reset tofalseafter all nodes run the new version. This setting does not affect named Security encryption configured withcookieEncryptionName(String). Defaults tofalse.- Parameters:
legacyCookieEncryption- whether cookies should be written with legacy password-based encryption- Returns:
- updated builder instance
-
legacyCookieFallback
Whether password-based encrypted OIDC cookies should retry decryption with the alternate cookie format after primary decryption fails. This can be enabled after a rolling upgrade to accept older unversioned legacy cookies until they expire, or while legacy writes must read versioned current cookies. Leave disabled for steady-state deployments and reset tofalseafter legacy cookies expire. This setting does not affect named Security encryption configured withcookieEncryptionName(String). Defaults tofalse.- Parameters:
legacyCookieFallback- whether legacy cookie decryption fallback should be enabled- Returns:
- updated builder instance
-
cookieEncryptionEnabled
Whether to encrypt token cookie created by this microservice. Defaults totrue.- Parameters:
cookieEncryptionEnabled- whether cookie should be encryptedtrue, or left unencryptedfalse- Returns:
- updated builder instance
-
cookieCompressionEnabled
Whether to GZIP-compress the access token cookie when this reduces its size. When encryption is enabled, compression is applied before encryption. Defaults totruewhen the top-levelserver-typeisidcs, and tofalseotherwise. Disabling compression affects newly written cookies only; compressed cookies remain readable. Password-based legacy cookie encryption disables compression whilelegacy-cookie-encryptionis enabled.- Parameters:
cookieCompressionEnabled- whether the access token cookie should be compressed- Returns:
- updated builder instance
-
cookieEncryptionEnabledIdToken
Whether to encrypt id token cookie created by this microservice. Defaults totrue.- Parameters:
cookieEncryptionEnabled- whether cookie should be encryptedtrue, or as obtained from OIDC serverfalse- Returns:
- updated builder instance
-
cookieCompressionEnabledIdToken
Whether to GZIP-compress the ID token cookie when this reduces its size. When encryption is enabled, compression is applied before encryption. Defaults totruewhen the top-levelserver-typeisidcs, and tofalseotherwise. Disabling compression affects newly written cookies only; compressed cookies remain readable. Password-based legacy cookie encryption disables compression whilelegacy-cookie-encryptionis enabled.- Parameters:
cookieCompressionEnabled- whether the ID token cookie should be compressed- Returns:
- updated builder instance
-
cookieEncryptionEnabledTenantName
Whether to encrypt tenant name cookie created by this microservice. Defaults totrue.- Parameters:
cookieEncryptionEnabled- whether cookie should be encryptedtrue, or as plain text namefalse- Returns:
- updated builder instance
-
cookieEncryptionEnabledRefreshToken
Whether to encrypt refresh token cookie created by this microservice. Defaults totrue.- Parameters:
cookieEncryptionEnabled- whether cookie should be encryptedtrue, or as obtained from OIDC serverfalse- Returns:
- updated builder instance
-
cookieEncryptionEnabledState
Whether to encrypt state cookie created by this microservice. Defaults totrue.- Parameters:
cookieEncryptionEnabled- whether cookie should be encryptedtrue, or as sent to OIDC serverfalse- Returns:
- updated builder instance
-
cookieSameSite
When using cookie, used to set the SameSite cookie value. Can be "Strict" or "Lax"- Parameters:
sameSite- SameSite cookie attribute value- Returns:
- updated builder instance
-
cookieSameSite
When using cookie, used to set the SameSite cookie value. Can be "Strict" or "Lax".- Parameters:
sameSite- SameSite cookie attribute- Returns:
- updated builder instance
-
cookieSecure
When using cookie, if set to true, the Secure attribute will be configured. Defaults to false.- Parameters:
secure- whether the cookie should be secure (true) or not (false)- Returns:
- updated builder instance
-
cookieHttpOnly
When using cookie, if set to true, the HttpOnly attribute will be configured. Defaults to true.- Parameters:
httpOnly- whether the cookie should be HttpOnly (true) or not (false)- Returns:
- updated builder instance
-
cookieMaxAgeSeconds
When using cookie, used to set MaxAge attribute of the cookie, defining how long the cookie is valid. Not used by default.- Parameters:
age- age in seconds- Returns:
- updated builder instance
-
cookiePath
Path the cookie is valid for. Defaults to "/".- Parameters:
path- the path to use as value of cookie "Path" attribute- Returns:
- updated builder instance
-
cookieDomain
Domain the cookie is valid for. Not used by default.- Parameters:
domain- domain to use as value of cookie "Domain" attribute- Returns:
- updated builder instance
-
cookieName
Name of the cookie to use. Defaults to "JSESSIONID".- Parameters:
cookieName- name of a cookie- Returns:
- updated builder instance
-
cookieNameIdToken
Name of the cookie to use for id token. Defaults to "JSESSIONID"_2. This cookie is only used when logout is enabled, as otherwise it is not needed. Content of this cookie is encrypted.- Parameters:
cookieName- name of a cookie- Returns:
- updated builder instance
-
cookieTenantName
The name of the cookie to use for the tenant name. Defaults to "HELIDON_TENANT".- Parameters:
cookieName- name of a cookie- Returns:
- updated builder instance
-
cookieNameRefreshToken
The name of the cookie to use for the refresh token. Defaults to "JSESSIONID_3".- Parameters:
cookieName- name of a cookie- Returns:
- updated builder instance
-
cookieNameState
The name of the cookie to use for the state storage. Defaults to "OIDC_STATE".- Parameters:
cookieName- name of a cookie- Returns:
- updated builder instance
-
useCookie
Whether to use cookie to store JWT between requests. Defaults to true.- Parameters:
useCookie- whether to use cookie to store JWT (true) or not (false))- Returns:
- updated builder instance
-
addTenantConfig
Add specificTenantConfiginstance.- Parameters:
tenantConfig- tenant configuration- Returns:
- updated builder instance
-
tokenSignatureValidation
Whether access token signature check should be enabled. Signature check is enabled by default, and it is highly recommended to not change that. Change this setting only when you really know what you are doing, otherwise it could case security issues.- Parameters:
enabled- whether access token signature check is enabled- Returns:
- updated builder instance
-
idTokenSignatureValidation
Whether id token signature check should be enabled. Signature check is enabled by default, and it is highly recommended to not change that. Change this setting only when you really know what you are doing, otherwise it could case security issues.- Parameters:
enabled- whether id token signature check is enabled- Returns:
- updated builder instance
-
accessTokenIpCheck
Whether to check if current IP address matches the one access token was issued for. This check helps with cookie replay attack prevention.- Parameters:
enabled- whether to check if current IP address matches the one access token was issued for- Returns:
- updated builder instance
-
pkceEnabled
Whether this provider should support PKCE. Default value isfalse.- Parameters:
enabled- PKCE enabled- Returns:
- updated builder instance
-
pkceChallengeMethod
Proof Key Code Exchange (PKCE) challenge creation method. Default value isPkceChallengeMethod.S256.- Parameters:
pkceChallengeMethod- challenge creation method- Returns:
- updated builder instance
-
webclient
WebClient configuration consumer. This configuration is used for outbound requests to the identity server.- Parameters:
builderConsumer- webclient config builder consumer- Returns:
- updated builder instance
-
clientTimeout
Description copied from class:BaseBuilderTimeout of calls using web client.- Overrides:
clientTimeoutin classBaseBuilder<OidcConfig.Builder, OidcConfig>- Parameters:
duration- timeout- Returns:
- updated builder
-
clientCredentialsConfig
Set the configuration related to the client credentials flow.- Parameters:
clientCredentialsConfig- client credentials configuration- Returns:
- updated builder instance
-
clientCredentialsConfig
public OidcConfig.Builder clientCredentialsConfig(Consumer<ClientCredentialsConfig.Builder> builderConsumer) Configure client credentials configuration over the builder consumer.- Parameters:
builderConsumer- builder consumer- Returns:
- updated builder instance
-