OpenID Connect (OIDC) configuration properties
As a Quarkus developer, you configure the Quarkus OpenID Connect (OIDC)
extension by setting the following properties in the
src/main/resources/application.properties
file.
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Type |
Default |
|
---|---|---|
If DevServices has been explicitly enabled or disabled. When DevServices is enabled Quarkus will attempt to automatically configure and start Keycloak when running in Dev or Test mode and when Docker is running. Environment variable: Show more |
boolean |
|
The container image name to use, for container-based DevServices providers. Image with a Quarkus based distribution is used by default. Image with a WildFly based distribution can be selected instead, for example: Note Keycloak Quarkus and Keycloak WildFly images are initialized differently. By default, Dev Services for Keycloak will assume it is a Keycloak Quarkus image if the image version does not end with a '-legacy' string. Set 'quarkus.keycloak.devservices.keycloak-x-image' to override this check. Environment variable: Show more |
string |
|
If Keycloak-X image is used. By default, Dev Services for Keycloak will assume a Keycloak-X image is used if the image name contains a 'keycloak-x' string. Set 'quarkus.keycloak.devservices.keycloak-x-image' to override this check which may be necessary if you build custom Keycloak-X or Keycloak images. You do not need to set this property if the default check works. Environment variable: Show more |
boolean |
|
Indicates if the Keycloak container managed by Quarkus Dev Services is shared. When shared, Quarkus looks for running containers using label-based service discovery. If a matching container is found, it is used, and so a second one is not started. Otherwise, Dev Services for Keycloak starts a new container. The discovery uses the Container sharing is only used in dev mode. Environment variable: Show more |
boolean |
|
The value of the Container sharing is only used in dev mode. Environment variable: Show more |
string |
|
The comma-separated list of class or file system paths to Keycloak realm files which will be used to initialize Keycloak. The first value in this list will be used to initialize default tenant connection properties. Environment variable: Show more |
list of string |
|
The JAVA_OPTS passed to the keycloak JVM Environment variable: Show more |
string |
|
Show Keycloak log messages with a "Keycloak:" prefix. Environment variable: Show more |
boolean |
|
Keycloak start command. Use this property to experiment with Keycloak start options, see Environment variable: Show more |
string |
|
The Keycloak realm name. This property will be used to create the realm if the realm file pointed to by the Environment variable: Show more |
string |
|
Indicates if the Keycloak realm has to be created when the realm file pointed to by the Environment variable: Show more |
boolean |
|
Optional fixed port the dev service will listen to. If not defined, the port will be chosen randomly. Environment variable: Show more |
int |
|
The Keycloak users map containing the username and password pairs. If this map is empty then two users, 'alice' and 'bob' with the passwords matching their names will be created. This property will be used to create the Keycloak users if the realm file pointed to by the Environment variable: Show more |
|
|
The Keycloak user roles. If this map is empty then a user named 'alice' will get 'admin' and 'user' roles and all other users will get a 'user' role. This property will be used to create the Keycloak roles if the realm file pointed to by the Environment variable: Show more |
|
|
Environment variables that are passed to the container. Environment variable: Show more |
|
|
If the OIDC extension is enabled. Environment variable: Show more |
boolean |
|
Grant type which will be used to acquire a token to test the OIDC 'service' applications Environment variable: Show more |
|
|
The WebClient timeout. Use this property to configure how long an HTTP client used by Dev UI handlers will wait for a response when requesting tokens from OpenId Connect Provider and sending them to the service endpoint. This timeout is also used by the OIDC dev service admin client. Environment variable: Show more |
|
|
Enable the registration of the Default TokenIntrospection and UserInfo Cache implementation bean. Note: This only enables the default implementation. It requires configuration to be activated. See Environment variable: Show more |
boolean |
|
The base URL of the OpenID Connect (OIDC) server, for example, Environment variable: Show more |
string |
|
Enables OIDC discovery. If the discovery is disabled then the OIDC endpoint URLs must be configured individually. Environment variable: Show more |
boolean |
|
Relative path or absolute URL of the OIDC token endpoint which issues access and refresh tokens. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC token revocation endpoint. Environment variable: Show more |
string |
|
The client-id of the application. Each application has a client-id that is used to identify the application Environment variable: Show more |
string |
|
The maximum amount of time connecting to the currently unavailable OIDC server will be attempted for. The number of times the connection request will be repeated is calculated by dividing the value of this property by 2. For example, setting it to Environment variable: Show more |
||
The number of times an attempt to re-establish an already available connection will be repeated. Note this property is different from the Environment variable: Show more |
int |
|
The amount of time after which the current OIDC connection request will time out. Environment variable: Show more |
|
|
The maximum size of the connection pool used by the WebClient Environment variable: Show more |
int |
|
Client secret which is used for a Environment variable: Show more |
string |
|
The client secret value - it will be ignored if 'credentials.secret' is set Environment variable: Show more |
string |
|
The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: Show more |
string |
|
The CredentialsProvider client secret key Environment variable: Show more |
string |
|
Authentication method. Environment variable: Show more |
|
|
If provided, indicates that JWT is signed using a secret key Environment variable: Show more |
string |
|
The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: Show more |
string |
|
The CredentialsProvider client secret key Environment variable: Show more |
string |
|
If provided, indicates that JWT is signed using a private key in PEM or JWK format. You can use the Environment variable: Show more |
string |
|
If provided, indicates that JWT is signed using a private key from a keystore Environment variable: Show more |
string |
|
A parameter to specify the password of the keystore file. Environment variable: Show more |
string |
|
The private key id/alias Environment variable: Show more |
string |
|
The private key password Environment variable: Show more |
string |
|
JWT audience ('aud') claim value. By default, the audience is set to the address of the OpenId Connect Provider’s token endpoint. Environment variable: Show more |
string |
|
Key identifier of the signing key added as a JWT 'kid' header Environment variable: Show more |
string |
|
Issuer of the signing key added as a JWT Environment variable: Show more |
string |
|
Subject of the signing key added as a JWT 'sub' claim (default: client id) Environment variable: Show more |
string |
|
Signature algorithm, also used for the Environment variable: Show more |
string |
|
JWT life-span in seconds. It will be added to the time it was issued at to calculate the expiration time. Environment variable: Show more |
int |
|
The host (name or IP address) of the Proxy. Environment variable: Show more |
string |
|
The port number of the Proxy. Default value is 80. Environment variable: Show more |
int |
|
The username, if Proxy needs authentication. Environment variable: Show more |
string |
|
The password, if Proxy needs authentication. Environment variable: Show more |
string |
|
Certificate validation and hostname verification, which can be one of the following Environment variable: Show more |
|
|
An optional keystore which holds the certificate information instead of specifying separate files. Environment variable: Show more |
path |
|
An optional parameter to specify type of the keystore file. If not given, the type is automatically detected based on the file name. Environment variable: Show more |
string |
|
An optional parameter to specify a provider of the keystore file. If not given, the provider is automatically detected based on the keystore file type. Environment variable: Show more |
string |
|
A parameter to specify the password of the keystore file. If not given, the default ("password") is used. Environment variable: Show more |
string |
|
An optional parameter to select a specific key in the keystore. When SNI is disabled, if the keystore contains multiple keys and no alias is specified, the behavior is undefined. Environment variable: Show more |
string |
|
An optional parameter to define the password for the key, in case it’s different from Environment variable: Show more |
string |
|
An optional truststore which holds the certificate information of the certificates to trust Environment variable: Show more |
path |
|
A parameter to specify the password of the truststore file. Environment variable: Show more |
string |
|
A parameter to specify the alias of the truststore certificate. Environment variable: Show more |
string |
|
An optional parameter to specify type of the truststore file. If not given, the type is automatically detected based on the file name. Environment variable: Show more |
string |
|
An optional parameter to specify a provider of the truststore file. If not given, the provider is automatically detected based on the truststore file type. Environment variable: Show more |
string |
|
A unique tenant identifier. It must be set by Environment variable: Show more |
string |
|
If this tenant configuration is enabled. Note that the default tenant will be disabled if it is not configured but either Environment variable: Show more |
boolean |
|
The application type, which can be one of the following Environment variable: Show more |
|
|
Relative path or absolute URL of the OIDC authorization endpoint which authenticates the users. This property must be set for the 'web-app' applications if OIDC discovery is disabled. This property will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC UserInfo endpoint. This property must only be set for the 'web-app' applications if OIDC discovery is disabled and Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JWT tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens have to be verified or 2) JWT tokens have to be verified while the cached JWK verification set with no matching JWK is being refreshed. This property will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC 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 will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative 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 will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Public key for the local JWT token verification. OIDC server connection will not be created when this property is set. Environment variable: Show more |
string |
|
Name Environment variable: Show more |
string |
|
Secret Environment variable: Show more |
string |
|
Include OpenId Connect Client ID configured with 'quarkus.oidc.client-id' Environment variable: Show more |
boolean |
|
List of paths to claims containing an array of groups. Each path starts from the top level JWT JSON object and can contain multiple segments where each segment represents a JSON object name only, example: "realm/groups". Use double quotes with the namespace qualified claim names. This property can be used if a token has no 'groups' claim but has the groups set in one or more different claims. Environment variable: Show more |
list of string |
|
Separator for splitting a string which may contain multiple group values. It will only be used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space will be used by default because the standard 'scope' claim may contain a space separated sequence. Environment variable: Show more |
string |
|
Source of the principal roles. Environment variable: Show more |
|
|
Expected issuer Environment variable: Show more |
string |
|
Expected audience 'aud' claim value which may be a string or an array of strings. Note the audience claim will be verified for ID tokens by default. ID token audience must be equal to the value of Environment variable: Show more |
list of string |
|
Require that the token includes a Environment variable: Show more |
boolean |
|
Expected token type Environment variable: Show more |
string |
|
Life span grace period in seconds. When checking token expiry, current time is allowed to be later than token expiration time by at most the configured number of seconds. When checking token issuance, current time is allowed to be sooner than token issue time by at most the configured number of seconds. Environment variable: Show more |
int |
|
Token age. It allows for the number of seconds to be specified that must not elapse since the Environment variable: Show more |
||
Name of the claim which contains a principal name. By default, the Environment variable: Show more |
string |
|
Refresh expired authorization code flow ID or access tokens. If this property is enabled then a refresh token request will be performed if the authorization code ID or access token has expired and, if successful, the local session will be updated with the new set of tokens. Otherwise, the local session will be invalidated and the user redirected to the OpenID Provider to re-authenticate. In this case the user may not be challenged again if the OIDC provider session is still active. For this option be effective the Environment variable: Show more |
boolean |
|
Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking if the authorization code ID or access token should be refreshed. If the sum is greater than the authorization code ID or access token’s expiration time then a refresh is going to happen. Environment variable: Show more |
||
Forced JWK set refresh interval in minutes. Environment variable: Show more |
|
|
Custom HTTP header that contains a bearer token. This option is valid only when the application is of type Environment variable: Show more |
string |
|
HTTP Authorization header scheme. Environment variable: Show more |
string |
|
Required signature algorithm. OIDC providers support many signature algorithms but if necessary you can restrict Quarkus application to accept tokens signed only using an algorithm configured with this property. Environment variable: Show more |
|
|
Decryption key location. JWT tokens can be inner-signed and encrypted by OpenId Connect providers. However, it is not always possible to remotely introspect such tokens because the providers may not control the private decryption keys. In such cases set this property to point to the file containing the decryption private key in PEM or JSON Web Key (JWK) format. Note that if a Environment variable: Show more |
string |
|
Allow the remote introspection of JWT tokens when no matching JWK key is available. Note this property is set to Environment variable: Show more |
boolean |
|
Require that JWT tokens are only introspected remotely. Environment variable: Show more |
boolean |
|
Allow the remote introspection of the opaque tokens. Set this property to 'false' if only JWT tokens are expected. Environment variable: Show more |
boolean |
|
Token customizer name. Allows to select a tenant specific token customizer as a named bean. Prefer using Environment variable: Show more |
string |
|
Indirectly verify that the opaque (binary) access token is valid by using it to request UserInfo. Opaque access token is considered valid if the provider accepted this token and returned a valid UserInfo. You should only enable this option if the opaque access tokens have to be accepted but OpenId Connect provider does not have a token introspection endpoint. This property will have no effect when JWT tokens have to be verified. Environment variable: Show more |
boolean |
|
The relative path of the logout endpoint at the application. If provided, the application is able to initiate the logout through this endpoint in conformance with the OpenID Connect RP-Initiated Logout specification. Environment variable: Show more |
string |
|
Relative path of the application endpoint where the user should be redirected to after logging out from the OpenID Connect Provider. This endpoint URI must be properly registered at the OpenID Connect Provider as a valid redirect URI. Environment variable: Show more |
string |
|
Name of the post logout URI parameter which will be added as a query parameter to the logout redirect URI. Environment variable: Show more |
string |
|
The relative path of the Back-Channel Logout endpoint at the application. Environment variable: Show more |
string |
|
Maximum number of logout tokens that can be cached before they are matched against ID tokens stored in session cookies. Environment variable: Show more |
int |
|
Number of minutes a logout token can be cached for. Environment variable: Show more |
|
|
Token cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: Show more |
||
Logout token claim whose value will be used as a key for caching the tokens. Only Environment variable: Show more |
string |
|
The relative path of the Front-Channel Logout endpoint at the application. Environment variable: Show more |
string |
|
Authorization code flow response mode Environment variable: Show more |
|
|
Relative path for calculating a Environment variable: Show more |
string |
|
If this property is set to Environment variable: Show more |
boolean |
|
Remove the query parameters such as 'code' and 'state' set by the OIDC server on the redirect URI after the user has authenticated by redirecting a user to the same URI but without the query parameters. Environment variable: Show more |
boolean |
|
Relative path to the public endpoint which will process the error response from the OIDC authorization endpoint. If the user authentication has failed then the OIDC provider will return an Environment variable: Show more |
string |
|
Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow. ID token is always verified on every user request as the primary token which is used to represent the principal and extract the roles. Access token is not verified by default since it is meant to be propagated to the downstream services. The verification of the access token should be enabled if it is injected as a JWT token. Access tokens obtained as part of the code flow will always be verified if Environment variable: Show more |
boolean |
|
Force 'https' as the Environment variable: Show more |
boolean |
|
List of scopes Environment variable: Show more |
list of string |
|
Require that ID token includes a Environment variable: Show more |
boolean |
|
Add the Environment variable: Show more |
boolean |
|
Request URL query parameters which, if present, will be added to the authentication redirect URI. Environment variable: Show more |
list of string |
|
If enabled the state, session and post logout cookies will have their 'secure' parameter set to Environment variable: Show more |
boolean |
|
Cookie name suffix. For example, a session cookie name for the default OIDC tenant is Environment variable: Show more |
string |
|
Cookie path parameter value which, if set, will be used to set a path parameter for the session, state and post logout cookies. The Environment variable: Show more |
string |
|
Cookie path header parameter value which, if set, identifies the incoming HTTP header whose value will be used to set a path parameter for the session, state and post logout cookies. If the header is missing then the Environment variable: Show more |
string |
|
Cookie domain parameter value which, if set, will be used for the session, state and post logout cookies. Environment variable: Show more |
string |
|
SameSite attribute for the session cookie. Environment variable: Show more |
|
|
If a state cookie is present then a Environment variable: Show more |
boolean |
|
Fail with the HTTP 401 error if the state cookie is present but no state query parameter is present. When either multiple authentications are disabled or the redirect URL matches the original request URL, the stale state cookie might remain in the browser cache from the earlier failed redirect to an OpenId Connect provider and be visible during the current request. For example, if Single-page application (SPA) uses XHR to handle redirects to the provider which does not support CORS for its authorization endpoint, the browser will block it and the state cookie created by Quarkus will remain in the browser cache. Quarkus will report an authentication failure when it will detect such an old state cookie but find no matching state query parameter. Reporting HTTP 401 error is usually the right thing to do in such cases, it will minimize a risk of the browser redirect loop but also can identify problems in the way SPA or Quarkus application manage redirects. For example, enabling However, setting this property to Environment variable: Show more |
boolean |
|
If this property is set to Environment variable: Show more |
boolean |
|
Session age extension in minutes. The user session age property is set to the value of the ID token life-span by default and the user will be redirected to the OIDC provider to re-authenticate once the session has expired. If this property is set to a non-zero value, then the expired ID token can be refreshed before the session has expired. This property will be ignored if the Environment variable: Show more |
|
|
If this property is set to If this property is set to 'false' then a status code of '499' will be returned to allow SPA to handle the redirect manually if a request header identifying current request as a JavaScript request is found. 'X-Requested-With' request header with its value set to either Environment variable: Show more |
boolean |
|
Requires that ID token is available when the authorization code flow completes. Disable this property only when you need to use the authorization code flow with OAuth2 providers which do not return ID token - an internal IdToken will be generated in such cases. Environment variable: Show more |
boolean |
|
Internal ID token lifespan. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Environment variable: Show more |
|
|
Requires that a Proof Key for Code Exchange (PKCE) is used. Environment variable: Show more |
boolean |
|
Secret which will be used to encrypt Proof Key for Code Exchange (PKCE) code verifier and/or nonce in the code flow state. This secret should be at least 32 characters long. If this secret is not set, the client secret configured with either The secret will be auto-generated if it remains uninitialized after checking all of these properties. Error will be reported if the secret length is less than 16 characters. Environment variable: Show more |
string |
|
Default TokenStateManager strategy. Environment variable: Show more |
|
|
Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size Environment variable: Show more |
boolean |
|
Mandates that the Default TokenStateManager will encrypt the session cookie that stores the tokens. Environment variable: Show more |
boolean |
|
Secret which will be used by the Default TokenStateManager to encrypt the session cookie storing the tokens when If this secret is not set, the client secret configured with either The length of the secret which will be used to encrypt the tokens should be at least 32 characters long. Warning will be logged if the secret length is less than 16 characters. Environment variable: Show more |
string |
|
Allow 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, see Environment variable: Show more |
boolean |
|
Allow 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, see Environment variable: Show more |
boolean |
|
Allow 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. Environment variable: Show more |
boolean |
|
If JWK verification keys should be fetched at the moment a connection to the OIDC provider is initialized. Disabling this property will delay the key acquisition until the moment the current token has to be verified. Typically it can only be necessary if the token or other telated request properties provide an additional context which is required to resolve the keys correctly. Environment variable: Show more |
boolean |
|
Maximum number of JWK keys that can be cached. This property will be ignored if the Environment variable: Show more |
int |
|
Number of minutes a JWK key can be cached for. This property will be ignored if the Environment variable: Show more |
|
|
Cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. This property will be ignored if the Environment variable: Show more |
||
Well known OpenId Connect provider identifier Environment variable: Show more |
|
|
Maximum number of cache entries. Set it to a positive value if the cache has to be enabled. Environment variable: Show more |
int |
|
Maximum amount of time a given cache entry is valid for. Environment variable: Show more |
|
|
Clean up timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: Show more |
||
Grant options Environment variable: Show more |
|
|
Additional claims. Environment variable: Show more |
|
|
A map of required claims and their expected values. For example, Environment variable: Show more |
|
|
Additional properties which will be added as the query parameters to the logout redirect URI. Environment variable: Show more |
|
|
Additional properties which will be added as the query parameters to the authentication redirect URI. Environment variable: Show more |
|
|
Additional parameters, in addition to the required Environment variable: Show more |
|
|
Custom HTTP headers which have to be sent to complete the authorization code grant request. Environment variable: Show more |
|
|
Type |
Default |
|
The base URL of the OpenID Connect (OIDC) server, for example, Environment variable: Show more |
string |
|
Enables OIDC discovery. If the discovery is disabled then the OIDC endpoint URLs must be configured individually. Environment variable: Show more |
boolean |
|
Relative path or absolute URL of the OIDC token endpoint which issues access and refresh tokens. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC token revocation endpoint. Environment variable: Show more |
string |
|
The client-id of the application. Each application has a client-id that is used to identify the application Environment variable: Show more |
string |
|
The maximum amount of time connecting to the currently unavailable OIDC server will be attempted for. The number of times the connection request will be repeated is calculated by dividing the value of this property by 2. For example, setting it to Environment variable: Show more |
||
The number of times an attempt to re-establish an already available connection will be repeated. Note this property is different from the Environment variable: Show more |
int |
|
The amount of time after which the current OIDC connection request will time out. Environment variable: Show more |
|
|
The maximum size of the connection pool used by the WebClient Environment variable: Show more |
int |
|
Client secret which is used for a Environment variable: Show more |
string |
|
The client secret value - it will be ignored if 'credentials.secret' is set Environment variable: Show more |
string |
|
The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: Show more |
string |
|
The CredentialsProvider client secret key Environment variable: Show more |
string |
|
Authentication method. Environment variable: Show more |
|
|
If provided, indicates that JWT is signed using a secret key Environment variable: Show more |
string |
|
The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: Show more |
string |
|
The CredentialsProvider client secret key Environment variable: Show more |
string |
|
If provided, indicates that JWT is signed using a private key in PEM or JWK format. You can use the Environment variable: Show more |
string |
|
If provided, indicates that JWT is signed using a private key from a keystore Environment variable: Show more |
string |
|
A parameter to specify the password of the keystore file. Environment variable: Show more |
string |
|
The private key id/alias Environment variable: Show more |
string |
|
The private key password Environment variable: Show more |
string |
|
JWT audience ('aud') claim value. By default, the audience is set to the address of the OpenId Connect Provider’s token endpoint. Environment variable: Show more |
string |
|
Key identifier of the signing key added as a JWT 'kid' header Environment variable: Show more |
string |
|
Issuer of the signing key added as a JWT Environment variable: Show more |
string |
|
Subject of the signing key added as a JWT 'sub' claim (default: client id) Environment variable: Show more |
string |
|
Additional claims. Environment variable: Show more |
|
|
Signature algorithm, also used for the Environment variable: Show more |
string |
|
JWT life-span in seconds. It will be added to the time it was issued at to calculate the expiration time. Environment variable: Show more |
int |
|
The host (name or IP address) of the Proxy. Environment variable: Show more |
string |
|
The port number of the Proxy. Default value is 80. Environment variable: Show more |
int |
|
The username, if Proxy needs authentication. Environment variable: Show more |
string |
|
The password, if Proxy needs authentication. Environment variable: Show more |
string |
|
Certificate validation and hostname verification, which can be one of the following Environment variable: Show more |
|
|
An optional keystore which holds the certificate information instead of specifying separate files. Environment variable: Show more |
path |
|
An optional parameter to specify type of the keystore file. If not given, the type is automatically detected based on the file name. Environment variable: Show more |
string |
|
An optional parameter to specify a provider of the keystore file. If not given, the provider is automatically detected based on the keystore file type. Environment variable: Show more |
string |
|
A parameter to specify the password of the keystore file. If not given, the default ("password") is used. Environment variable: Show more |
string |
|
An optional parameter to select a specific key in the keystore. When SNI is disabled, if the keystore contains multiple keys and no alias is specified, the behavior is undefined. Environment variable: Show more |
string |
|
An optional parameter to define the password for the key, in case it’s different from Environment variable: Show more |
string |
|
An optional truststore which holds the certificate information of the certificates to trust Environment variable: Show more |
path |
|
A parameter to specify the password of the truststore file. Environment variable: Show more |
string |
|
A parameter to specify the alias of the truststore certificate. Environment variable: Show more |
string |
|
An optional parameter to specify type of the truststore file. If not given, the type is automatically detected based on the file name. Environment variable: Show more |
string |
|
An optional parameter to specify a provider of the truststore file. If not given, the provider is automatically detected based on the truststore file type. Environment variable: Show more |
string |
|
A unique tenant identifier. It must be set by Environment variable: Show more |
string |
|
If this tenant configuration is enabled. Note that the default tenant will be disabled if it is not configured but either Environment variable: Show more |
boolean |
|
The application type, which can be one of the following Environment variable: Show more |
|
|
Relative path or absolute URL of the OIDC authorization endpoint which authenticates the users. This property must be set for the 'web-app' applications if OIDC discovery is disabled. This property will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC UserInfo endpoint. This property must only be set for the 'web-app' applications if OIDC discovery is disabled and Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JWT tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens have to be verified or 2) JWT tokens have to be verified while the cached JWK verification set with no matching JWK is being refreshed. This property will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative path or absolute URL of the OIDC 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 will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Relative 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 will be ignored if the discovery is enabled. Environment variable: Show more |
string |
|
Public key for the local JWT token verification. OIDC server connection will not be created when this property is set. Environment variable: Show more |
string |
|
Name Environment variable: Show more |
string |
|
Secret Environment variable: Show more |
string |
|
Include OpenId Connect Client ID configured with 'quarkus.oidc.client-id' Environment variable: Show more |
boolean |
|
List of paths to claims containing an array of groups. Each path starts from the top level JWT JSON object and can contain multiple segments where each segment represents a JSON object name only, example: "realm/groups". Use double quotes with the namespace qualified claim names. This property can be used if a token has no 'groups' claim but has the groups set in one or more different claims. Environment variable: Show more |
list of string |
|
Separator for splitting a string which may contain multiple group values. It will only be used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space will be used by default because the standard 'scope' claim may contain a space separated sequence. Environment variable: Show more |
string |
|
Source of the principal roles. Environment variable: Show more |
|
|
Expected issuer Environment variable: Show more |
string |
|
Expected audience 'aud' claim value which may be a string or an array of strings. Note the audience claim will be verified for ID tokens by default. ID token audience must be equal to the value of Environment variable: Show more |
list of string |
|
Require that the token includes a Environment variable: Show more |
boolean |
|
A map of required claims and their expected values. For example, Environment variable: Show more |
|
|
Expected token type Environment variable: Show more |
string |
|
Life span grace period in seconds. When checking token expiry, current time is allowed to be later than token expiration time by at most the configured number of seconds. When checking token issuance, current time is allowed to be sooner than token issue time by at most the configured number of seconds. Environment variable: Show more |
int |
|
Token age. It allows for the number of seconds to be specified that must not elapse since the Environment variable: Show more |
||
Name of the claim which contains a principal name. By default, the Environment variable: Show more |
string |
|
Refresh expired authorization code flow ID or access tokens. If this property is enabled then a refresh token request will be performed if the authorization code ID or access token has expired and, if successful, the local session will be updated with the new set of tokens. Otherwise, the local session will be invalidated and the user redirected to the OpenID Provider to re-authenticate. In this case the user may not be challenged again if the OIDC provider session is still active. For this option be effective the Environment variable: Show more |
boolean |
|
Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking if the authorization code ID or access token should be refreshed. If the sum is greater than the authorization code ID or access token’s expiration time then a refresh is going to happen. Environment variable: Show more |
||
Forced JWK set refresh interval in minutes. Environment variable: Show more |
|
|
Custom HTTP header that contains a bearer token. This option is valid only when the application is of type Environment variable: Show more |
string |
|
HTTP Authorization header scheme. Environment variable: Show more |
string |
|
Required signature algorithm. OIDC providers support many signature algorithms but if necessary you can restrict Quarkus application to accept tokens signed only using an algorithm configured with this property. Environment variable: Show more |
|
|
Decryption key location. JWT tokens can be inner-signed and encrypted by OpenId Connect providers. However, it is not always possible to remotely introspect such tokens because the providers may not control the private decryption keys. In such cases set this property to point to the file containing the decryption private key in PEM or JSON Web Key (JWK) format. Note that if a Environment variable: Show more |
string |
|
Allow the remote introspection of JWT tokens when no matching JWK key is available. Note this property is set to Environment variable: Show more |
boolean |
|
Require that JWT tokens are only introspected remotely. Environment variable: Show more |
boolean |
|
Allow the remote introspection of the opaque tokens. Set this property to 'false' if only JWT tokens are expected. Environment variable: Show more |
boolean |
|
Token customizer name. Allows to select a tenant specific token customizer as a named bean. Prefer using Environment variable: Show more |
string |
|
Indirectly verify that the opaque (binary) access token is valid by using it to request UserInfo. Opaque access token is considered valid if the provider accepted this token and returned a valid UserInfo. You should only enable this option if the opaque access tokens have to be accepted but OpenId Connect provider does not have a token introspection endpoint. This property will have no effect when JWT tokens have to be verified. Environment variable: Show more |
boolean |
|
The relative path of the logout endpoint at the application. If provided, the application is able to initiate the logout through this endpoint in conformance with the OpenID Connect RP-Initiated Logout specification. Environment variable: Show more |
string |
|
Relative path of the application endpoint where the user should be redirected to after logging out from the OpenID Connect Provider. This endpoint URI must be properly registered at the OpenID Connect Provider as a valid redirect URI. Environment variable: Show more |
string |
|
Name of the post logout URI parameter which will be added as a query parameter to the logout redirect URI. Environment variable: Show more |
string |
|
Additional properties which will be added as the query parameters to the logout redirect URI. Environment variable: Show more |
|
|
The relative path of the Back-Channel Logout endpoint at the application. Environment variable: Show more |
string |
|
Maximum number of logout tokens that can be cached before they are matched against ID tokens stored in session cookies. Environment variable: Show more |
int |
|
Number of minutes a logout token can be cached for. Environment variable: Show more |
|
|
Token cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: Show more |
||
Logout token claim whose value will be used as a key for caching the tokens. Only Environment variable: Show more |
string |
|
The relative path of the Front-Channel Logout endpoint at the application. Environment variable: Show more |
string |
|
Authorization code flow response mode Environment variable: Show more |
|
|
Relative path for calculating a Environment variable: Show more |
string |
|
If this property is set to Environment variable: Show more |
boolean |
|
Remove the query parameters such as 'code' and 'state' set by the OIDC server on the redirect URI after the user has authenticated by redirecting a user to the same URI but without the query parameters. Environment variable: Show more |
boolean |
|
Relative path to the public endpoint which will process the error response from the OIDC authorization endpoint. If the user authentication has failed then the OIDC provider will return an Environment variable: Show more |
string |
|
Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow. ID token is always verified on every user request as the primary token which is used to represent the principal and extract the roles. Access token is not verified by default since it is meant to be propagated to the downstream services. The verification of the access token should be enabled if it is injected as a JWT token. Access tokens obtained as part of the code flow will always be verified if Environment variable: Show more |
boolean |
|
Force 'https' as the Environment variable: Show more |
boolean |
|
List of scopes Environment variable: Show more |
list of string |
|
Require that ID token includes a Environment variable: Show more |
boolean |
|
Add the Environment variable: Show more |
boolean |
|
Additional properties which will be added as the query parameters to the authentication redirect URI. Environment variable: Show more |
|
|
Request URL query parameters which, if present, will be added to the authentication redirect URI. Environment variable: Show more |
list of string |
|
If enabled the state, session and post logout cookies will have their 'secure' parameter set to Environment variable: Show more |
boolean |
|
Cookie name suffix. For example, a session cookie name for the default OIDC tenant is Environment variable: Show more |
string |
|
Cookie path parameter value which, if set, will be used to set a path parameter for the session, state and post logout cookies. The Environment variable: Show more |
string |
|
Cookie path header parameter value which, if set, identifies the incoming HTTP header whose value will be used to set a path parameter for the session, state and post logout cookies. If the header is missing then the Environment variable: Show more |
string |
|
Cookie domain parameter value which, if set, will be used for the session, state and post logout cookies. Environment variable: Show more |
string |
|
SameSite attribute for the session cookie. Environment variable: Show more |
|
|
If a state cookie is present then a Environment variable: Show more |
boolean |
|
Fail with the HTTP 401 error if the state cookie is present but no state query parameter is present. When either multiple authentications are disabled or the redirect URL matches the original request URL, the stale state cookie might remain in the browser cache from the earlier failed redirect to an OpenId Connect provider and be visible during the current request. For example, if Single-page application (SPA) uses XHR to handle redirects to the provider which does not support CORS for its authorization endpoint, the browser will block it and the state cookie created by Quarkus will remain in the browser cache. Quarkus will report an authentication failure when it will detect such an old state cookie but find no matching state query parameter. Reporting HTTP 401 error is usually the right thing to do in such cases, it will minimize a risk of the browser redirect loop but also can identify problems in the way SPA or Quarkus application manage redirects. For example, enabling However, setting this property to Environment variable: Show more |
boolean |
|
If this property is set to Environment variable: Show more |
boolean |
|
Session age extension in minutes. The user session age property is set to the value of the ID token life-span by default and the user will be redirected to the OIDC provider to re-authenticate once the session has expired. If this property is set to a non-zero value, then the expired ID token can be refreshed before the session has expired. This property will be ignored if the Environment variable: Show more |
|
|
If this property is set to If this property is set to 'false' then a status code of '499' will be returned to allow SPA to handle the redirect manually if a request header identifying current request as a JavaScript request is found. 'X-Requested-With' request header with its value set to either Environment variable: Show more |
boolean |
|
Requires that ID token is available when the authorization code flow completes. Disable this property only when you need to use the authorization code flow with OAuth2 providers which do not return ID token - an internal IdToken will be generated in such cases. Environment variable: Show more |
boolean |
|
Internal ID token lifespan. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Environment variable: Show more |
|
|
Requires that a Proof Key for Code Exchange (PKCE) is used. Environment variable: Show more |
boolean |
|
Secret which will be used to encrypt Proof Key for Code Exchange (PKCE) code verifier and/or nonce in the code flow state. This secret should be at least 32 characters long. If this secret is not set, the client secret configured with either The secret will be auto-generated if it remains uninitialized after checking all of these properties. Error will be reported if the secret length is less than 16 characters. Environment variable: Show more |
string |
|
Additional parameters, in addition to the required Environment variable: Show more |
|
|
Custom HTTP headers which have to be sent to complete the authorization code grant request. Environment variable: Show more |
|
|
Default TokenStateManager strategy. Environment variable: Show more |
|
|
Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size Environment variable: Show more |
boolean |
|
Mandates that the Default TokenStateManager will encrypt the session cookie that stores the tokens. Environment variable: Show more |
boolean |
|
Secret which will be used by the Default TokenStateManager to encrypt the session cookie storing the tokens when If this secret is not set, the client secret configured with either The length of the secret which will be used to encrypt the tokens should be at least 32 characters long. Warning will be logged if the secret length is less than 16 characters. Environment variable: Show more |
string |
|
Allow 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, see Environment variable: Show more |
boolean |
|
Allow 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, see Environment variable: Show more |
boolean |
|
Allow 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. Environment variable: Show more |
boolean |
|
If JWK verification keys should be fetched at the moment a connection to the OIDC provider is initialized. Disabling this property will delay the key acquisition until the moment the current token has to be verified. Typically it can only be necessary if the token or other telated request properties provide an additional context which is required to resolve the keys correctly. Environment variable: Show more |
boolean |
|
Maximum number of JWK keys that can be cached. This property will be ignored if the Environment variable: Show more |
int |
|
Number of minutes a JWK key can be cached for. This property will be ignored if the Environment variable: Show more |
|
|
Cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. This property will be ignored if the Environment variable: Show more |
||
Well known OpenId Connect provider identifier Environment variable: Show more |
|
About the Duration format
To write duration values, use the standard You can also use a simplified format, starting with a number:
In other cases, the simplified format is translated to the
|