Package io.quarkus.oidc
Class OidcTenantConfig
java.lang.Object
io.quarkus.oidc.common.runtime.OidcCommonConfig
io.quarkus.oidc.common.runtime.OidcClientCommonConfig
io.quarkus.oidc.OidcTenantConfig
- All Implemented Interfaces:
OidcClientCommonConfig,OidcCommonConfig,OidcTenantConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classDeprecated.static classDeprecated.use theOidcTenantConfigBuilder.BackchannelBuilderbuilderstatic classDeprecated.use theTokenConfigBuilder.BindingConfigBuilderbuilderstatic classDeprecated.use theOidcTenantConfigBuilder.CertificateChainBuilderbuilderstatic classDeprecated.use theOidcTenantConfigBuilder.CodeGrantBuilderbuilderstatic classDeprecated.use theLogoutConfigBuilderbuilderstatic classDeprecated.static classDeprecated.use theOidcTenantConfigBuilder.JwksBuilderbuilderstatic classDeprecated.use theLogoutConfigBuilderbuilderstatic enumstatic classDeprecated.use theOidcTenantConfigBuilder.RolesBuilderbuilderstatic enumSupported asymmetric signature algorithmsstatic classDeprecated.use theTokenConfigBuilderbuilderstatic classDeprecated.use theOidcTenantConfigBuilder.TokenStateManagerBuilderbuilderNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
OidcCommonConfig.Proxy, OidcCommonConfig.TlsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig
OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcCommonConfig
OidcCommonConfig.Proxy, OidcCommonConfig.Tls -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated.use theallowTokenIntrospectionCache()methodbooleanDeprecated.use theallowUserInfoCache()methodDeprecated.useapplicationType()method insteadDeprecated.use theauthentication()methodDeprecated.useauthorizationPath()method insteadDeprecated.use thecacheUserInfoInIdtoken()methodDeprecated.usecertificateChain()method insteadDeprecated.use thecodeGrant()methodDeprecated.useendSessionPath()method insteadDeprecated.useintrospectionCredentials()method insteadDeprecated.useintrospectionPath()method insteadDeprecated.use thejwks()method insteadDeprecated.usejwksPath()method insteadDeprecated.use thelogout()methodDeprecated.use theprovider()method insteadDeprecated.usepublicKey()method insteadDeprecated.use theroles()method insteadbooleanDeprecated.usetenantEnabled()method insteadDeprecated.usetenantId()method insteadDeprecated.usetenantPaths()method insteadDeprecated.use thetoken()method insteadDeprecated.use thetokenStateManager()methodDeprecated.useuserInfoPath()method insteadFields inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
clientId, clientName, credentials, revokePath, tokenPathFields inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, maxPoolSize, proxy, registrationPath, tls, useBlockingDnsLookup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAllow caching the token introspection data.booleanAllow caching the user info data.The application type, which can be one of the followingOidcTenantConfig.ApplicationTypevalues.Configuration for managing an authorization code flow.The relative path or absolute URL of the OpenID Connect (OIDC) authorization endpoint, which authenticates users.static OidcTenantConfigBuilderauthServerUrl(String authServerUrl) CreatesOidcTenantConfigBuilderbuilder populated with documented default values.static OidcTenantConfigBuilderbuilder()CreatesOidcTenantConfigBuilderbuilder populated with documented default values.static OidcTenantConfigBuilderbuilder(OidcTenantConfig mapping) CreatesOidcTenantConfigBuilderbuilder populated withstaticTenantMappingvalues.Allow inlining UserInfo in IdToken instead of caching it in the token cache.Configuration of the certificate chain which can be used to verify tokens.Configuration to complete an authorization code flow grant.Relative path or absolute URL of the OIDC end_session_endpoint.Deprecated.use theapplicationType()method insteadDeprecated.use theauthentication()method insteadDeprecated.use theauthorizationPath()method insteadDeprecated.use thecertificateChain()method insteadDeprecated.use thecodeGrant()method insteadDeprecated.use theendSessionPath()method insteadDeprecated.use theintrospectionCredentials()method insteadDeprecated.use theintrospectionPath()method insteadDeprecated.use thejwksPath()method insteadDeprecated.use thelogout()method insteadDeprecated.use theprovider()method insteadDeprecated.use thepublicKey()method insteadgetRoles()Deprecated.use theroles()method insteadDeprecated.use thetenantId()method insteadgetToken()Deprecated.use thetoken()method insteadDeprecated.use theuserInfoPath()method insteadOptional introspection endpoint-specific basic authentication configuration.Relative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JSON Web Token (JWT) tokens.booleanDeprecated.use theallowTokenIntrospectionCache()method insteadbooleanDeprecated.use theallowUserInfoCache()method insteadDeprecated.use thecacheUserInfoInIdtoken()method insteadbooleanDeprecated.use thetenantEnabled()method insteadjwks()How JsonWebKey verification key set should be acquired and managed.jwksPath()Relative path or absolute URL of the OIDC JSON Web Key Set (JWKS) endpoint which returns a JSON Web Key Verification Set.logout()RP-initiated, back-channel and front-channel logout configuration.static OidcTenantConfigof(OidcTenantConfig mapping) CreatesOidcTenantConfigfrom themapping.provider()Well known OpenId Connect provider identifierThe public key for the local JWT token verification.static OidcTenantConfigBuilderregistrationPath(String registrationPath) CreatesOidcTenantConfigBuilderbuilder populated with documented default values.roles()Configuration to find and parse custom claims which contain roles.voidsetAllowTokenIntrospectionCache(boolean allowTokenIntrospectionCache) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetAllowUserInfoCache(boolean allowUserInfoCache) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidDeprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetAuthentication(OidcTenantConfig.Authentication authentication) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetAuthorizationPath(String authorizationPath) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetCacheUserInfoInIdtoken(boolean cacheUserInfoInIdtoken) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetCertificateChain(OidcTenantConfig.CertificateChain certificateChain) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetCodeGrant(OidcTenantConfig.CodeGrant codeGrant) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetEndSessionPath(String endSessionPath) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetIntrospectionCredentials(OidcTenantConfig.IntrospectionCredentials introspectionCredentials) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetIntrospectionPath(String introspectionPath) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetJwksPath(String jwksPath) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetLogout(OidcTenantConfig.Logout logout) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetProvider(OidcTenantConfig.Provider provider) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetPublicKey(String publicKey) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetRoles(OidcTenantConfig.Roles roles) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetTenantEnabled(boolean enabled) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetTenantId(String tenantId) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetToken(OidcTenantConfig.Token token) Deprecated.build this config with theOidcTenantConfigBuilderbuildervoidsetUserInfoPath(String userInfoPath) Deprecated.build this config with theOidcTenantConfigBuilderbuilderbooleanIf this tenant configuration is enabled.tenantId()A unique tenant identifier.The paths which must be secured by this tenant.token()Configuration to customize validation of token claims.static OidcTenantConfigBuilderCreatesOidcTenantConfigBuilderbuilder populated with documented default values.Default token state manager configurationThe relative path or absolute URL of the OIDC UserInfo endpoint.Methods inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
clientId, clientName, credentials, getClientId, getClientName, getCredentials, getRevokePath, getTokenPath, revokePath, setClientId, setClientName, setCredentials, setRevokePath, setTokenPath, tokenPathMethods inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, getAuthServerUrl, getConnectionDelay, getConnectionTimeout, getDiscoveryEnabled, getMaxPoolSize, getProxy, getRegistrationPath, isDiscoveryEnabled, maxPoolSize, proxy, registrationPath, setAuthServerUrl, setConnectionDelay, setConnectionTimeout, setDiscoveryEnabled, setDiscoveryEnabled, setMaxPoolSize, setProxy, setRegistrationPath, tls, useBlockingDnsLookupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig
clientId, clientName, credentials, revokePath, tokenPathMethods inherited from interface io.quarkus.oidc.common.runtime.config.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, maxPoolSize, proxy, registrationPath, tls, useBlockingDnsLookup
-
Field Details
-
tenantId
Deprecated.usetenantId()method insteadA unique tenant identifier. It can be set byTenantConfigResolverproviders, which resolve the tenant configuration dynamically. -
tenantEnabled
Deprecated.usetenantEnabled()method insteadIf this tenant configuration is enabled. The default tenant is disabled if it is not configured but aTenantConfigResolverthat resolves tenant configurations is registered, or named tenants are configured. In this case, you do not need to disable the default tenant. -
applicationType
Deprecated.useapplicationType()method insteadThe application type, which can be one of the followingOidcTenantConfig.ApplicationTypevalues. -
authorizationPath
Deprecated.useauthorizationPath()method insteadThe relative path or absolute URL of the OpenID Connect (OIDC) authorization endpoint, which authenticates users. You must set this property for `web-app` applications if OIDC discovery is disabled. This property is ignored if OIDC discovery is enabled. -
userInfoPath
Deprecated.useuserInfoPath()method insteadThe relative path or absolute URL of the OIDC UserInfo endpoint. You must set this property for `web-app` applications if OIDC discovery is disabled and the `authentication.user-info-required` property is enabled. This property is ignored if OIDC discovery is enabled. -
introspectionPath
Deprecated.useintrospectionPath()method insteadRelative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JSON Web Token (JWT) tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens must be verified or 2) JWT tokens must be verified while the cached JWK verification set with no matching JWK is being refreshed. This property is ignored if the discovery is enabled. -
jwksPath
Deprecated.usejwksPath()method insteadRelative path or absolute URL of the OIDC JSON Web Key Set (JWKS) endpoint which returns a JSON Web Key Verification Set. This property should be set if OIDC discovery is disabled and the local JWT verification is required. This property is ignored if the discovery is enabled. -
endSessionPath
Deprecated.useendSessionPath()method insteadRelative path or absolute URL of the OIDC end_session_endpoint. This property must be set if OIDC discovery is disabled and RP Initiated Logout support for the `web-app` applications is required. This property is ignored if the discovery is enabled. -
tenantPaths
Deprecated.usetenantPaths()method insteadThe paths which must be secured by this tenant. Tenant with the most specific path wins. Please see the xref:security-openid-connect-multitenancy.adoc#configure-tenant-paths[Configure tenant paths] section of the OIDC multitenancy guide for explanation of allowed path patterns. -
publicKey
Deprecated.usepublicKey()method insteadThe public key for the local JWT token verification. OIDC server connection is not created when this property is set. -
introspectionCredentials
Deprecated.useintrospectionCredentials()method insteadIntrospection Basic Authentication which must be configured only if the introspection is required and OpenId Connect Provider does not support the OIDC client authentication configured withOidcCommonConfig#credentialsfor its introspection endpoint. -
roles
Deprecated.use theroles()method insteadConfiguration to find and parse a custom claim containing the roles information. -
token
Deprecated.use thetoken()method insteadConfiguration how to validate the token claims. -
logout
Deprecated.use thelogout()methodRP Initiated, BackChannel and FrontChannel Logout configuration -
certificateChain
Deprecated.usecertificateChain()method insteadConfiguration of the certificate chain which can be used to verify tokens. If the certificate chain truststore is configured, the tokens can be verified using the certificate chain inlined in the Base64-encoded format as an `x5c` header in the token itself. The certificate chain inlined in the token is verified. Signature of every certificate in the chain but the root certificate is verified by the next certificate in the chain. Thumbprint of the root certificate in the chain must match a thumbprint of one of the certificates in the truststore. Additionally, a direct trust in the leaf chain certificate which will be used to verify the token signature must be established. By default, the leaf certificate's thumbprint must match a thumbprint of one of the certificates in the truststore. If the truststore does not have the leaf certificate imported, then the leaf certificate must be identified by its Common Name. -
authentication
Deprecated.use theauthentication()methodDifferent options to configure authorization requests -
codeGrant
Deprecated.use thecodeGrant()methodAuthorization code grant configuration -
tokenStateManager
Deprecated.use thetokenStateManager()methodDefault token state manager configuration -
allowTokenIntrospectionCache
Deprecated.use theallowTokenIntrospectionCache()methodAllow caching the token introspection data. Note enabling this property does not enable the cache itself but only permits to cache the token introspection for a given tenant. If the default token cache can be used, seeOidcConfig.TokenCacheto enable it. -
allowUserInfoCache
Deprecated.use theallowUserInfoCache()methodAllow caching the user info data. Note enabling this property does not enable the cache itself but only permits to cache the user info data for a given tenant. If the default token cache can be used, seeOidcConfig.TokenCacheto enable it. -
cacheUserInfoInIdtoken
Deprecated.use thecacheUserInfoInIdtoken()methodAllow inlining UserInfo in IdToken instead of caching it in the token cache. This property is only checked when an internal IdToken is generated when OAuth2 providers do not return IdToken. Inlining UserInfo in the generated IdToken allows to store it in the session cookie and avoids introducing a cached state.Inlining UserInfo in the generated IdToken is enabled if the session cookie is encrypted and the UserInfo cache is not enabled or caching UserInfo is disabled for the current tenant with the
allowUserInfoCacheproperty set to `false`. -
jwks
Deprecated.use thejwks()method insteadConfiguration for controlling how JsonWebKeySet containing verification keys should be acquired and managed. -
provider
Deprecated.use theprovider()method insteadWell known OpenId Connect provider identifier
-
-
Constructor Details
-
OidcTenantConfig
Deprecated.Usebuilder()to create this config
-
-
Method Details
-
getAuthorizationPath
Deprecated.use theauthorizationPath()method instead -
setAuthorizationPath
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getUserInfoPath
Deprecated.use theuserInfoPath()method instead -
setUserInfoPath
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getIntrospectionPath
Deprecated.use theintrospectionPath()method instead -
setIntrospectionPath
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getJwksPath
Deprecated.use thejwksPath()method instead -
setJwksPath
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getEndSessionPath
Deprecated.use theendSessionPath()method instead -
setEndSessionPath
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getPublicKey
Deprecated.use thepublicKey()method instead -
setPublicKey
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getRoles
Deprecated.use theroles()method instead -
setRoles
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getToken
Deprecated.use thetoken()method instead -
setToken
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getAuthentication
Deprecated.use theauthentication()method instead -
setAuthentication
@Deprecated(since="3.18") public void setAuthentication(OidcTenantConfig.Authentication authentication) Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getTenantId
Deprecated.use thetenantId()method instead -
setTenantId
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
isTenantEnabled
Deprecated.use thetenantEnabled()method instead -
setTenantEnabled
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
setLogout
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getLogout
Deprecated.use thelogout()method instead -
getProvider
Deprecated.use theprovider()method instead -
setProvider
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getApplicationType
Deprecated.use theapplicationType()method instead -
setApplicationType
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
isAllowTokenIntrospectionCache
Deprecated.use theallowTokenIntrospectionCache()method instead -
setAllowTokenIntrospectionCache
@Deprecated(since="3.18") public void setAllowTokenIntrospectionCache(boolean allowTokenIntrospectionCache) Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
isAllowUserInfoCache
Deprecated.use theallowUserInfoCache()method instead -
setAllowUserInfoCache
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
isCacheUserInfoInIdtoken
Deprecated.use thecacheUserInfoInIdtoken()method instead -
setCacheUserInfoInIdtoken
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getIntrospectionCredentials
@Deprecated(since="3.18") public OidcTenantConfig.IntrospectionCredentials getIntrospectionCredentials()Deprecated.use theintrospectionCredentials()method instead -
setIntrospectionCredentials
@Deprecated(since="3.18") public void setIntrospectionCredentials(OidcTenantConfig.IntrospectionCredentials introspectionCredentials) Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getCodeGrant
Deprecated.use thecodeGrant()method instead -
setCodeGrant
Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
getCertificateChain
Deprecated.use thecertificateChain()method instead -
setCertificateChain
@Deprecated(since="3.18") public void setCertificateChain(OidcTenantConfig.CertificateChain certificateChain) Deprecated.build this config with theOidcTenantConfigBuilderbuilder -
tenantId
Description copied from interface:OidcTenantConfigA unique tenant identifier. It can be set byTenantConfigResolverproviders, which resolve the tenant configuration dynamically.- Specified by:
tenantIdin interfaceOidcTenantConfig
-
tenantEnabled
public boolean tenantEnabled()Description copied from interface:OidcTenantConfigIf this tenant configuration is enabled. The default tenant is disabled if it is not configured but aTenantConfigResolverthat resolves tenant configurations is registered, or named tenants are configured. In this case, you do not need to disable the default tenant.- Specified by:
tenantEnabledin interfaceOidcTenantConfig
-
applicationType
Description copied from interface:OidcTenantConfigThe application type, which can be one of the followingOidcTenantConfig.ApplicationTypevalues.- Specified by:
applicationTypein interfaceOidcTenantConfig
-
authorizationPath
Description copied from interface:OidcTenantConfigThe relative path or absolute URL of the OpenID Connect (OIDC) authorization endpoint, which authenticates users. You must set this property for `web-app` applications if OIDC discovery is disabled. This property is ignored if OIDC discovery is enabled.- Specified by:
authorizationPathin interfaceOidcTenantConfig
-
userInfoPath
Description copied from interface:OidcTenantConfigThe relative path or absolute URL of the OIDC UserInfo endpoint. You must set this property for `web-app` applications if OIDC discovery is disabled and the `authentication.user-info-required` property is enabled. This property is ignored if OIDC discovery is enabled.- Specified by:
userInfoPathin interfaceOidcTenantConfig
-
introspectionPath
Description copied from interface:OidcTenantConfigRelative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JSON Web Token (JWT) tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens must be verified or 2) JWT tokens must be verified while the cached JWK verification set with no matching JWK is being refreshed. This property is ignored if the discovery is enabled.- Specified by:
introspectionPathin interfaceOidcTenantConfig
-
jwksPath
Description copied from interface:OidcTenantConfigRelative path or absolute URL of the OIDC JSON Web Key Set (JWKS) endpoint which returns a JSON Web Key Verification Set. This property should be set if OIDC discovery is disabled and the local JWT verification is required. This property is ignored if the discovery is enabled.- Specified by:
jwksPathin interfaceOidcTenantConfig
-
endSessionPath
Description copied from interface:OidcTenantConfigRelative path or absolute URL of the OIDC end_session_endpoint. This property must be set if OIDC discovery is disabled and RP Initiated Logout support for the `web-app` applications is required. This property is ignored if the discovery is enabled.- Specified by:
endSessionPathin interfaceOidcTenantConfig
-
tenantPaths
Description copied from interface:OidcTenantConfigThe paths which must be secured by this tenant. Tenant with the most specific path wins. Please see the xref:security-openid-connect-multitenancy.adoc#configure-tenant-paths[Configure tenant paths] section of the OIDC multitenancy guide for explanation of allowed path patterns.- Specified by:
tenantPathsin interfaceOidcTenantConfig
-
publicKey
Description copied from interface:OidcTenantConfigThe public key for the local JWT token verification. OIDC server connection is not created when this property is set.- Specified by:
publicKeyin interfaceOidcTenantConfig
-
introspectionCredentials
Description copied from interface:OidcTenantConfigOptional introspection endpoint-specific basic authentication configuration. It must be configured only if the introspection is required but OpenId Connect Provider does not support the OIDC client authentication configured withOidcCommonConfig#credentialsfor its introspection endpoint.- Specified by:
introspectionCredentialsin interfaceOidcTenantConfig
-
roles
Description copied from interface:OidcTenantConfigConfiguration to find and parse custom claims which contain roles.- Specified by:
rolesin interfaceOidcTenantConfig
-
token
Description copied from interface:OidcTenantConfigConfiguration to customize validation of token claims.- Specified by:
tokenin interfaceOidcTenantConfig
-
logout
Description copied from interface:OidcTenantConfigRP-initiated, back-channel and front-channel logout configuration.- Specified by:
logoutin interfaceOidcTenantConfig
-
certificateChain
Description copied from interface:OidcTenantConfigConfiguration of the certificate chain which can be used to verify tokens. If the certificate chain truststore is configured, the tokens can be verified using the certificate chain inlined in the Base64-encoded format as an `x5c` header in the token itself. The certificate chain inlined in the token is verified. Signature of every certificate in the chain but the root certificate is verified by the next certificate in the chain. Thumbprint of the root certificate in the chain must match a thumbprint of one of the certificates in the truststore. Additionally, a direct trust in the leaf chain certificate which will be used to verify the token signature must be established. By default, the leaf certificate's thumbprint must match a thumbprint of one of the certificates in the truststore. If the truststore does not have the leaf certificate imported, then the leaf certificate must be identified by its Common Name.- Specified by:
certificateChainin interfaceOidcTenantConfig
-
authentication
Description copied from interface:OidcTenantConfigConfiguration for managing an authorization code flow.- Specified by:
authenticationin interfaceOidcTenantConfig
-
codeGrant
Description copied from interface:OidcTenantConfigConfiguration to complete an authorization code flow grant.- Specified by:
codeGrantin interfaceOidcTenantConfig
-
tokenStateManager
Description copied from interface:OidcTenantConfigDefault token state manager configuration- Specified by:
tokenStateManagerin interfaceOidcTenantConfig
-
allowTokenIntrospectionCache
public boolean allowTokenIntrospectionCache()Description copied from interface:OidcTenantConfigAllow caching the token introspection data. Note enabling this property does not enable the cache itself but only permits to cache the token introspection for a given tenant. If the default token cache can be used, seeOidcConfig.TokenCacheto enable it.- Specified by:
allowTokenIntrospectionCachein interfaceOidcTenantConfig
-
allowUserInfoCache
public boolean allowUserInfoCache()Description copied from interface:OidcTenantConfigAllow caching the user info data. Note enabling this property does not enable the cache itself but only permits to cache the user info data for a given tenant. If the default token cache can be used, seeOidcConfig.TokenCacheto enable it.- Specified by:
allowUserInfoCachein interfaceOidcTenantConfig
-
cacheUserInfoInIdtoken
Description copied from interface:OidcTenantConfigAllow inlining UserInfo in IdToken instead of caching it in the token cache. This property is only checked when an internal IdToken is generated when OAuth2 providers do not return IdToken. Inlining UserInfo in the generated IdToken allows to store it in the session cookie and avoids introducing a cached state.Inlining UserInfo in the generated IdToken is enabled if the session cookie is encrypted and the UserInfo cache is not enabled or caching UserInfo is disabled for the current tenant with the
OidcTenantConfig.allowUserInfoCache()property set to `false`.- Specified by:
cacheUserInfoInIdtokenin interfaceOidcTenantConfig
-
jwks
Description copied from interface:OidcTenantConfigHow JsonWebKey verification key set should be acquired and managed.- Specified by:
jwksin interfaceOidcTenantConfig
-
provider
Description copied from interface:OidcTenantConfigWell known OpenId Connect provider identifier- Specified by:
providerin interfaceOidcTenantConfig
-
builder
CreatesOidcTenantConfigBuilderbuilder populated with documented default values.- Returns:
- OidcTenantConfigBuilder builder
-
builder
CreatesOidcTenantConfigBuilderbuilder populated withstaticTenantMappingvalues. You want to use this constructor when you have configured static tenant in the application.properties and your dynamic tenant only differ in a couple of the configuration properties.- Parameters:
mapping- OidcTenantConfig created by the SmallRye Config; must not be null
-
of
CreatesOidcTenantConfigfrom themapping. This method is more efficient than thebuilder()method if you don't need to modify themapping.- Parameters:
mapping- tenant config as returned from the SmallRye Config; must not be null- Returns:
- OidcTenantConfig
-
authServerUrl
CreatesOidcTenantConfigBuilderbuilder populated with documented default values.- Parameters:
authServerUrl-OidcCommonConfig.authServerUrl()- Returns:
- OidcTenantConfigBuilder builder
-
registrationPath
CreatesOidcTenantConfigBuilderbuilder populated with documented default values.- Parameters:
registrationPath-OidcCommonConfig.registrationPath()- Returns:
- OidcTenantConfigBuilder builder
-
tokenPath
CreatesOidcTenantConfigBuilderbuilder populated with documented default values.- Parameters:
tokenPath-OidcClientCommonConfig.tokenPath()- Returns:
- OidcTenantConfigBuilder builder
-
AuthenticationConfigBuilderbuilder