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:
io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig,io.quarkus.oidc.common.runtime.config.OidcCommonConfig,OidcTenantConfig
public class OidcTenantConfig
extends io.quarkus.oidc.common.runtime.OidcClientCommonConfig
implements OidcTenantConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.use thebuilderinvalid reference
OidcTenantConfigBuilder.BackchannelBuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theTokenConfigBuilder.BindingConfigBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theOidcTenantConfigBuilder.CertificateChainBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theOidcTenantConfigBuilder.CodeGrantBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theLogoutConfigBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.use theOidcTenantConfigBuilder.JwksBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theLogoutConfigBuilderbuilderstatic enumstatic classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.use theOidcTenantConfigBuilder.RolesBuilderbuilderstatic enumSupported asymmetric signature algorithmsstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theTokenConfigBuilderbuilderstatic classDeprecated, for removal: This API element is subject to removal in a future version.use theOidcTenantConfigBuilder.TokenStateManagerBuilderbuilderNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
io.quarkus.oidc.common.runtime.OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
io.quarkus.oidc.common.runtime.OidcCommonConfig.Proxy, io.quarkus.oidc.common.runtime.OidcCommonConfig.TlsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig
io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcCommonConfig
io.quarkus.oidc.common.runtime.config.OidcCommonConfig.Proxy, io.quarkus.oidc.common.runtime.config.OidcCommonConfig.TlsNested classes/interfaces inherited from interface io.quarkus.oidc.runtime.OidcTenantConfig
OidcTenantConfig.PushedAuthorizationRequest -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.use theallowTokenIntrospectionCache()methodbooleanDeprecated, for removal: This API element is subject to removal in a future version.use theallowUserInfoCache()methodDeprecated, for removal: This API element is subject to removal in a future version.useapplicationType()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theauthentication()methodDeprecated, for removal: This API element is subject to removal in a future version.useauthorizationPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thecacheUserInfoInIdtoken()methodDeprecated, for removal: This API element is subject to removal in a future version.usecertificateChain()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thecodeGrant()methodDeprecated, for removal: This API element is subject to removal in a future version.useendSessionPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.useintrospectionCredentials()method insteadDeprecated, for removal: This API element is subject to removal in a future version.useintrospectionPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thejwks()method insteadDeprecated, for removal: This API element is subject to removal in a future version.usejwksPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thelogout()methodDeprecated, for removal: This API element is subject to removal in a future version.use theprovider()method insteadDeprecated, for removal: This API element is subject to removal in a future version.usepublicKey()method instead(package private) OidcTenantConfig.ResourceMetadataDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.use theroles()method insteadbooleanDeprecated, for removal: This API element is subject to removal in a future version.usetenantEnabled()method insteadDeprecated, for removal: This API element is subject to removal in a future version.usetenantId()method insteadDeprecated, for removal: This API element is subject to removal in a future version.usetenantPaths()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thetoken()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thetokenStateManager()methodDeprecated, for removal: This API element is subject to removal in a future version.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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Usebuilder()to create this config -
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 and the provided base URL.static OidcTenantConfigBuilderbuilder()CreatesOidcTenantConfigBuilderbuilder populated with documented default values.static OidcTenantConfigBuilderbuilder(OidcTenantConfig mapping) CreatesOidcTenantConfigBuilderbuilder from the existingOidcTenantConfigAllow 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, for removal: This API element is subject to removal in a future version.use theapplicationType()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theauthentication()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theauthorizationPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thecertificateChain()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thecodeGrant()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theendSessionPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theintrospectionCredentials()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theintrospectionPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thejwksPath()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thelogout()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use theprovider()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thepublicKey()method insteadgetRoles()Deprecated, for removal: This API element is subject to removal in a future version.use theroles()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thetenantId()method insteadgetToken()Deprecated, for removal: This API element is subject to removal in a future version.use thetoken()method insteadDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.use theallowTokenIntrospectionCache()method insteadbooleanDeprecated, for removal: This API element is subject to removal in a future version.use theallowUserInfoCache()method insteadDeprecated, for removal: This API element is subject to removal in a future version.use thecacheUserInfoInIdtoken()method insteadbooleanDeprecated, for removal: This API element is subject to removal in a future version.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 and the provided client registration path.Configuration to provide protected resource metadata.roles()Configuration to find and parse custom claims which contain roles.voidsetAllowTokenIntrospectionCache(boolean allowTokenIntrospectionCache) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetAllowUserInfoCache(boolean allowUserInfoCache) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidDeprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetAuthentication(OidcTenantConfig.Authentication authentication) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetAuthorizationPath(String authorizationPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetCacheUserInfoInIdtoken(boolean cacheUserInfoInIdtoken) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetCertificateChain(OidcTenantConfig.CertificateChain certificateChain) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetCodeGrant(OidcTenantConfig.CodeGrant codeGrant) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetEndSessionPath(String endSessionPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetIntrospectionCredentials(OidcTenantConfig.IntrospectionCredentials introspectionCredentials) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetIntrospectionPath(String introspectionPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetJwksPath(String jwksPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetLogout(OidcTenantConfig.Logout logout) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetProvider(OidcTenantConfig.Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetPublicKey(String publicKey) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetRoles(OidcTenantConfig.Roles roles) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetTenantEnabled(boolean enabled) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetTenantId(String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetToken(OidcTenantConfig.Token token) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuildervoidsetUserInfoPath(String userInfoPath) Deprecated, for removal: This API element is subject to removal in a future version.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 and the provided token path.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, for removal: This API element is subject to removal in a future version.usetenantId()method insteadA unique tenant identifier. It can be set byTenantConfigResolverproviders, which resolve the tenant configuration dynamically. -
tenantEnabled
Deprecated, for removal: This API element is subject to removal in a future version.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(since="3.18", forRemoval=true) public Optional<OidcTenantConfig.ApplicationType> applicationTypeDeprecated, for removal: This API element is subject to removal in a future version.useapplicationType()method insteadThe application type, which can be one of the followingOidcTenantConfig.ApplicationTypevalues. -
authorizationPath
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.usepublicKey()method insteadThe public key for the local JWT token verification. OIDC server connection is not created when this property is set. -
introspectionCredentials
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.IntrospectionCredentials introspectionCredentialsDeprecated, for removal: This API element is subject to removal in a future version.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 withfor its introspection endpoint.invalid reference
OidcCommonConfig#credentials -
roles
Deprecated, for removal: This API element is subject to removal in a future version.use theroles()method insteadConfiguration to find and parse a custom claim containing the roles information. -
token
Deprecated, for removal: This API element is subject to removal in a future version.use thetoken()method insteadConfiguration how to validate the token claims. -
logout
Deprecated, for removal: This API element is subject to removal in a future version.use thelogout()methodRP Initiated, BackChannel and FrontChannel Logout configuration -
certificateChain
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.CertificateChain certificateChainDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.use theauthentication()methodDifferent options to configure authorization requests -
codeGrant
Deprecated, for removal: This API element is subject to removal in a future version.use thecodeGrant()methodAuthorization code grant configuration -
tokenStateManager
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.TokenStateManager tokenStateManagerDeprecated, for removal: This API element is subject to removal in a future version.use thetokenStateManager()methodDefault token state manager configuration -
allowTokenIntrospectionCache
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.use thejwks()method insteadConfiguration for controlling how JsonWebKeySet containing verification keys should be acquired and managed. -
resourceMetadata
Deprecated, for removal: This API element is subject to removal in a future version. -
provider
Deprecated, for removal: This API element is subject to removal in a future version.use theprovider()method insteadWell known OpenId Connect provider identifier
-
-
Constructor Details
-
OidcTenantConfig
Deprecated, for removal: This API element is subject to removal in a future version.Usebuilder()to create this config
-
-
Method Details
-
getAuthorizationPath
Deprecated, for removal: This API element is subject to removal in a future version.use theauthorizationPath()method instead -
setAuthorizationPath
@Deprecated(since="3.18", forRemoval=true) public void setAuthorizationPath(String authorizationPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getUserInfoPath
Deprecated, for removal: This API element is subject to removal in a future version.use theuserInfoPath()method instead -
setUserInfoPath
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getIntrospectionPath
Deprecated, for removal: This API element is subject to removal in a future version.use theintrospectionPath()method instead -
setIntrospectionPath
@Deprecated(since="3.18", forRemoval=true) public void setIntrospectionPath(String introspectionPath) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getJwksPath
Deprecated, for removal: This API element is subject to removal in a future version.use thejwksPath()method instead -
setJwksPath
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getEndSessionPath
Deprecated, for removal: This API element is subject to removal in a future version.use theendSessionPath()method instead -
setEndSessionPath
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getPublicKey
Deprecated, for removal: This API element is subject to removal in a future version.use thepublicKey()method instead -
setPublicKey
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getRoles
Deprecated, for removal: This API element is subject to removal in a future version.use theroles()method instead -
setRoles
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getToken
Deprecated, for removal: This API element is subject to removal in a future version.use thetoken()method instead -
setToken
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getAuthentication
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.Authentication getAuthentication()Deprecated, for removal: This API element is subject to removal in a future version.use theauthentication()method instead -
setAuthentication
@Deprecated(since="3.18", forRemoval=true) public void setAuthentication(OidcTenantConfig.Authentication authentication) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getTenantId
Deprecated, for removal: This API element is subject to removal in a future version.use thetenantId()method instead -
setTenantId
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
isTenantEnabled
Deprecated, for removal: This API element is subject to removal in a future version.use thetenantEnabled()method instead -
setTenantEnabled
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
setLogout
Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getLogout
Deprecated, for removal: This API element is subject to removal in a future version.use thelogout()method instead -
getProvider
Deprecated, for removal: This API element is subject to removal in a future version.use theprovider()method instead -
setProvider
@Deprecated(since="3.18", forRemoval=true) public void setProvider(OidcTenantConfig.Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getApplicationType
@Deprecated(since="3.18", forRemoval=true) public Optional<OidcTenantConfig.ApplicationType> getApplicationType()Deprecated, for removal: This API element is subject to removal in a future version.use theapplicationType()method instead -
setApplicationType
@Deprecated(since="3.18", forRemoval=true) public void setApplicationType(OidcTenantConfig.ApplicationType type) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
isAllowTokenIntrospectionCache
Deprecated, for removal: This API element is subject to removal in a future version.use theallowTokenIntrospectionCache()method instead -
setAllowTokenIntrospectionCache
@Deprecated(since="3.18", forRemoval=true) public void setAllowTokenIntrospectionCache(boolean allowTokenIntrospectionCache) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
isAllowUserInfoCache
Deprecated, for removal: This API element is subject to removal in a future version.use theallowUserInfoCache()method instead -
setAllowUserInfoCache
@Deprecated(since="3.18", forRemoval=true) public void setAllowUserInfoCache(boolean allowUserInfoCache) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
isCacheUserInfoInIdtoken
Deprecated, for removal: This API element is subject to removal in a future version.use thecacheUserInfoInIdtoken()method instead -
setCacheUserInfoInIdtoken
@Deprecated(since="3.18", forRemoval=true) public void setCacheUserInfoInIdtoken(boolean cacheUserInfoInIdtoken) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getIntrospectionCredentials
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.IntrospectionCredentials getIntrospectionCredentials()Deprecated, for removal: This API element is subject to removal in a future version.use theintrospectionCredentials()method instead -
setIntrospectionCredentials
@Deprecated(since="3.18", forRemoval=true) public void setIntrospectionCredentials(OidcTenantConfig.IntrospectionCredentials introspectionCredentials) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getCodeGrant
Deprecated, for removal: This API element is subject to removal in a future version.use thecodeGrant()method instead -
setCodeGrant
@Deprecated(since="3.18", forRemoval=true) public void setCodeGrant(OidcTenantConfig.CodeGrant codeGrant) Deprecated, for removal: This API element is subject to removal in a future version.build this config with theOidcTenantConfigBuilderbuilder -
getCertificateChain
@Deprecated(since="3.18", forRemoval=true) public OidcTenantConfig.CertificateChain getCertificateChain()Deprecated, for removal: This API element is subject to removal in a future version.use thecertificateChain()method instead -
setCertificateChain
@Deprecated(since="3.18", forRemoval=true) public void setCertificateChain(OidcTenantConfig.CertificateChain certificateChain) Deprecated, for removal: This API element is subject to removal in a future version.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 withfor its introspection endpoint.invalid reference
OidcCommonConfig#credentials- 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
-
resourceMetadata
Description copied from interface:OidcTenantConfigConfiguration to provide protected resource metadata.- Specified by:
resourceMetadatain 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:OidcTenantConfigToken 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 from the existingOidcTenantConfig- Parameters:
mapping- existing io.quarkus.oidc.runtime.OidcTenantConfig
-
of
CreatesOidcTenantConfigfrom themapping. This method is more efficient than thebuilder()method if you don't need to modify themapping.- Parameters:
mapping- existing io.quarkus.oidc.runtime.OidcTenantConfig- Returns:
- OidcTenantConfig
-
authServerUrl
CreatesOidcTenantConfigBuilderbuilder populated with documented default values and the provided base URL.- Parameters:
authServerUrl-OidcCommonConfig.authServerUrl()- Returns:
- OidcTenantConfigBuilder builder
-
registrationPath
CreatesOidcTenantConfigBuilderbuilder populated with documented default values and the provided client registration path.- Parameters:
registrationPath-OidcCommonConfig.registrationPath()- Returns:
- OidcTenantConfigBuilder builder
-
tokenPath
CreatesOidcTenantConfigBuilderbuilder populated with documented default values and the provided token path.- Parameters:
tokenPath-OidcClientCommonConfig.tokenPath()- Returns:
- OidcTenantConfigBuilder builder
-
AuthenticationConfigBuilderbuilder