# 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.

## OIDC configuration

[lock] Configuration property fixed at build time - All other configuration properties are overridable at runtime

|  |  |  |
| --- | --- | --- |
| <mark>Configuration property</mark> | Type | Default |
| [lock] <a id="quarkus-oidc_quarkus-oidc-enabled"></a> [`quarkus.oidc.enabled`](#quarkus-oidc_quarkus-oidc-enabled) config_property_copy_button:+++quarkus.oidc.enabled+++[]<br><br>If the OIDC extension is enabled.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ENABLED+++[] | boolean | `true` |
| [lock] <a id="quarkus-oidc_quarkus-oidc-default-token-cache-enabled"></a> [`quarkus.oidc.default-token-cache-enabled`](#quarkus-oidc_quarkus-oidc-default-token-cache-enabled) config_property_copy_button:+++quarkus.oidc.default-token-cache-enabled+++[]<br><br>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 `OidcConfig#tokenCache`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DEFAULT_TOKEN_CACHE_ENABLED+++[] | boolean | `true` |
| [lock] <a id="quarkus-oidc_quarkus-oidc-health-enabled"></a> [`quarkus.oidc.health.enabled`](#quarkus-oidc_quarkus-oidc-health-enabled) config_property_copy_button:+++quarkus.oidc.health.enabled+++[]<br><br>Whether the OIDC extension should automatically register a health check for OIDC tenants when a Health Check capability is present.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_HEALTH_ENABLED+++[] | boolean | `false` |
| [lock] <a id="quarkus-oidc_quarkus-oidc-allowed-routes"></a> [`quarkus.oidc.allowed-routes`](#quarkus-oidc_quarkus-oidc-allowed-routes) config_property_copy_button:+++quarkus.oidc.allowed-routes+++[]<br><br>Supported HTTP routes for OIDC tenant features. To avoid unnecessary overhead, remove routes that are not required by any of the OIDC tenants.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ALLOWED_ROUTES+++[] | list of `backchannel-logout`, `resource-metadata`, `client-id-metadata`, `client-attestation` | `backchannel-logout`, `resource-metadata`, `client-id-metadata`, `client-attestation` |
| <a id="quarkus-oidc_quarkus-oidc-resolve-tenants-with-issuer"></a> [`quarkus.oidc.resolve-tenants-with-issuer`](#quarkus-oidc_quarkus-oidc-resolve-tenants-with-issuer) config_property_copy_button:+++quarkus.oidc.resolve-tenants-with-issuer+++[]<br><br>If OIDC tenants should be resolved using the bearer access token's issuer (`iss`) claim value.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOLVE_TENANTS_WITH_ISSUER+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-priority"></a> [`quarkus.oidc.priority`](#quarkus-oidc_quarkus-oidc-priority) config_property_copy_button:+++quarkus.oidc.priority+++[]<br><br>OIDC authentication mechanism priority.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_PRIORITY+++[] | int | `1001` |
| <a id="quarkus-oidc_quarkus-oidc-auth-server-url"></a> [`quarkus.oidc.auth-server-url`](#quarkus-oidc_quarkus-oidc-auth-server-url) config_property_copy_button:+++quarkus.oidc.auth-server-url+++[]<br><br>`quarkus.oidc."tenant".auth-server-url` config_property_copy_button:+++quarkus.oidc."tenant".auth-server-url+++[]<br><br>The base URL of an OpenID Connect (OIDC) server, for example, `https://host:port/auth`. Do not set this property if you use the public key verification (`public-key`) or certificate chain verification only (`certificate-chain`).<br><br>By default, when an OIDC configuration metadata discovery is enabled with the `discovery-enabled()` property, it is retrieved from a well known provider endpoint with its URL calculated by appending a value of the `discovery-path()` path such as `.well-known/openid-configuration` to this URL.<br><br>For Keycloak, use `https://host:port/realms/{realm}`, replacing `{realm}` with the Keycloak realm name.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTH_SERVER_URL+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-discovery-enabled"></a> [`quarkus.oidc.discovery-enabled`](#quarkus-oidc_quarkus-oidc-discovery-enabled) config_property_copy_button:+++quarkus.oidc.discovery-enabled+++[]<br><br>`quarkus.oidc."tenant".discovery-enabled` config_property_copy_button:+++quarkus.oidc."tenant".discovery-enabled+++[]<br><br>Enable discovery of the OIDC endpoints. If not enabled, you must configure the OIDC endpoint URLs individually.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DISCOVERY_ENABLED+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-discovery-path"></a> [`quarkus.oidc.discovery-path`](#quarkus-oidc_quarkus-oidc-discovery-path) config_property_copy_button:+++quarkus.oidc.discovery-path+++[]<br><br>`quarkus.oidc."tenant".discovery-path` config_property_copy_button:+++quarkus.oidc."tenant".discovery-path+++[]<br><br>The relative path of the OIDC discovery endpoint.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DISCOVERY_PATH+++[] | string | `.well-known/openid-configuration` |
| <a id="quarkus-oidc_quarkus-oidc-registration-path"></a> [`quarkus.oidc.registration-path`](#quarkus-oidc_quarkus-oidc-registration-path) config_property_copy_button:+++quarkus.oidc.registration-path+++[]<br><br>`quarkus.oidc."tenant".registration-path` config_property_copy_button:+++quarkus.oidc."tenant".registration-path+++[]<br><br>The relative path or absolute URL of the OIDC dynamic client registration endpoint. Set if `discovery-enabled` is `false` or a discovered token endpoint path must be customized.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_REGISTRATION_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-connection-delay"></a> [`quarkus.oidc.connection-delay`](#quarkus-oidc_quarkus-oidc-connection-delay) config_property_copy_button:+++quarkus.oidc.connection-delay+++[]<br><br>`quarkus.oidc."tenant".connection-delay` config_property_copy_button:+++quarkus.oidc."tenant".connection-delay+++[]<br><br>The duration to attempt the initial connection to an OIDC server. For example, setting the duration to `20S` allows 10 retries, each 2 seconds apart. This property is only effective when the initial OIDC connection is created. For dropped connections, use the `connection-retry-count` property instead.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CONNECTION_DELAY+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-connection-retry-count"></a> [`quarkus.oidc.connection-retry-count`](#quarkus-oidc_quarkus-oidc-connection-retry-count) config_property_copy_button:+++quarkus.oidc.connection-retry-count+++[]<br><br>`quarkus.oidc."tenant".connection-retry-count` config_property_copy_button:+++quarkus.oidc."tenant".connection-retry-count+++[]<br><br>The number of times to retry re-establishing an existing OIDC connection if it is temporarily lost. Different from `connection-delay`, which applies only to initial connection attempts. For instance, if a request to the OIDC token endpoint fails due to a connection issue, it will be retried as per this setting.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CONNECTION_RETRY_COUNT+++[] | int | `3` |
| <a id="quarkus-oidc_quarkus-oidc-connection-timeout"></a> [`quarkus.oidc.connection-timeout`](#quarkus-oidc_quarkus-oidc-connection-timeout) config_property_copy_button:+++quarkus.oidc.connection-timeout+++[]<br><br>`quarkus.oidc."tenant".connection-timeout` config_property_copy_button:+++quarkus.oidc."tenant".connection-timeout+++[]<br><br>The number of seconds after which the current OIDC connection request times out.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CONNECTION_TIMEOUT+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `10S` |
| <a id="quarkus-oidc_quarkus-oidc-use-blocking-dns-lookup"></a> [`quarkus.oidc.use-blocking-dns-lookup`](#quarkus-oidc_quarkus-oidc-use-blocking-dns-lookup) config_property_copy_button:+++quarkus.oidc.use-blocking-dns-lookup+++[]<br><br>`quarkus.oidc."tenant".use-blocking-dns-lookup` config_property_copy_button:+++quarkus.oidc."tenant".use-blocking-dns-lookup+++[]<br><br>Whether DNS lookup should be performed on the worker thread. Use this option when you can see logged warnings about blocked Vert.x event loop by HTTP requests to OIDC server.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_USE_BLOCKING_DNS_LOOKUP+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-max-pool-size"></a> [`quarkus.oidc.max-pool-size`](#quarkus-oidc_quarkus-oidc-max-pool-size) config_property_copy_button:+++quarkus.oidc.max-pool-size+++[]<br><br>`quarkus.oidc."tenant".max-pool-size` config_property_copy_button:+++quarkus.oidc."tenant".max-pool-size+++[]<br><br>The maximum size of the connection pool used by the WebClient.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_MAX_POOL_SIZE+++[] | int |  |
| <a id="quarkus-oidc_quarkus-oidc-follow-redirects"></a> [`quarkus.oidc.follow-redirects`](#quarkus-oidc_quarkus-oidc-follow-redirects) config_property_copy_button:+++quarkus.oidc.follow-redirects+++[]<br><br>`quarkus.oidc."tenant".follow-redirects` config_property_copy_button:+++quarkus.oidc."tenant".follow-redirects+++[]<br><br>Follow redirects automatically when WebClient gets HTTP 302. When this property is disabled only a single redirect to exactly the same original URI is allowed but only if one or more cookies were set during the redirect request.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_FOLLOW_REDIRECTS+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-token-path"></a> [`quarkus.oidc.token-path`](#quarkus-oidc_quarkus-oidc-token-path) config_property_copy_button:+++quarkus.oidc.token-path+++[]<br><br>`quarkus.oidc."tenant".token-path` config_property_copy_button:+++quarkus.oidc."tenant".token-path+++[]<br><br>The OIDC token endpoint that issues access and refresh tokens; specified as a relative path or absolute URL. Set if `discovery-enabled` is `false` or a discovered token endpoint path must be customized.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-revoke-path"></a> [`quarkus.oidc.revoke-path`](#quarkus-oidc_quarkus-oidc-revoke-path) config_property_copy_button:+++quarkus.oidc.revoke-path+++[]<br><br>`quarkus.oidc."tenant".revoke-path` config_property_copy_button:+++quarkus.oidc."tenant".revoke-path+++[]<br><br>The relative path or absolute URL of the OIDC token revocation endpoint.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_REVOKE_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-client-id"></a> [`quarkus.oidc.client-id`](#quarkus-oidc_quarkus-oidc-client-id) config_property_copy_button:+++quarkus.oidc.client-id+++[]<br><br>`quarkus.oidc."tenant".client-id` config_property_copy_button:+++quarkus.oidc."tenant".client-id+++[]<br><br>The client id of the application. Each application has a client id that is used to identify the application. Setting the client id is not required if `application-type` is `service` and no token introspection is required.<br><br>If this property is set to an HTTPS URL, the [OAuth Client ID Metadata Document](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document) registration is activated. In this mode, Quarkus serves a metadata document at the URL path derived from the client id, allowing the authorization server to discover the client configuration without prior registration. The `client-name()` property must also be set in this case. This option is only supported by the OIDC extension.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_ID+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-client-name"></a> [`quarkus.oidc.client-name`](#quarkus-oidc_quarkus-oidc-client-name) config_property_copy_button:+++quarkus.oidc.client-name+++[]<br><br>`quarkus.oidc."tenant".client-name` config_property_copy_button:+++quarkus.oidc."tenant".client-name+++[]<br><br>The client name of the application. It is meant to represent a human readable description of the application which you may provide when an application (client) is registered in an OpenId Connect provider's dashboard. For example, you can set this property to have more informative log messages which record an activity of the given client.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-tenant-id"></a> [`quarkus.oidc.tenant-id`](#quarkus-oidc_quarkus-oidc-tenant-id) config_property_copy_button:+++quarkus.oidc.tenant-id+++[]<br><br>`quarkus.oidc."tenant".tenant-id` config_property_copy_button:+++quarkus.oidc."tenant".tenant-id+++[]<br><br>A unique tenant identifier. It can be set by `TenantConfigResolver` providers, which resolve the tenant configuration dynamically.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TENANT_ID+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-tenant-enabled"></a> [`quarkus.oidc.tenant-enabled`](#quarkus-oidc_quarkus-oidc-tenant-enabled) config_property_copy_button:+++quarkus.oidc.tenant-enabled+++[]<br><br>`quarkus.oidc."tenant".tenant-enabled` config_property_copy_button:+++quarkus.oidc."tenant".tenant-enabled+++[]<br><br>If this tenant configuration is enabled. The default tenant is disabled if it is not configured but a `TenantConfigResolver` that resolves tenant configurations is registered, or named tenants are configured. In this case, you do not need to disable the default tenant.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TENANT_ENABLED+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-application-type"></a> [`quarkus.oidc.application-type`](#quarkus-oidc_quarkus-oidc-application-type) config_property_copy_button:+++quarkus.oidc.application-type+++[]<br><br>`quarkus.oidc."tenant".application-type` config_property_copy_button:+++quarkus.oidc."tenant".application-type+++[]<br><br>The application type, which can be one of the following `ApplicationType` values.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_APPLICATION_TYPE+++[] | tooltip:web-app[A `WEB_APP` is a client that serves pages,opts=usually a front-end application. For this type of client the Authorization Code Flow is defined as the preferred method for authenticating users.], tooltip:service[A `SERVICE` is a client that has a set of protected HTTP resources,opts=usually a backend application following the RESTful Architectural Design. For this type of client,the Bearer Authorization method is defined as the preferred method for authenticating and authorizing users.], tooltip:hybrid[A combined `SERVICE` and `WEB_APP` client. For this type of client,opts=the Bearer Authorization method is used if the Authorization header is set and Authorization Code Flow - if not.] | tooltip:service[A {@code SERVICE} is a client that has a set of protected HTTP resources,opts=usually a backend application following the RESTful Architectural Design. For this type of client,the Bearer Authorization method is defined as the preferred method for authenticating and authorizing users.] |
| <a id="quarkus-oidc_quarkus-oidc-authorization-path"></a> [`quarkus.oidc.authorization-path`](#quarkus-oidc_quarkus-oidc-authorization-path) config_property_copy_button:+++quarkus.oidc.authorization-path+++[]<br><br>`quarkus.oidc."tenant".authorization-path` config_property_copy_button:+++quarkus.oidc."tenant".authorization-path+++[]<br><br>The 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHORIZATION_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-user-info-path"></a> [`quarkus.oidc.user-info-path`](#quarkus-oidc_quarkus-oidc-user-info-path) config_property_copy_button:+++quarkus.oidc.user-info-path+++[]<br><br>`quarkus.oidc."tenant".user-info-path` config_property_copy_button:+++quarkus.oidc."tenant".user-info-path+++[]<br><br>The 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_USER_INFO_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-introspection-path"></a> [`quarkus.oidc.introspection-path`](#quarkus-oidc_quarkus-oidc-introspection-path) config_property_copy_button:+++quarkus.oidc.introspection-path+++[]<br><br>`quarkus.oidc."tenant".introspection-path` config_property_copy_button:+++quarkus.oidc."tenant".introspection-path+++[]<br><br>Relative 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_INTROSPECTION_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-jwks-path"></a> [`quarkus.oidc.jwks-path`](#quarkus-oidc_quarkus-oidc-jwks-path) config_property_copy_button:+++quarkus.oidc.jwks-path+++[]<br><br>`quarkus.oidc."tenant".jwks-path` config_property_copy_button:+++quarkus.oidc."tenant".jwks-path+++[]<br><br>Relative 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-end-session-path"></a> [`quarkus.oidc.end-session-path`](#quarkus-oidc_quarkus-oidc-end-session-path) config_property_copy_button:+++quarkus.oidc.end-session-path+++[]<br><br>`quarkus.oidc."tenant".end-session-path` config_property_copy_button:+++quarkus.oidc."tenant".end-session-path+++[]<br><br>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 is ignored if the discovery is enabled.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_END_SESSION_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-tenant-paths"></a> [`quarkus.oidc.tenant-paths`](#quarkus-oidc_quarkus-oidc-tenant-paths) config_property_copy_button:+++quarkus.oidc.tenant-paths+++[]<br><br>`quarkus.oidc."tenant".tenant-paths` config_property_copy_button:+++quarkus.oidc."tenant".tenant-paths+++[]<br><br>The paths which must be secured by this tenant. Tenant with the most specific path wins. Please see the [Configure tenant paths](/guides/security-openid-connect-multitenancy/index.md#configure-tenant-paths) section of the OIDC multitenancy guide for explanation of allowed path patterns.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TENANT_PATHS+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-public-key"></a> [`quarkus.oidc.public-key`](#quarkus-oidc_quarkus-oidc-public-key) config_property_copy_button:+++quarkus.oidc.public-key+++[]<br><br>`quarkus.oidc."tenant".public-key` config_property_copy_button:+++quarkus.oidc."tenant".public-key+++[]<br><br>The public key for the local JWT token verification. OIDC server connection is not created when this property is set.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_PUBLIC_KEY+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-allow-token-introspection-cache"></a> [`quarkus.oidc.allow-token-introspection-cache`](#quarkus-oidc_quarkus-oidc-allow-token-introspection-cache) config_property_copy_button:+++quarkus.oidc.allow-token-introspection-cache+++[]<br><br>`quarkus.oidc."tenant".allow-token-introspection-cache` config_property_copy_button:+++quarkus.oidc."tenant".allow-token-introspection-cache+++[]<br><br>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 `OidcConfig.TokenCache` to enable it.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ALLOW_TOKEN_INTROSPECTION_CACHE+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-allow-user-info-cache"></a> [`quarkus.oidc.allow-user-info-cache`](#quarkus-oidc_quarkus-oidc-allow-user-info-cache) config_property_copy_button:+++quarkus.oidc.allow-user-info-cache+++[]<br><br>`quarkus.oidc."tenant".allow-user-info-cache` config_property_copy_button:+++quarkus.oidc."tenant".allow-user-info-cache+++[]<br><br>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 `OidcConfig.TokenCache` to enable it.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ALLOW_USER_INFO_CACHE+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-cache-user-info-in-idtoken"></a> [`quarkus.oidc.cache-user-info-in-idtoken`](#quarkus-oidc_quarkus-oidc-cache-user-info-in-idtoken) config_property_copy_button:+++quarkus.oidc.cache-user-info-in-idtoken+++[]<br><br>`quarkus.oidc."tenant".cache-user-info-in-idtoken` config_property_copy_button:+++quarkus.oidc."tenant".cache-user-info-in-idtoken+++[]<br><br>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.<br><br>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 `allow-user-info-cache` property set to `false`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CACHE_USER_INFO_IN_IDTOKEN+++[] | boolean |  |
| <a id="quarkus-oidc_quarkus-oidc-provider"></a> [`quarkus.oidc.provider`](#quarkus-oidc_quarkus-oidc-provider) config_property_copy_button:+++quarkus.oidc.provider+++[]<br><br>`quarkus.oidc."tenant".provider` config_property_copy_button:+++quarkus.oidc."tenant".provider+++[]<br><br>Well known OpenId Connect provider identifier<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_PROVIDER+++[] | `apple`, `discord`, `facebook`, `github`, `google`, `linkedin`, `mastodon`, `microsoft`, `slack`, `spotify`, `strava`, `twitch`, `twitter`, `x` |  |
| <a id="quarkus-oidc_section_quarkus-oidc-devui"></a> [OIDC Dev UI configuration which is effective in dev mode only](#quarkus-oidc_section_quarkus-oidc-devui) | Type | Default |
| [lock] <a id="quarkus-oidc_quarkus-oidc-devui-grant-type"></a> [`quarkus.oidc.devui.grant.type`](#quarkus-oidc_quarkus-oidc-devui-grant-type) config_property_copy_button:+++quarkus.oidc.devui.grant.type+++[]<br><br>Grant type which will be used to acquire a token to test the OIDC 'service' applications<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DEVUI_GRANT_TYPE+++[] | tooltip:client['client_credentials' grant], tooltip:password['password' grant], tooltip:code['authorization_code' grant], tooltip:implicit['implicit' grant] |  |
| [lock] <a id="quarkus-oidc_quarkus-oidc-devui-grant-options-option-name"></a> [`quarkus.oidc.devui.grant-options."option-name"`](#quarkus-oidc_quarkus-oidc-devui-grant-options-option-name) config_property_copy_button:+++quarkus.oidc.devui.grant-options."option-name"+++[]<br><br>Grant options<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DEVUI_GRANT_OPTIONS__OPTION_NAME_+++[] | Map\<String,Map\<String,String>> |  |
| [lock] <a id="quarkus-oidc_quarkus-oidc-devui-web-client-timeout"></a> [`quarkus.oidc.devui.web-client-timeout`](#quarkus-oidc_quarkus-oidc-devui-web-client-timeout) config_property_copy_button:+++quarkus.oidc.devui.web-client-timeout+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DEVUI_WEB_CLIENT_TIMEOUT+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `4S` |
| <a id="quarkus-oidc_section_quarkus-oidc-proxy"></a> [HTTP proxy configuration](#quarkus-oidc_section_quarkus-oidc-proxy) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-proxy-proxy-configuration-name"></a> [`quarkus.oidc.proxy.proxy-configuration-name`](#quarkus-oidc_quarkus-oidc-proxy-proxy-configuration-name) config_property_copy_button:+++quarkus.oidc.proxy.proxy-configuration-name+++[]<br><br>`quarkus.oidc."tenant".proxy.proxy-configuration-name` config_property_copy_button:+++quarkus.oidc."tenant".proxy.proxy-configuration-name+++[]<br><br>The name of the proxy configuration to use.<br><br>If a name is configured, it uses the configuration from `quarkus.proxy.<name>.*`. If a name is configured, but no proxy configuration is found with that name then an error will be thrown.<br><br>The default proxy configuration is **not** used by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_PROXY_PROXY_CONFIGURATION_NAME+++[] | string |  |
| <a id="quarkus-oidc_section_quarkus-oidc-tls"></a> [TLS configuration](#quarkus-oidc_section_quarkus-oidc-tls) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-tls-tls-configuration-name"></a> [`quarkus.oidc.tls.tls-configuration-name`](#quarkus-oidc_quarkus-oidc-tls-tls-configuration-name) config_property_copy_button:+++quarkus.oidc.tls.tls-configuration-name+++[]<br><br>`quarkus.oidc."tenant".tls.tls-configuration-name` config_property_copy_button:+++quarkus.oidc."tenant".tls.tls-configuration-name+++[]<br><br>The name of the TLS configuration to use.<br><br>If a name is configured, it uses the configuration from `quarkus.tls.<name>.*` If a name is configured, but no TLS configuration is found with that name then an error will be thrown.<br><br>The default TLS configuration is **not** used by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TLS_TLS_CONFIGURATION_NAME+++[] | string |  |
| <a id="quarkus-oidc_section_quarkus-oidc-credentials"></a> [Different authentication options for OIDC client to access OIDC token and other secured endpoints](#quarkus-oidc_section_quarkus-oidc-credentials) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-credentials-secret"></a> [`quarkus.oidc.credentials.secret`](#quarkus-oidc_quarkus-oidc-credentials-secret) config_property_copy_button:+++quarkus.oidc.credentials.secret+++[]<br><br>`quarkus.oidc."tenant".credentials.secret` config_property_copy_button:+++quarkus.oidc."tenant".credentials.secret+++[]<br><br>The client secret used by the `client_secret_basic` authentication method. Must be set unless a secret is set in `client-secret` or `jwt` client authentication is required. You can use `client-secret.value` instead, but both properties are mutually exclusive.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_SECRET+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-client-secret-value"></a> [`quarkus.oidc.credentials.client-secret.value`](#quarkus-oidc_quarkus-oidc-credentials-client-secret-value) config_property_copy_button:+++quarkus.oidc.credentials.client-secret.value+++[]<br><br>`quarkus.oidc."tenant".credentials.client-secret.value` config_property_copy_button:+++quarkus.oidc."tenant".credentials.client-secret.value+++[]<br><br>The client secret value. This value is ignored if `credentials.secret` is set. Must be set unless a secret is set in `client-secret` or `jwt` client authentication is required.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_VALUE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-name"></a> [`quarkus.oidc.credentials.client-secret.provider.name`](#quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-name) config_property_copy_button:+++quarkus.oidc.credentials.client-secret.provider.name+++[]<br><br>`quarkus.oidc."tenant".credentials.client-secret.provider.name` config_property_copy_button:+++quarkus.oidc."tenant".credentials.client-secret.provider.name+++[]<br><br>The CredentialsProvider bean name, which should only be set if more than one CredentialsProvider is registered<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_PROVIDER_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-keyring-name"></a> [`quarkus.oidc.credentials.client-secret.provider.keyring-name`](#quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-keyring-name) config_property_copy_button:+++quarkus.oidc.credentials.client-secret.provider.keyring-name+++[]<br><br>`quarkus.oidc."tenant".credentials.client-secret.provider.keyring-name` config_property_copy_button:+++quarkus.oidc."tenant".credentials.client-secret.provider.keyring-name+++[]<br><br>The CredentialsProvider keyring name. The keyring name is only required when the CredentialsProvider being used requires the keyring name to look up the secret, which is often the case when a CredentialsProvider is shared by multiple extensions to retrieve credentials from a more dynamic source like a vault instance or secret manager<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_PROVIDER_KEYRING_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-key"></a> [`quarkus.oidc.credentials.client-secret.provider.key`](#quarkus-oidc_quarkus-oidc-credentials-client-secret-provider-key) config_property_copy_button:+++quarkus.oidc.credentials.client-secret.provider.key+++[]<br><br>`quarkus.oidc."tenant".credentials.client-secret.provider.key` config_property_copy_button:+++quarkus.oidc."tenant".credentials.client-secret.provider.key+++[]<br><br>The CredentialsProvider client secret key<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_PROVIDER_KEY+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-client-secret-method"></a> [`quarkus.oidc.credentials.client-secret.method`](#quarkus-oidc_quarkus-oidc-credentials-client-secret-method) config_property_copy_button:+++quarkus.oidc.credentials.client-secret.method+++[]<br><br>`quarkus.oidc."tenant".credentials.client-secret.method` config_property_copy_button:+++quarkus.oidc."tenant".credentials.client-secret.method+++[]<br><br>The authentication method. If the `clientSecret.value` secret is set, this method is `basic` by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_METHOD+++[] | tooltip:basic[`client_secret_basic` (default)\: The client id and secret are submitted with the HTTP Authorization Basic scheme.], tooltip:post[`client_secret_post`\: The client id and secret are submitted as the `client_id` and `client_secret` form parameters.], tooltip:post-jwt[`client_secret_jwt`\: The client id and generated JWT secret are submitted as the `client_id` and `client_secret` form parameters.], tooltip:query[client id and secret are submitted as HTTP query parameters. This option is only supported by the OIDC extension.] |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-source"></a> [`quarkus.oidc.credentials.jwt.source`](#quarkus-oidc_quarkus-oidc-credentials-jwt-source) config_property_copy_button:+++quarkus.oidc.credentials.jwt.source+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.source` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.source+++[]<br><br>JWT token source: token is generated by the OIDC provider client or is an existing JWT bearer or SPIFFE SVID token.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SOURCE+++[] | tooltip:client[JWT token is generated by the OIDC provider client to support `client_secret_jwt` and `private_key_jwt` authentication methods.], tooltip:bearer[JWT bearer token is used as a client assertion\: https\://www.rfc-editor.org/rfc/rfc7523++#++section-2.2. The OIDC client extension can also use it as a JWT bearer grant assertion if the `assertion` property is enabled\: https\://www.rfc-editor.org/rfc/rfc7523++#++section-2.1.], tooltip:spiffe-jwt[SPIFFE SVID token is used as a client assertion\: urn\:ietf\:params\:oauth\:client-assertion-type\:jwt-spiffe The OIDC client extension can also use it as a JWT bearer grant assertion if the `assertion` property is enabled\: https\://www.rfc-editor.org/rfc/rfc7523++#++section-2.1.] | tooltip:client[JWT token is generated by the OIDC provider client to support `client_secret_jwt` and `private_key_jwt` authentication methods.] |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-token-path"></a> [`quarkus.oidc.credentials.jwt.token-path`](#quarkus-oidc_quarkus-oidc-credentials-jwt-token-path) config_property_copy_button:+++quarkus.oidc.credentials.jwt.token-path+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.token-path` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.token-path+++[]<br><br>Path to a file with a JWT bearer token that should be used as a client assertion. This path can only be set when JWT source (`source()`) is set to `Source#BEARER`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_TOKEN_PATH+++[] | path |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-secret"></a> [`quarkus.oidc.credentials.jwt.secret`](#quarkus-oidc_quarkus-oidc-credentials-jwt-secret) config_property_copy_button:+++quarkus.oidc.credentials.jwt.secret+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.secret` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.secret+++[]<br><br>If provided, indicates that JWT is signed using a secret key. It is mutually exclusive with `key`, `key-file` and `key-store` properties.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SECRET+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-name"></a> [`quarkus.oidc.credentials.jwt.secret-provider.name`](#quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-name) config_property_copy_button:+++quarkus.oidc.credentials.jwt.secret-provider.name+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.secret-provider.name` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.secret-provider.name+++[]<br><br>The CredentialsProvider bean name, which should only be set if more than one CredentialsProvider is registered<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SECRET_PROVIDER_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-keyring-name"></a> [`quarkus.oidc.credentials.jwt.secret-provider.keyring-name`](#quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-keyring-name) config_property_copy_button:+++quarkus.oidc.credentials.jwt.secret-provider.keyring-name+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.secret-provider.keyring-name` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.secret-provider.keyring-name+++[]<br><br>The CredentialsProvider keyring name. The keyring name is only required when the CredentialsProvider being used requires the keyring name to look up the secret, which is often the case when a CredentialsProvider is shared by multiple extensions to retrieve credentials from a more dynamic source like a vault instance or secret manager<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SECRET_PROVIDER_KEYRING_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-key"></a> [`quarkus.oidc.credentials.jwt.secret-provider.key`](#quarkus-oidc_quarkus-oidc-credentials-jwt-secret-provider-key) config_property_copy_button:+++quarkus.oidc.credentials.jwt.secret-provider.key+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.secret-provider.key` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.secret-provider.key+++[]<br><br>The CredentialsProvider client secret key<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SECRET_PROVIDER_KEY+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key"></a> [`quarkus.oidc.credentials.jwt.key`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key+++[]<br><br>String representation of a private key. If provided, indicates that JWT is signed using a private key in PEM or JWK format. It is mutually exclusive with `secret`, `key-file` and `key-store` properties. You can use the `signature-algorithm` property to override the default key algorithm, `RS256`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key-file"></a> [`quarkus.oidc.credentials.jwt.key-file`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key-file) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key-file+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key-file` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key-file+++[]<br><br>If provided, indicates that JWT is signed using a private key in PEM or JWK format. It is mutually exclusive with `secret`, `key` and `key-store` properties. You can use the `signature-algorithm` property to override the default key algorithm, `RS256`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY_FILE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key-store-file"></a> [`quarkus.oidc.credentials.jwt.key-store-file`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key-store-file) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key-store-file+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key-store-file` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key-store-file+++[]<br><br>If provided, indicates that JWT is signed using a private key from a keystore. It is mutually exclusive with `secret`, `key` and `key-file` properties.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY_STORE_FILE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key-store-password"></a> [`quarkus.oidc.credentials.jwt.key-store-password`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key-store-password) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key-store-password+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key-store-password` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key-store-password+++[]<br><br>A parameter to specify the password of the keystore file.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY_STORE_PASSWORD+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key-id"></a> [`quarkus.oidc.credentials.jwt.key-id`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key-id) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key-id+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key-id` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key-id+++[]<br><br>The private key id or alias.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY_ID+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-key-password"></a> [`quarkus.oidc.credentials.jwt.key-password`](#quarkus-oidc_quarkus-oidc-credentials-jwt-key-password) config_property_copy_button:+++quarkus.oidc.credentials.jwt.key-password+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.key-password` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.key-password+++[]<br><br>The private key password.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEY_PASSWORD+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-public-key"></a> [`quarkus.oidc.credentials.jwt.public-key`](#quarkus-oidc_quarkus-oidc-credentials-jwt-public-key) config_property_copy_button:+++quarkus.oidc.credentials.jwt.public-key+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.public-key` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.public-key+++[]<br><br>String representation of a public key in PEM format. Ignored unless the `OidcClientCommonConfig#clientId() client-id` is an HTTPS URL activating the [Client ID Metadata Document](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document) registration, and a private key (`key`, `key-file`, or `key-store-file`) is also configured. The public key is published in the metadata document `jwks` property and `token_endpoint_auth_method` is set to `private_key_jwt`. This option is only supported by the OIDC extension.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_PUBLIC_KEY+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-public-key-file"></a> [`quarkus.oidc.credentials.jwt.public-key-file`](#quarkus-oidc_quarkus-oidc-credentials-jwt-public-key-file) config_property_copy_button:+++quarkus.oidc.credentials.jwt.public-key-file+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.public-key-file` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.public-key-file+++[]<br><br>Path to a file containing the public key in PEM format. Both public keys and certificates are accepted. Ignored unless the `OidcClientCommonConfig#clientId() client-id` is an HTTPS URL activating the [Client ID Metadata Document](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document) registration, and a private key (`key`, `key-file`, or `key-store-file`) is also configured. The public key is published in the metadata document `jwks` property and `token_endpoint_auth_method` is set to `private_key_jwt`. This option is only supported by the OIDC extension.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_PUBLIC_KEY_FILE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-audience"></a> [`quarkus.oidc.credentials.jwt.audience`](#quarkus-oidc_quarkus-oidc-credentials-jwt-audience) config_property_copy_button:+++quarkus.oidc.credentials.jwt.audience+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.audience` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.audience+++[]<br><br>The JWT audience (`aud`) claim value. By default, the audience is set to the address of the OpenId Connect Provider's token endpoint. When the JWT `source()` is `Source#SPIFFE_JWT`, the audience defaults to the `OidcCommonConfig#authServerUrl() auth-server-url` instead. Set this property explicitly if the OIDC provider expects a different audience, for example, if its issuer URL differs from the `auth-server-url`, or if it requires a specific audience when the SPIFFE JWT-SVID token is used as a JWT bearer grant assertion, see `assertion()`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_AUDIENCE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-keep-audience-trailing-slash"></a> [`quarkus.oidc.credentials.jwt.keep-audience-trailing-slash`](#quarkus-oidc_quarkus-oidc-credentials-jwt-keep-audience-trailing-slash) config_property_copy_button:+++quarkus.oidc.credentials.jwt.keep-audience-trailing-slash+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.keep-audience-trailing-slash` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.keep-audience-trailing-slash+++[]<br><br>Whether to keep a trailing slash `/` in the `audience()` value.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_KEEP_AUDIENCE_TRAILING_SLASH+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-token-key-id"></a> [`quarkus.oidc.credentials.jwt.token-key-id`](#quarkus-oidc_quarkus-oidc-credentials-jwt-token-key-id) config_property_copy_button:+++quarkus.oidc.credentials.jwt.token-key-id+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.token-key-id` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.token-key-id+++[]<br><br>The key identifier of the signing key added as a JWT `kid` header.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_TOKEN_KEY_ID+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-issuer"></a> [`quarkus.oidc.credentials.jwt.issuer`](#quarkus-oidc_quarkus-oidc-credentials-jwt-issuer) config_property_copy_button:+++quarkus.oidc.credentials.jwt.issuer+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.issuer` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.issuer+++[]<br><br>The issuer of the signing key added as a JWT `iss` claim. The default value is the client id.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_ISSUER+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-subject"></a> [`quarkus.oidc.credentials.jwt.subject`](#quarkus-oidc_quarkus-oidc-credentials-jwt-subject) config_property_copy_button:+++quarkus.oidc.credentials.jwt.subject+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.subject` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.subject+++[]<br><br>Subject of the signing key added as a JWT `sub` claim The default value is the client id.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SUBJECT+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-claims-claim-name"></a> [`quarkus.oidc.credentials.jwt.claims."claim-name"`](#quarkus-oidc_quarkus-oidc-credentials-jwt-claims-claim-name) config_property_copy_button:+++quarkus.oidc.credentials.jwt.claims."claim-name"+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.claims."claim-name"` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.claims."claim-name"+++[]<br><br>Additional claims.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_CLAIMS__CLAIM_NAME_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-signature-algorithm"></a> [`quarkus.oidc.credentials.jwt.signature-algorithm`](#quarkus-oidc_quarkus-oidc-credentials-jwt-signature-algorithm) config_property_copy_button:+++quarkus.oidc.credentials.jwt.signature-algorithm+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.signature-algorithm` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.signature-algorithm+++[]<br><br>The signature algorithm used for the `key-file` property. Supported values: `RS256` (default), `RS384`, `RS512`, `PS256`, `PS384`, `PS512`, `ES256`, `ES384`, `ES512`, `HS256`, `HS384`, `HS512`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_SIGNATURE_ALGORITHM+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-lifespan"></a> [`quarkus.oidc.credentials.jwt.lifespan`](#quarkus-oidc_quarkus-oidc-credentials-jwt-lifespan) config_property_copy_button:+++quarkus.oidc.credentials.jwt.lifespan+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.lifespan` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.lifespan+++[]<br><br>The JWT lifespan in seconds. This value is added to the time at which the JWT was issued to calculate the expiration time.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_LIFESPAN+++[] | int | `10` |
| <a id="quarkus-oidc_quarkus-oidc-credentials-jwt-assertion"></a> [`quarkus.oidc.credentials.jwt.assertion`](#quarkus-oidc_quarkus-oidc-credentials-jwt-assertion) config_property_copy_button:+++quarkus.oidc.credentials.jwt.assertion+++[]<br><br>`quarkus.oidc."tenant".credentials.jwt.assertion` config_property_copy_button:+++quarkus.oidc."tenant".credentials.jwt.assertion+++[]<br><br>If true then the client authentication token is a JWT bearer grant assertion. Instead of producing 'client_assertion' and 'client_assertion_type' form properties, only 'assertion' is produced. It applies to the JWT token generated by the OIDC client and to the existing JWT bearer or SPIFFE SVID token, see `source()`. The JWT bearer grant type must be used when this property is enabled. This option is only supported by the OIDC client extension.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_JWT_ASSERTION+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-credentials-for-all-endpoints"></a> [`quarkus.oidc.credentials.for-all-endpoints`](#quarkus-oidc_quarkus-oidc-credentials-for-all-endpoints) config_property_copy_button:+++quarkus.oidc.credentials.for-all-endpoints+++[]<br><br>`quarkus.oidc."tenant".credentials.for-all-endpoints` config_property_copy_button:+++quarkus.oidc."tenant".credentials.for-all-endpoints+++[]<br><br>If true, client credentials are also sent to OIDC discovery and JWKS endpoints, which normally do not require authentication. Enable this when the OIDC provider enforces authenticated access to these endpoints.<br><br>One of the following authentication methods must be used when this property is enabled:<br><br>\* `client_secret_basic` — `Authorization: Basic` header \* JWT bearer (`jwt.source=bearer`) — `Authorization: Bearer` header<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_FOR_ALL_ENDPOINTS+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-credentials-attestation-enabled"></a> [`quarkus.oidc.credentials.attestation.enabled`](#quarkus-oidc_quarkus-oidc-credentials-attestation-enabled) config_property_copy_button:+++quarkus.oidc.credentials.attestation.enabled+++[]<br><br>`quarkus.oidc."tenant".credentials.attestation.enabled` config_property_copy_button:+++quarkus.oidc."tenant".credentials.attestation.enabled+++[]<br><br>Enable attestation-based client authentication.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_ATTESTATION_ENABLED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-credentials-attestation-signature-algorithm"></a> [`quarkus.oidc.credentials.attestation.signature-algorithm`](#quarkus-oidc_quarkus-oidc-credentials-attestation-signature-algorithm) config_property_copy_button:+++quarkus.oidc.credentials.attestation.signature-algorithm+++[]<br><br>`quarkus.oidc."tenant".credentials.attestation.signature-algorithm` config_property_copy_button:+++quarkus.oidc."tenant".credentials.attestation.signature-algorithm+++[]<br><br>The EC signature algorithm used for proof-of-possession (PoP) JWTs and self-attested attestation JWTs. Custom attesters may use different algorithms for signing attestation JWTs.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CREDENTIALS_ATTESTATION_SIGNATURE_ALGORITHM+++[] | `es256`, `es384`, `es512` | `es256` |
| <a id="quarkus-oidc_section_quarkus-oidc-introspection-credentials"></a> [Optional introspection endpoint-specific basic authentication configuration](#quarkus-oidc_section_quarkus-oidc-introspection-credentials) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-introspection-credentials-name"></a> [`quarkus.oidc.introspection-credentials.name`](#quarkus-oidc_quarkus-oidc-introspection-credentials-name) config_property_copy_button:+++quarkus.oidc.introspection-credentials.name+++[]<br><br>`quarkus.oidc."tenant".introspection-credentials.name` config_property_copy_button:+++quarkus.oidc."tenant".introspection-credentials.name+++[]<br><br>Name<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-introspection-credentials-secret"></a> [`quarkus.oidc.introspection-credentials.secret`](#quarkus-oidc_quarkus-oidc-introspection-credentials-secret) config_property_copy_button:+++quarkus.oidc.introspection-credentials.secret+++[]<br><br>`quarkus.oidc."tenant".introspection-credentials.secret` config_property_copy_button:+++quarkus.oidc."tenant".introspection-credentials.secret+++[]<br><br>Secret<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_SECRET+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-introspection-credentials-include-client-id"></a> [`quarkus.oidc.introspection-credentials.include-client-id`](#quarkus-oidc_quarkus-oidc-introspection-credentials-include-client-id) config_property_copy_button:+++quarkus.oidc.introspection-credentials.include-client-id+++[]<br><br>`quarkus.oidc."tenant".introspection-credentials.include-client-id` config_property_copy_button:+++quarkus.oidc."tenant".introspection-credentials.include-client-id+++[]<br><br>Include OpenId Connect Client ID configured with `quarkus.oidc.client-id`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_INCLUDE_CLIENT_ID+++[] | boolean | `true` |
| <a id="quarkus-oidc_section_quarkus-oidc-roles"></a> [Configuration to find and parse custom claims which contain roles](#quarkus-oidc_section_quarkus-oidc-roles) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-roles-role-claim-path"></a> [`quarkus.oidc.roles.role-claim-path`](#quarkus-oidc_quarkus-oidc-roles-role-claim-path) config_property_copy_button:+++quarkus.oidc.roles.role-claim-path+++[]<br><br>`quarkus.oidc."tenant".roles.role-claim-path` config_property_copy_button:+++quarkus.oidc."tenant".roles.role-claim-path+++[]<br><br>A 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. Each segment represents a JSON object name only; for 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ROLES_ROLE_CLAIM_PATH+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-roles-role-claim-separator"></a> [`quarkus.oidc.roles.role-claim-separator`](#quarkus-oidc_quarkus-oidc-roles-role-claim-separator) config_property_copy_button:+++quarkus.oidc.roles.role-claim-separator+++[]<br><br>`quarkus.oidc."tenant".roles.role-claim-separator` config_property_copy_button:+++quarkus.oidc."tenant".roles.role-claim-separator+++[]<br><br>The separator for splitting strings that contain multiple group values. It is only used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space is used by default because the standard `scope` claim can contain a space-separated sequence.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ROLES_ROLE_CLAIM_SEPARATOR+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-roles-source"></a> [`quarkus.oidc.roles.source`](#quarkus-oidc_quarkus-oidc-roles-source) config_property_copy_button:+++quarkus.oidc.roles.source+++[]<br><br>`quarkus.oidc."tenant".roles.source` config_property_copy_button:+++quarkus.oidc."tenant".roles.source+++[]<br><br>Source of the principal roles.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_ROLES_SOURCE+++[] | tooltip:idtoken[ID Token - the default value for the `web-app` applications.], tooltip:accesstoken[Access Token - the default value for the `service` applications; can also be used as the source of roles for the `web-app` applications.], tooltip:userinfo[User Info] |  |
| <a id="quarkus-oidc_section_quarkus-oidc-resource-metadata"></a> [Configuration to provide protected resource metadata](#quarkus-oidc_section_quarkus-oidc-resource-metadata) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-resource-metadata-enabled"></a> [`quarkus.oidc.resource-metadata.enabled`](#quarkus-oidc_quarkus-oidc-resource-metadata-enabled) config_property_copy_button:+++quarkus.oidc.resource-metadata.enabled+++[]<br><br>`quarkus.oidc."tenant".resource-metadata.enabled` config_property_copy_button:+++quarkus.oidc."tenant".resource-metadata.enabled+++[]<br><br>If the resource metadata can be provided.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOURCE_METADATA_ENABLED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-resource-metadata-resource"></a> [`quarkus.oidc.resource-metadata.resource`](#quarkus-oidc_quarkus-oidc-resource-metadata-resource) config_property_copy_button:+++quarkus.oidc.resource-metadata.resource+++[]<br><br>`quarkus.oidc."tenant".resource-metadata.resource` config_property_copy_button:+++quarkus.oidc."tenant".resource-metadata.resource+++[]<br><br>Protected resource identifier.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOURCE_METADATA_RESOURCE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-resource-metadata-scopes"></a> [`quarkus.oidc.resource-metadata.scopes`](#quarkus-oidc_quarkus-oidc-resource-metadata-scopes) config_property_copy_button:+++quarkus.oidc.resource-metadata.scopes+++[]<br><br>`quarkus.oidc."tenant".resource-metadata.scopes` config_property_copy_button:+++quarkus.oidc."tenant".resource-metadata.scopes+++[]<br><br>Supported scopes.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOURCE_METADATA_SCOPES+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-resource-metadata-authorization-server"></a> [`quarkus.oidc.resource-metadata.authorization-server`](#quarkus-oidc_quarkus-oidc-resource-metadata-authorization-server) config_property_copy_button:+++quarkus.oidc.resource-metadata.authorization-server+++[]<br><br>`quarkus.oidc."tenant".resource-metadata.authorization-server` config_property_copy_button:+++quarkus.oidc."tenant".resource-metadata.authorization-server+++[]<br><br>Authorization server URL. 'quarkus.oidc.auth-server-url' property value is reported by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOURCE_METADATA_AUTHORIZATION_SERVER+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-resource-metadata-force-https-scheme"></a> [`quarkus.oidc.resource-metadata.force-https-scheme`](#quarkus-oidc_quarkus-oidc-resource-metadata-force-https-scheme) config_property_copy_button:+++quarkus.oidc.resource-metadata.force-https-scheme+++[]<br><br>`quarkus.oidc."tenant".resource-metadata.force-https-scheme` config_property_copy_button:+++quarkus.oidc."tenant".resource-metadata.force-https-scheme+++[]<br><br>Force a protected resource identifier HTTPS scheme. This property is ignored if `resource() is an absolute -url`<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_RESOURCE_METADATA_FORCE_HTTPS_SCHEME+++[] | boolean | `true` |
| <a id="quarkus-oidc_section_quarkus-oidc-client-id-metadata"></a> [Client ID Metadata Document configuration](#quarkus-oidc_section_quarkus-oidc-client-id-metadata) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-client-id-metadata-force-https-scheme"></a> [`quarkus.oidc.client-id-metadata.force-https-scheme`](#quarkus-oidc_quarkus-oidc-client-id-metadata-force-https-scheme) config_property_copy_button:+++quarkus.oidc.client-id-metadata.force-https-scheme+++[]<br><br>`quarkus.oidc."tenant".client-id-metadata.force-https-scheme` config_property_copy_button:+++quarkus.oidc."tenant".client-id-metadata.force-https-scheme+++[]<br><br>Force the Client ID Metadata Document URL to use the HTTPS scheme. Setting this to `false` allows HTTP URLs as the client identifier.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_ID_METADATA_FORCE_HTTPS_SCHEME+++[] | boolean | `true` |
| <a id="quarkus-oidc_section_quarkus-oidc-token"></a> [Configuration to customize validation of token claims](#quarkus-oidc_section_quarkus-oidc-token) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-token-issuer"></a> [`quarkus.oidc.token.issuer`](#quarkus-oidc_quarkus-oidc-token-issuer) config_property_copy_button:+++quarkus.oidc.token.issuer+++[]<br><br>`quarkus.oidc."tenant".token.issuer` config_property_copy_button:+++quarkus.oidc."tenant".token.issuer+++[]<br><br>The expected issuer `iss` claim value. This property overrides the `issuer` property, which might be set in OpenId Connect provider's well-known configuration. If the `iss` claim value varies depending on the host, IP address, or tenant id of the provider, you can skip the issuer verification by setting this property to `any`, but it should be done only when other options (such as configuring the provider to use the fixed `iss` claim value) are not possible.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_ISSUER+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-audience"></a> [`quarkus.oidc.token.audience`](#quarkus-oidc_quarkus-oidc-token-audience) config_property_copy_button:+++quarkus.oidc.token.audience+++[]<br><br>`quarkus.oidc."tenant".token.audience` config_property_copy_button:+++quarkus.oidc."tenant".token.audience+++[]<br><br>The expected audience `aud` claim value, which can be a string or an array of strings. Note the audience claim is verified for ID tokens by default. ID token audience must be equal to the value of `quarkus.oidc.client-id` property. Use this property to override the expected value if your OpenID Connect provider sets a different audience claim value in ID tokens. Set it to `any` if your provider does not set ID token audience\` claim. Audience verification for access tokens is only done if this property is configured.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_AUDIENCE+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-subject-required"></a> [`quarkus.oidc.token.subject-required`](#quarkus-oidc_quarkus-oidc-token-subject-required) config_property_copy_button:+++quarkus.oidc.token.subject-required+++[]<br><br>`quarkus.oidc."tenant".token.subject-required` config_property_copy_button:+++quarkus.oidc."tenant".token.subject-required+++[]<br><br>Require that the token includes a `sub` (subject) claim which is a unique and never reassigned identifier for the current user. Note that if you enable this property and if UserInfo is also required, both the token and UserInfo `sub` claims must be present and match each other.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_SUBJECT_REQUIRED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-required-claims-claim-name"></a> [`quarkus.oidc.token.required-claims."claim-name"`](#quarkus-oidc_quarkus-oidc-token-required-claims-claim-name) config_property_copy_button:+++quarkus.oidc.token.required-claims."claim-name"+++[]<br><br>`quarkus.oidc."tenant".token.required-claims."claim-name"` config_property_copy_button:+++quarkus.oidc."tenant".token.required-claims."claim-name"+++[]<br><br>A map of required claims and their expected values. For example, `quarkus.oidc.token.required-claims.org_id = org_xyz` would require tokens to have the `org_id` claim to be present and set to `org_xyz`. On the other hand, if it was set to `org_xyz,org_abc`, the `org_id` claim would need to have both `org_xyz` and `org_abc` values. Strings and arrays of strings are currently the only supported types. Use `SecurityIdentityAugmentor` to verify claims of other types or complex claims.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_REQUIRED_CLAIMS__CLAIM_NAME_+++[] | Map\<String,Set\<String>> |  |
| <a id="quarkus-oidc_quarkus-oidc-token-token-type"></a> [`quarkus.oidc.token.token-type`](#quarkus-oidc_quarkus-oidc-token-token-type) config_property_copy_button:+++quarkus.oidc.token.token-type+++[]<br><br>`quarkus.oidc."tenant".token.token-type` config_property_copy_button:+++quarkus.oidc."tenant".token.token-type+++[]<br><br>Expected token type<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_TOKEN_TYPE+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-lifespan-grace"></a> [`quarkus.oidc.token.lifespan-grace`](#quarkus-oidc_quarkus-oidc-token-lifespan-grace) config_property_copy_button:+++quarkus.oidc.token.lifespan-grace+++[]<br><br>`quarkus.oidc."tenant".token.lifespan-grace` config_property_copy_button:+++quarkus.oidc."tenant".token.lifespan-grace+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_LIFESPAN_GRACE+++[] | int |  |
| <a id="quarkus-oidc_quarkus-oidc-token-age"></a> [`quarkus.oidc.token.age`](#quarkus-oidc_quarkus-oidc-token-age) config_property_copy_button:+++quarkus.oidc.token.age+++[]<br><br>`quarkus.oidc."tenant".token.age` config_property_copy_button:+++quarkus.oidc."tenant".token.age+++[]<br><br>Token age. It allows for the number of seconds to be specified that must not elapse since the `iat` (issued at) time. A small leeway to account for clock skew which can be configured with `quarkus.oidc.token.lifespan-grace` to verify the token expiry time can also be used to verify the token age property. Note that setting this property does not relax the requirement that Bearer and Code Flow JWT tokens must have a valid (`exp`) expiry claim value. The only exception where setting this property relaxes the requirement is when a logout token is sent with a back-channel logout request since the current OpenId Connect Back-Channel specification does not explicitly require the logout tokens to contain an `exp` claim. However, even if the current logout token is allowed to have no `exp` claim, the `exp` claim is still verified if the logout token contains it.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_AGE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-token-issued-at-required"></a> [`quarkus.oidc.token.issued-at-required`](#quarkus-oidc_quarkus-oidc-token-issued-at-required) config_property_copy_button:+++quarkus.oidc.token.issued-at-required+++[]<br><br>`quarkus.oidc."tenant".token.issued-at-required` config_property_copy_button:+++quarkus.oidc."tenant".token.issued-at-required+++[]<br><br>Require that the token includes a `iat` (issued at) claim Set this property to `false` if your JWT token does not contain an `iat` (issued at) claim. Note that ID token is always required to have an `iat` claim and therefore this property has no impact on the ID token verification process.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_ISSUED_AT_REQUIRED+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-token-principal-claim"></a> [`quarkus.oidc.token.principal-claim`](#quarkus-oidc_quarkus-oidc-token-principal-claim) config_property_copy_button:+++quarkus.oidc.token.principal-claim+++[]<br><br>`quarkus.oidc."tenant".token.principal-claim` config_property_copy_button:+++quarkus.oidc."tenant".token.principal-claim+++[]<br><br>Name of the claim which contains a principal name. By default, the `upn`, `preferred_username` and `sub` claims are checked.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_PRINCIPAL_CLAIM+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-refresh-expired"></a> [`quarkus.oidc.token.refresh-expired`](#quarkus-oidc_quarkus-oidc-token-refresh-expired) config_property_copy_button:+++quarkus.oidc.token.refresh-expired+++[]<br><br>`quarkus.oidc."tenant".token.refresh-expired` config_property_copy_button:+++quarkus.oidc."tenant".token.refresh-expired+++[]<br><br>Refresh expired authorization code flow ID or access tokens. If this property is enabled, a refresh token request is performed if the authorization code ID or access token has expired and, if successful, the local session is updated with the new set of tokens. Otherwise, the local session is invalidated and the user redirected to the OpenID Provider to re-authenticate. In this case, the user might not be challenged again if the OIDC provider session is still active. For this option be effective the `authentication.session-age-extension` property should also be set to a nonzero value since the refresh token is currently kept in the user session. This option is valid only when the application is of type `ApplicationType#WEB_APP`. This property is enabled if `quarkus.oidc.token.refresh-token-time-skew` is configured, you do not need to enable this property manually in this case.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_REFRESH_EXPIRED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-refresh-token-time-skew"></a> [`quarkus.oidc.token.refresh-token-time-skew`](#quarkus-oidc_quarkus-oidc-token-refresh-token-time-skew) config_property_copy_button:+++quarkus.oidc.token.refresh-token-time-skew+++[]<br><br>`quarkus.oidc."tenant".token.refresh-token-time-skew` config_property_copy_button:+++quarkus.oidc."tenant".token.refresh-token-time-skew+++[]<br><br>The refresh token time skew, in seconds. If this property is enabled, 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, a refresh is going to happen.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_REFRESH_TOKEN_TIME_SKEW+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-token-refresh-token-cache-time-to-live"></a> [`quarkus.oidc.token.refresh-token-cache-time-to-live`](#quarkus-oidc_quarkus-oidc-token-refresh-token-cache-time-to-live) config_property_copy_button:+++quarkus.oidc.token.refresh-token-cache-time-to-live+++[]<br><br>`quarkus.oidc."tenant".token.refresh-token-cache-time-to-live` config_property_copy_button:+++quarkus.oidc."tenant".token.refresh-token-cache-time-to-live+++[]<br><br>Duration for which a completed token refresh result is kept in memory.<br><br>When multiple concurrent requests carry the same expired session, each independently attempts to refresh the token. If the OIDC provider restricts how many times a refresh token can be used, duplicate refresh attempts may be rejected. Set this property to a short duration (for example, 5 seconds) to ensure only one refresh call is made and subsequent requests reuse the cached result.<br><br>Keep the value short (a few seconds) — it only needs to cover the window between concurrent requests arriving at the server. The cached tokens begin aging immediately, so longer values serve increasingly stale tokens without benefit.<br><br>The cache is per application instance with up to 10,000 entries.<br><br>This property is only effective when `refresh-expired()` is enabled.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_REFRESH_TOKEN_CACHE_TIME_TO_LIVE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `0S` |
| <a id="quarkus-oidc_quarkus-oidc-token-forced-jwk-refresh-interval"></a> [`quarkus.oidc.token.forced-jwk-refresh-interval`](#quarkus-oidc_quarkus-oidc-token-forced-jwk-refresh-interval) config_property_copy_button:+++quarkus.oidc.token.forced-jwk-refresh-interval+++[]<br><br>`quarkus.oidc."tenant".token.forced-jwk-refresh-interval` config_property_copy_button:+++quarkus.oidc."tenant".token.forced-jwk-refresh-interval+++[]<br><br>The forced JWK set refresh interval in minutes.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_FORCED_JWK_REFRESH_INTERVAL+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `10M` |
| <a id="quarkus-oidc_quarkus-oidc-token-header"></a> [`quarkus.oidc.token.header`](#quarkus-oidc_quarkus-oidc-token-header) config_property_copy_button:+++quarkus.oidc.token.header+++[]<br><br>`quarkus.oidc."tenant".token.header` config_property_copy_button:+++quarkus.oidc."tenant".token.header+++[]<br><br>Custom HTTP header that contains a bearer token. This option is valid only when the application is of type `ApplicationType#SERVICE`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_HEADER+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-authorization-scheme"></a> [`quarkus.oidc.token.authorization-scheme`](#quarkus-oidc_quarkus-oidc-token-authorization-scheme) config_property_copy_button:+++quarkus.oidc.token.authorization-scheme+++[]<br><br>`quarkus.oidc."tenant".token.authorization-scheme` config_property_copy_button:+++quarkus.oidc."tenant".token.authorization-scheme+++[]<br><br>HTTP Authorization header scheme.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_AUTHORIZATION_SCHEME+++[] | string | `Bearer` |
| <a id="quarkus-oidc_quarkus-oidc-token-signature-algorithm"></a> [`quarkus.oidc.token.signature-algorithm`](#quarkus-oidc_quarkus-oidc-token-signature-algorithm) config_property_copy_button:+++quarkus.oidc.token.signature-algorithm+++[]<br><br>`quarkus.oidc."tenant".token.signature-algorithm` config_property_copy_button:+++quarkus.oidc."tenant".token.signature-algorithm+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_SIGNATURE_ALGORITHM+++[] | `rs256`, `rs384`, `rs512`, `ps256`, `ps384`, `ps512`, `es256`, `es384`, `es512`, `eddsa` |  |
| <a id="quarkus-oidc_quarkus-oidc-token-decryption-key-location"></a> [`quarkus.oidc.token.decryption-key-location`](#quarkus-oidc_quarkus-oidc-token-decryption-key-location) config_property_copy_button:+++quarkus.oidc.token.decryption-key-location+++[]<br><br>`quarkus.oidc."tenant".token.decryption-key-location` config_property_copy_button:+++quarkus.oidc."tenant".token.decryption-key-location+++[]<br><br>Decryption key location for encrypted ID and access tokens.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_DECRYPTION_KEY_LOCATION+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-decrypt-id-token"></a> [`quarkus.oidc.token.decrypt-id-token`](#quarkus-oidc_quarkus-oidc-token-decrypt-id-token) config_property_copy_button:+++quarkus.oidc.token.decrypt-id-token+++[]<br><br>`quarkus.oidc."tenant".token.decrypt-id-token` config_property_copy_button:+++quarkus.oidc."tenant".token.decrypt-id-token+++[]<br><br>Decrypt ID token. If the `Token#decryptionKeyLocation()` property is configured then the decryption key will be loaded from this location. Otherwise, if the JWT authentication token key is available, then it will be used to decrypt the token. Finally, if a client secret is configured, it will be used as a secret key to decrypt the token.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_DECRYPT_ID_TOKEN+++[] | boolean |  |
| <a id="quarkus-oidc_quarkus-oidc-token-decrypt-access-token"></a> [`quarkus.oidc.token.decrypt-access-token`](#quarkus-oidc_quarkus-oidc-token-decrypt-access-token) config_property_copy_button:+++quarkus.oidc.token.decrypt-access-token+++[]<br><br>`quarkus.oidc."tenant".token.decrypt-access-token` config_property_copy_button:+++quarkus.oidc."tenant".token.decrypt-access-token+++[]<br><br>Decrypt access token. If the `Token#decryptionKeyLocation()` property is configured then the decryption key will be loaded from this location. Otherwise, if the JWT authentication token key is available, then it will be used to decrypt the token. Finally, if a client secret is configured, it will be used as a secret key to decrypt the token.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_DECRYPT_ACCESS_TOKEN+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-decryption-algorithm"></a> [`quarkus.oidc.token.decryption-algorithm`](#quarkus-oidc_quarkus-oidc-token-decryption-algorithm) config_property_copy_button:+++quarkus.oidc.token.decryption-algorithm+++[]<br><br>`quarkus.oidc."tenant".token.decryption-algorithm` config_property_copy_button:+++quarkus.oidc."tenant".token.decryption-algorithm+++[]<br><br>ID and access token key decryption algorithm<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_DECRYPTION_ALGORITHM+++[] | `rsa-oaep`, `rsa-oaep-256`, `a256-gcmkw` | `RSA-OAEP if the decryption key is a private key, A256GCMKW if it is a secret key` |
| <a id="quarkus-oidc_quarkus-oidc-token-allow-jwt-introspection"></a> [`quarkus.oidc.token.allow-jwt-introspection`](#quarkus-oidc_quarkus-oidc-token-allow-jwt-introspection) config_property_copy_button:+++quarkus.oidc.token.allow-jwt-introspection+++[]<br><br>`quarkus.oidc."tenant".token.allow-jwt-introspection` config_property_copy_button:+++quarkus.oidc."tenant".token.allow-jwt-introspection+++[]<br><br>Allow the remote introspection of JWT tokens when no matching JWK key is available. This property is set to `true` by default for backward-compatibility reasons. It is planned that this default value will be changed to `false` in an upcoming release. Also note this property is ignored if JWK endpoint URI is not available and introspecting the tokens is the only verification option.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_ALLOW_JWT_INTROSPECTION+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-token-require-jwt-introspection-only"></a> [`quarkus.oidc.token.require-jwt-introspection-only`](#quarkus-oidc_quarkus-oidc-token-require-jwt-introspection-only) config_property_copy_button:+++quarkus.oidc.token.require-jwt-introspection-only+++[]<br><br>`quarkus.oidc."tenant".token.require-jwt-introspection-only` config_property_copy_button:+++quarkus.oidc."tenant".token.require-jwt-introspection-only+++[]<br><br>Require that JWT tokens are only introspected remotely.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_REQUIRE_JWT_INTROSPECTION_ONLY+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-allow-opaque-token-introspection"></a> [`quarkus.oidc.token.allow-opaque-token-introspection`](#quarkus-oidc_quarkus-oidc-token-allow-opaque-token-introspection) config_property_copy_button:+++quarkus.oidc.token.allow-opaque-token-introspection+++[]<br><br>`quarkus.oidc."tenant".token.allow-opaque-token-introspection` config_property_copy_button:+++quarkus.oidc."tenant".token.allow-opaque-token-introspection+++[]<br><br>Allow the remote introspection of the opaque tokens. Set this property to `false` if only JWT tokens are expected.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_ALLOW_OPAQUE_TOKEN_INTROSPECTION+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-token-customizer-name"></a> [`quarkus.oidc.token.customizer-name`](#quarkus-oidc_quarkus-oidc-token-customizer-name) config_property_copy_button:+++quarkus.oidc.token.customizer-name+++[]<br><br>`quarkus.oidc."tenant".token.customizer-name` config_property_copy_button:+++quarkus.oidc."tenant".token.customizer-name+++[]<br><br>Token customizer name. Allows to select a tenant specific token customizer as a named bean. Prefer using `TenantFeature` qualifier when registering custom `TokenCustomizer`. Use this property only to refer to `TokenCustomizer` implementations provided by this extension.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_CUSTOMIZER_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-verify-access-token-with-user-info"></a> [`quarkus.oidc.token.verify-access-token-with-user-info`](#quarkus-oidc_quarkus-oidc-token-verify-access-token-with-user-info) config_property_copy_button:+++quarkus.oidc.token.verify-access-token-with-user-info+++[]<br><br>`quarkus.oidc."tenant".token.verify-access-token-with-user-info` config_property_copy_button:+++quarkus.oidc."tenant".token.verify-access-token-with-user-info+++[]<br><br>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 must be accepted but OpenId Connect provider does not have a token introspection endpoint. This property has no effect when JWT tokens must be verified.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_VERIFY_ACCESS_TOKEN_WITH_USER_INFO+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-binding-certificate"></a> [`quarkus.oidc.token.binding.certificate`](#quarkus-oidc_quarkus-oidc-token-binding-certificate) config_property_copy_button:+++quarkus.oidc.token.binding.certificate+++[]<br><br>`quarkus.oidc."tenant".token.binding.certificate` config_property_copy_button:+++quarkus.oidc."tenant".token.binding.certificate+++[]<br><br>If a bearer access token must be bound to the client mTLS certificate. It requires that JWT tokens must contain a confirmation `cnf` claim with a SHA256 certificate thumbprint matching the client mTLS certificate's SHA256 certificate thumbprint.<br><br>For opaque tokens, SHA256 certificate thumbprint must be returned in their introspection response.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_BINDING_CERTIFICATE+++[] | boolean | `false` |
| <a id="quarkus-oidc_section_quarkus-oidc-dpop"></a> [Configuration of the Demonstrating Proof of Possession (DPoP) proof verification](#quarkus-oidc_section_quarkus-oidc-dpop) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-dpop-proof-age"></a> [`quarkus.oidc.dpop.proof-age`](#quarkus-oidc_quarkus-oidc-dpop-proof-age) config_property_copy_button:+++quarkus.oidc.dpop.proof-age+++[]<br><br>`quarkus.oidc."tenant".dpop.proof-age` config_property_copy_button:+++quarkus.oidc."tenant".dpop.proof-age+++[]<br><br>The maximum acceptable age of a DPoP proof.<br><br>Evaluated as the difference between the server's current time and the DPoP proof's `iat` (issued at) claim. Proofs exceeding this age are rejected with an `invalid_dpop_proof` error. Leeway for clock skew can be adjusted using `Token#lifespanGrace()`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_DPOP_PROOF_AGE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `2M` |
| <a id="quarkus-oidc_section_quarkus-oidc-logout"></a> [RP-initiated, back-channel and front-channel logout configuration](#quarkus-oidc_section_quarkus-oidc-logout) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-logout-path"></a> [`quarkus.oidc.logout.path`](#quarkus-oidc_quarkus-oidc-logout-path) config_property_copy_button:+++quarkus.oidc.logout.path+++[]<br><br>`quarkus.oidc."tenant".logout.path` config_property_copy_button:+++quarkus.oidc."tenant".logout.path+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-post-logout-path"></a> [`quarkus.oidc.logout.post-logout-path`](#quarkus-oidc_quarkus-oidc-logout-post-logout-path) config_property_copy_button:+++quarkus.oidc.logout.post-logout-path+++[]<br><br>`quarkus.oidc."tenant".logout.post-logout-path` config_property_copy_button:+++quarkus.oidc."tenant".logout.post-logout-path+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_POST_LOGOUT_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-post-logout-uri-param"></a> [`quarkus.oidc.logout.post-logout-uri-param`](#quarkus-oidc_quarkus-oidc-logout-post-logout-uri-param) config_property_copy_button:+++quarkus.oidc.logout.post-logout-uri-param+++[]<br><br>`quarkus.oidc."tenant".logout.post-logout-uri-param` config_property_copy_button:+++quarkus.oidc."tenant".logout.post-logout-uri-param+++[]<br><br>Name of the post logout URI parameter which is added as a query parameter to the logout redirect URI.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_POST_LOGOUT_URI_PARAM+++[] | string | `post_logout_redirect_uri` |
| <a id="quarkus-oidc_quarkus-oidc-logout-extra-params-query-parameter-name"></a> [`quarkus.oidc.logout.extra-params."query-parameter-name"`](#quarkus-oidc_quarkus-oidc-logout-extra-params-query-parameter-name) config_property_copy_button:+++quarkus.oidc.logout.extra-params."query-parameter-name"+++[]<br><br>`quarkus.oidc."tenant".logout.extra-params."query-parameter-name"` config_property_copy_button:+++quarkus.oidc."tenant".logout.extra-params."query-parameter-name"+++[]<br><br>Additional properties which is added as the query parameters to the logout redirect URI.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_EXTRA_PARAMS__QUERY_PARAMETER_NAME_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-path"></a> [`quarkus.oidc.logout.backchannel.path`](#quarkus-oidc_quarkus-oidc-logout-backchannel-path) config_property_copy_button:+++quarkus.oidc.logout.backchannel.path+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.path` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.path+++[]<br><br>The relative path of the Back-Channel Logout endpoint at the application. It must start with the forward slash '/', for example, '/back-channel-logout'. This value is always resolved relative to 'quarkus.http.root-path'.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-token-cache-size"></a> [`quarkus.oidc.logout.backchannel.token-cache-size`](#quarkus-oidc_quarkus-oidc-logout-backchannel-token-cache-size) config_property_copy_button:+++quarkus.oidc.logout.backchannel.token-cache-size+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.token-cache-size` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.token-cache-size+++[]<br><br>Maximum number of logout tokens that can be cached before they are matched against ID tokens stored in session cookies.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_TOKEN_CACHE_SIZE+++[] | int | `10` |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-token-cache-time-to-live"></a> [`quarkus.oidc.logout.backchannel.token-cache-time-to-live`](#quarkus-oidc_quarkus-oidc-logout-backchannel-token-cache-time-to-live) config_property_copy_button:+++quarkus.oidc.logout.backchannel.token-cache-time-to-live+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.token-cache-time-to-live` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.token-cache-time-to-live+++[]<br><br>Number of minutes a logout token can be cached for.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_TOKEN_CACHE_TIME_TO_LIVE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `10M` |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-clean-up-timer-interval"></a> [`quarkus.oidc.logout.backchannel.clean-up-timer-interval`](#quarkus-oidc_quarkus-oidc-logout-backchannel-clean-up-timer-interval) config_property_copy_button:+++quarkus.oidc.logout.backchannel.clean-up-timer-interval+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.clean-up-timer-interval` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.clean-up-timer-interval+++[]<br><br>Token cache timer interval. If this property is set, a timer checks and removes the stale entries periodically.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_CLEAN_UP_TIMER_INTERVAL+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-logout-token-key"></a> [`quarkus.oidc.logout.backchannel.logout-token-key`](#quarkus-oidc_quarkus-oidc-logout-backchannel-logout-token-key) config_property_copy_button:+++quarkus.oidc.logout.backchannel.logout-token-key+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.logout-token-key` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.logout-token-key+++[]<br><br>Logout token claim whose value is used as a key for caching the tokens. Only `sub` (subject) and `sid` (session id) claims can be used as keys. Set it to `sid` only if ID tokens issued by the OIDC provider have no `sub` but have `sid` claim.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_LOGOUT_TOKEN_KEY+++[] | string | `sub` |
| <a id="quarkus-oidc_quarkus-oidc-logout-backchannel-logout-all-sessions"></a> [`quarkus.oidc.logout.backchannel.logout-all-sessions`](#quarkus-oidc_quarkus-oidc-logout-backchannel-logout-all-sessions) config_property_copy_button:+++quarkus.oidc.logout.backchannel.logout-all-sessions+++[]<br><br>`quarkus.oidc."tenant".logout.backchannel.logout-all-sessions` config_property_copy_button:+++quarkus.oidc."tenant".logout.backchannel.logout-all-sessions+++[]<br><br>Log out all the current sessions of the user identified by the logout token `sub` (subject) claim when this token has no `sid` (session id) claim, for example, when the user has logged in from several browsers. By default, such a logout token logs out only the first session which is found after the token has arrived. Enabling this property keeps the logout token cached until it expires or is evicted, so all the sessions created before the token was issued are logged out as they are found. Logout tokens with the `sid` claim always log out only the session identified by this claim, therefore this property can not be enabled when `logout-token-key` is set to `sid`. Logout tokens without the `sid` claim are rejected when they have no `iat` (issued at) claim, because sessions created after the logout token was issued must not be logged out.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_BACKCHANNEL_LOGOUT_ALL_SESSIONS+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-logout-frontchannel-path"></a> [`quarkus.oidc.logout.frontchannel.path`](#quarkus-oidc_quarkus-oidc-logout-frontchannel-path) config_property_copy_button:+++quarkus.oidc.logout.frontchannel.path+++[]<br><br>`quarkus.oidc."tenant".logout.frontchannel.path` config_property_copy_button:+++quarkus.oidc."tenant".logout.frontchannel.path+++[]<br><br>The relative path of the Front-Channel Logout endpoint at the application.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_FRONTCHANNEL_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-clear-site-data"></a> [`quarkus.oidc.logout.clear-site-data`](#quarkus-oidc_quarkus-oidc-logout-clear-site-data) config_property_copy_button:+++quarkus.oidc.logout.clear-site-data+++[]<br><br>`quarkus.oidc."tenant".logout.clear-site-data` config_property_copy_button:+++quarkus.oidc."tenant".logout.clear-site-data+++[]<br><br>Clear-Site-Data header directives<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_CLEAR_SITE_DATA+++[] | list of tooltip:cache[Clear cache], tooltip:client-hints[Clear client hints.], tooltip:cookies[Clear cookies.], tooltip:execution-contexts[Clear execution contexts], tooltip:storage[Clear storage], tooltip:wildcard[Clear all types of data] |  |
| <a id="quarkus-oidc_quarkus-oidc-logout-logout-mode"></a> [`quarkus.oidc.logout.logout-mode`](#quarkus-oidc_quarkus-oidc-logout-logout-mode) config_property_copy_button:+++quarkus.oidc.logout.logout-mode+++[]<br><br>`quarkus.oidc."tenant".logout.logout-mode` config_property_copy_button:+++quarkus.oidc."tenant".logout.logout-mode+++[]<br><br>Logout mode<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_LOGOUT_LOGOUT_MODE+++[] | tooltip:query[Logout parameters are encoded in the query string], tooltip:form-post[Logout parameters are encoded as HTML form values that are auto-submitted in the browser and transmitted by the HTTP POST method using the application/x-www-form-urlencoded content type] | tooltip:query[Logout parameters are encoded in the query string] |
| <a id="quarkus-oidc_section_quarkus-oidc-certificate-chain"></a> [Configuration of the certificate chain which can be used to verify tokens](#quarkus-oidc_section_quarkus-oidc-certificate-chain) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-certificate-chain-leaf-certificate-name"></a> [`quarkus.oidc.certificate-chain.leaf-certificate-name`](#quarkus-oidc_quarkus-oidc-certificate-chain-leaf-certificate-name) config_property_copy_button:+++quarkus.oidc.certificate-chain.leaf-certificate-name+++[]<br><br>`quarkus.oidc."tenant".certificate-chain.leaf-certificate-name` config_property_copy_button:+++quarkus.oidc."tenant".certificate-chain.leaf-certificate-name+++[]<br><br>Common name of the leaf certificate. It must be set if the `trust-store-file` does not have this certificate imported.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CERTIFICATE_CHAIN_LEAF_CERTIFICATE_NAME+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-file"></a> [`quarkus.oidc.certificate-chain.trust-store-file`](#quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-file) config_property_copy_button:+++quarkus.oidc.certificate-chain.trust-store-file+++[]<br><br>`quarkus.oidc."tenant".certificate-chain.trust-store-file` config_property_copy_button:+++quarkus.oidc."tenant".certificate-chain.trust-store-file+++[]<br><br>Truststore file which keeps thumbprints of the trusted certificates.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CERTIFICATE_CHAIN_TRUST_STORE_FILE+++[] | path |  |
| <a id="quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-password"></a> [`quarkus.oidc.certificate-chain.trust-store-password`](#quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-password) config_property_copy_button:+++quarkus.oidc.certificate-chain.trust-store-password+++[]<br><br>`quarkus.oidc."tenant".certificate-chain.trust-store-password` config_property_copy_button:+++quarkus.oidc."tenant".certificate-chain.trust-store-password+++[]<br><br>A parameter to specify the password of the truststore file if it is configured with `trust-store-file`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CERTIFICATE_CHAIN_TRUST_STORE_PASSWORD+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-cert-alias"></a> [`quarkus.oidc.certificate-chain.trust-store-cert-alias`](#quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-cert-alias) config_property_copy_button:+++quarkus.oidc.certificate-chain.trust-store-cert-alias+++[]<br><br>`quarkus.oidc."tenant".certificate-chain.trust-store-cert-alias` config_property_copy_button:+++quarkus.oidc."tenant".certificate-chain.trust-store-cert-alias+++[]<br><br>A parameter to specify the alias of the truststore certificate.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CERTIFICATE_CHAIN_TRUST_STORE_CERT_ALIAS+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-file-type"></a> [`quarkus.oidc.certificate-chain.trust-store-file-type`](#quarkus-oidc_quarkus-oidc-certificate-chain-trust-store-file-type) config_property_copy_button:+++quarkus.oidc.certificate-chain.trust-store-file-type+++[]<br><br>`quarkus.oidc."tenant".certificate-chain.trust-store-file-type` config_property_copy_button:+++quarkus.oidc."tenant".certificate-chain.trust-store-file-type+++[]<br><br>An optional parameter to specify type of the truststore file. If not given, the type is automatically detected based on the file name.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CERTIFICATE_CHAIN_TRUST_STORE_FILE_TYPE+++[] | string |  |
| <a id="quarkus-oidc_section_quarkus-oidc-authentication"></a> [Configuration for managing an authorization code flow](#quarkus-oidc_section_quarkus-oidc-authentication) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-authentication-response-mode"></a> [`quarkus.oidc.authentication.response-mode`](#quarkus-oidc_quarkus-oidc-authentication-response-mode) config_property_copy_button:+++quarkus.oidc.authentication.response-mode+++[]<br><br>`quarkus.oidc."tenant".authentication.response-mode` config_property_copy_button:+++quarkus.oidc."tenant".authentication.response-mode+++[]<br><br>Authorization code flow response mode.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_RESPONSE_MODE+++[] | tooltip:query[Authorization response parameters are encoded in the query string added to the `redirect_uri`], tooltip:form-post[Authorization response parameters are encoded as HTML form values that are auto-submitted in the browser and transmitted by the HTTP POST method using the application/x-www-form-urlencoded content type] | tooltip:query[Authorization response parameters are encoded in the query string added to the `redirect_uri`] |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cache-control"></a> [`quarkus.oidc.authentication.cache-control`](#quarkus-oidc_quarkus-oidc-authentication-cache-control) config_property_copy_button:+++quarkus.oidc.authentication.cache-control+++[]<br><br>`quarkus.oidc."tenant".authentication.cache-control` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cache-control+++[]<br><br>Set of cache-control directives that must be set when a new session cookie is created, either after a successful authorization code completion or token refresh.<br><br>Currently, only a `no-store` directive that prohibits caching the session cookie anywhere in the client request chain can be configured.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_CACHE_CONTROL+++[] | list of `no-store` |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-redirect-path"></a> [`quarkus.oidc.authentication.redirect-path`](#quarkus-oidc_quarkus-oidc-authentication-redirect-path) config_property_copy_button:+++quarkus.oidc.authentication.redirect-path+++[]<br><br>`quarkus.oidc."tenant".authentication.redirect-path` config_property_copy_button:+++quarkus.oidc."tenant".authentication.redirect-path+++[]<br><br>The relative path for calculating a `redirect_uri` query parameter. It has to start from a forward slash and is appended to the request URI's host and port. For example, if the current request URI is `https://localhost:8080/service`, a `redirect_uri` parameter is set to `https://localhost:8080/` if this property is set to `/` and be the same as the request URI if this property has not been configured. Note the original request URI is restored after the user has authenticated if `restorePathAfterRedirect` is set to `true`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_REDIRECT_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-restore-path-after-redirect"></a> [`quarkus.oidc.authentication.restore-path-after-redirect`](#quarkus-oidc_quarkus-oidc-authentication-restore-path-after-redirect) config_property_copy_button:+++quarkus.oidc.authentication.restore-path-after-redirect+++[]<br><br>`quarkus.oidc."tenant".authentication.restore-path-after-redirect` config_property_copy_button:+++quarkus.oidc."tenant".authentication.restore-path-after-redirect+++[]<br><br>If this property is set to `true`, the original request URI which was used before the authentication is restored after the user has been redirected back to the application. Note if `redirectPath` property is not set, the original request URI is restored even if this property is disabled.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_RESTORE_PATH_AFTER_REDIRECT+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-remove-redirect-parameters"></a> [`quarkus.oidc.authentication.remove-redirect-parameters`](#quarkus-oidc_quarkus-oidc-authentication-remove-redirect-parameters) config_property_copy_button:+++quarkus.oidc.authentication.remove-redirect-parameters+++[]<br><br>`quarkus.oidc."tenant".authentication.remove-redirect-parameters` config_property_copy_button:+++quarkus.oidc."tenant".authentication.remove-redirect-parameters+++[]<br><br>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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_REMOVE_REDIRECT_PARAMETERS+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-error-path"></a> [`quarkus.oidc.authentication.error-path`](#quarkus-oidc_quarkus-oidc-authentication-error-path) config_property_copy_button:+++quarkus.oidc.authentication.error-path+++[]<br><br>`quarkus.oidc."tenant".authentication.error-path` config_property_copy_button:+++quarkus.oidc."tenant".authentication.error-path+++[]<br><br>Relative path to the public endpoint which processes the error response from the OIDC authorization endpoint. If the user authentication has failed, the OIDC provider returns an `error` and an optional `error_description` parameters, instead of the expected authorization `code`. If this property is set, the user is redirected to the endpoint which can return a user-friendly error description page. It has to start from a forward slash and is appended to the request URI's host and port. For example, if it is set as `/error` and the current request URI is `https://localhost:8080/callback?error=invalid_scope`, a redirect is made to `https://localhost:8080/error?error=invalid_scope`. If this property is not set, HTTP 401 status is returned in case of the user authentication failure.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_ERROR_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-session-expired-path"></a> [`quarkus.oidc.authentication.session-expired-path`](#quarkus-oidc_quarkus-oidc-authentication-session-expired-path) config_property_copy_button:+++quarkus.oidc.authentication.session-expired-path+++[]<br><br>`quarkus.oidc."tenant".authentication.session-expired-path` config_property_copy_button:+++quarkus.oidc."tenant".authentication.session-expired-path+++[]<br><br>Relative path to the public endpoint which an authenticated user is redirected to when the session has expired.<br><br>When the OIDC session has expired and the session can not be refreshed, a user is redirected to the OIDC provider to re-authenticate. The user experience may not be ideal in this case as it may not be obvious to the authenticated user why an authentication challenge is returned.<br><br>Set this property if you would like the user whose session has expired be redirected to a public application specific page instead, which can inform that the session has expired and advise the user to re-authenticated by following a link to the secured initial entry page.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_SESSION_EXPIRED_PATH+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-verify-access-token"></a> [`quarkus.oidc.authentication.verify-access-token`](#quarkus-oidc_quarkus-oidc-authentication-verify-access-token) config_property_copy_button:+++quarkus.oidc.authentication.verify-access-token+++[]<br><br>`quarkus.oidc."tenant".authentication.verify-access-token` config_property_copy_button:+++quarkus.oidc."tenant".authentication.verify-access-token+++[]<br><br>Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow.<br><br>ID token is always verified on every user request as the primary token which is used to represent the principal and extract the roles.<br><br>Authorization code flow access token is meant to be propagated to downstream services and is not verified by default unless `quarkus.oidc.roles.source` property is set to `accesstoken` which means the authorization decision is based on the roles extracted from the access token.<br><br>Authorization code flow access token verification is also enabled if this token is injected as JsonWebToken. Set this property to `false` if it is not required.<br><br>Bearer access token is always verified.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_VERIFY_ACCESS_TOKEN+++[] | boolean | `true when access token is injected as the JsonWebToken bean, false otherwise` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-force-redirect-https-scheme"></a> [`quarkus.oidc.authentication.force-redirect-https-scheme`](#quarkus-oidc_quarkus-oidc-authentication-force-redirect-https-scheme) config_property_copy_button:+++quarkus.oidc.authentication.force-redirect-https-scheme+++[]<br><br>`quarkus.oidc."tenant".authentication.force-redirect-https-scheme` config_property_copy_button:+++quarkus.oidc."tenant".authentication.force-redirect-https-scheme+++[]<br><br>Force `https` as the `redirect_uri` parameter scheme when running behind an SSL/TLS terminating reverse proxy. This property, if enabled, also affects the logout `post_logout_redirect_uri` and the local redirect requests.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_FORCE_REDIRECT_HTTPS_SCHEME+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-scopes"></a> [`quarkus.oidc.authentication.scopes`](#quarkus-oidc_quarkus-oidc-authentication-scopes) config_property_copy_button:+++quarkus.oidc.authentication.scopes+++[]<br><br>`quarkus.oidc."tenant".authentication.scopes` config_property_copy_button:+++quarkus.oidc."tenant".authentication.scopes+++[]<br><br>List of scopes<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_SCOPES+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-scope-separator"></a> [`quarkus.oidc.authentication.scope-separator`](#quarkus-oidc_quarkus-oidc-authentication-scope-separator) config_property_copy_button:+++quarkus.oidc.authentication.scope-separator+++[]<br><br>`quarkus.oidc."tenant".authentication.scope-separator` config_property_copy_button:+++quarkus.oidc."tenant".authentication.scope-separator+++[]<br><br>The separator which is used when more than one scope is configured. A single space is used by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_SCOPE_SEPARATOR+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-nonce-required"></a> [`quarkus.oidc.authentication.nonce-required`](#quarkus-oidc_quarkus-oidc-authentication-nonce-required) config_property_copy_button:+++quarkus.oidc.authentication.nonce-required+++[]<br><br>`quarkus.oidc."tenant".authentication.nonce-required` config_property_copy_button:+++quarkus.oidc."tenant".authentication.nonce-required+++[]<br><br>Require that ID token includes a `nonce` claim which must match `nonce` authentication request query parameter. Enabling this property can help mitigate replay attacks. Do not enable this property if your OpenId Connect provider does not support setting `nonce` in ID token or if you work with OAuth2 provider such as `GitHub` which does not issue ID tokens.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_NONCE_REQUIRED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-add-openid-scope"></a> [`quarkus.oidc.authentication.add-openid-scope`](#quarkus-oidc_quarkus-oidc-authentication-add-openid-scope) config_property_copy_button:+++quarkus.oidc.authentication.add-openid-scope+++[]<br><br>`quarkus.oidc."tenant".authentication.add-openid-scope` config_property_copy_button:+++quarkus.oidc."tenant".authentication.add-openid-scope+++[]<br><br>Add the `openid` scope automatically to the list of scopes. This is required for OpenId Connect providers, but does not work for OAuth2 providers such as Twitter OAuth2, which do not accept this scope and throw errors.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_ADD_OPENID_SCOPE+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-extra-params-parameter-name"></a> [`quarkus.oidc.authentication.extra-params."parameter-name"`](#quarkus-oidc_quarkus-oidc-authentication-extra-params-parameter-name) config_property_copy_button:+++quarkus.oidc.authentication.extra-params."parameter-name"+++[]<br><br>`quarkus.oidc."tenant".authentication.extra-params."parameter-name"` config_property_copy_button:+++quarkus.oidc."tenant".authentication.extra-params."parameter-name"+++[]<br><br>Additional properties added as query parameters to the authentication redirect URI.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_EXTRA_PARAMS__PARAMETER_NAME_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-forward-params"></a> [`quarkus.oidc.authentication.forward-params`](#quarkus-oidc_quarkus-oidc-authentication-forward-params) config_property_copy_button:+++quarkus.oidc.authentication.forward-params+++[]<br><br>`quarkus.oidc."tenant".authentication.forward-params` config_property_copy_button:+++quarkus.oidc."tenant".authentication.forward-params+++[]<br><br>Request URL query parameters which, if present, are added to the authentication redirect URI.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_FORWARD_PARAMS+++[] | list of string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-force-secure"></a> [`quarkus.oidc.authentication.cookie-force-secure`](#quarkus-oidc_quarkus-oidc-authentication-cookie-force-secure) config_property_copy_button:+++quarkus.oidc.authentication.cookie-force-secure+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-force-secure` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-force-secure+++[]<br><br>If enabled the state, session, and post logout cookies have their `secure` parameter set to `true` when HTTP is used. It might be necessary when running behind an SSL/TLS terminating reverse proxy. The cookies are always secure if HTTPS is used, even if this property is set to false.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_FORCE_SECURE+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-suffix"></a> [`quarkus.oidc.authentication.cookie-suffix`](#quarkus-oidc_quarkus-oidc-authentication-cookie-suffix) config_property_copy_button:+++quarkus.oidc.authentication.cookie-suffix+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-suffix` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-suffix+++[]<br><br>Cookie name suffix. For example, a session cookie name for the default OIDC tenant is `q_session` but can be changed to `q_session_test` if this property is set to `test`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_SUFFIX+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-path"></a> [`quarkus.oidc.authentication.cookie-path`](#quarkus-oidc_quarkus-oidc-authentication-cookie-path) config_property_copy_button:+++quarkus.oidc.authentication.cookie-path+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-path` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-path+++[]<br><br>Cookie path parameter value which, if set, is used to set a path parameter for the session, state and post logout cookies. The `cookie-path-header` property, if set, is checked first.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_PATH+++[] | string | `/` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-path-header"></a> [`quarkus.oidc.authentication.cookie-path-header`](#quarkus-oidc_quarkus-oidc-authentication-cookie-path-header) config_property_copy_button:+++quarkus.oidc.authentication.cookie-path-header+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-path-header` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-path-header+++[]<br><br>Cookie path header parameter value which, if set, identifies the incoming HTTP header whose value is used to set a path parameter for the session, state and post logout cookies. If the header is missing, the `cookie-path` property is checked.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_PATH_HEADER+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-domain"></a> [`quarkus.oidc.authentication.cookie-domain`](#quarkus-oidc_quarkus-oidc-authentication-cookie-domain) config_property_copy_button:+++quarkus.oidc.authentication.cookie-domain+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-domain` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-domain+++[]<br><br>Cookie domain parameter value which, if set, is used for the session, state and post logout cookies.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_DOMAIN+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-cookie-same-site"></a> [`quarkus.oidc.authentication.cookie-same-site`](#quarkus-oidc_quarkus-oidc-authentication-cookie-same-site) config_property_copy_button:+++quarkus.oidc.authentication.cookie-same-site+++[]<br><br>`quarkus.oidc."tenant".authentication.cookie-same-site` config_property_copy_button:+++quarkus.oidc."tenant".authentication.cookie-same-site+++[]<br><br>SameSite attribute for the session cookie.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_COOKIE_SAME_SITE+++[] | `strict`, `lax`, `none` | `lax` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-state-cookie-same-site"></a> [`quarkus.oidc.authentication.state-cookie-same-site`](#quarkus-oidc_quarkus-oidc-authentication-state-cookie-same-site) config_property_copy_button:+++quarkus.oidc.authentication.state-cookie-same-site+++[]<br><br>`quarkus.oidc."tenant".authentication.state-cookie-same-site` config_property_copy_button:+++quarkus.oidc."tenant".authentication.state-cookie-same-site+++[]<br><br>SameSite attribute for the state cookie.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_STATE_COOKIE_SAME_SITE+++[] | `strict`, `lax`, `none` | `lax` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-allow-multiple-code-flows"></a> [`quarkus.oidc.authentication.allow-multiple-code-flows`](#quarkus-oidc_quarkus-oidc-authentication-allow-multiple-code-flows) config_property_copy_button:+++quarkus.oidc.authentication.allow-multiple-code-flows+++[]<br><br>`quarkus.oidc."tenant".authentication.allow-multiple-code-flows` config_property_copy_button:+++quarkus.oidc."tenant".authentication.allow-multiple-code-flows+++[]<br><br>If a state cookie is present, a `state` query parameter must also be present and both the state cookie name suffix and state cookie value must match the value of the `state` query parameter when the redirect path matches the current path. However, if multiple authentications are attempted from the same browser, for example, from the different browser tabs, then the currently available state cookie might represent the authentication flow initiated from another tab and not related to the current request. Disable this property to permit only a single authorization code flow in the same browser.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_ALLOW_MULTIPLE_CODE_FLOWS+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-fail-on-missing-state-param"></a> [`quarkus.oidc.authentication.fail-on-missing-state-param`](#quarkus-oidc_quarkus-oidc-authentication-fail-on-missing-state-param) config_property_copy_button:+++quarkus.oidc.authentication.fail-on-missing-state-param+++[]<br><br>`quarkus.oidc."tenant".authentication.fail-on-missing-state-param` config_property_copy_button:+++quarkus.oidc."tenant".authentication.fail-on-missing-state-param+++[]<br><br>Fail with the HTTP 401 error if the state cookie is present but no state query parameter is present.<br><br>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 blocks it and the state cookie created by Quarkus remains in the browser cache. Quarkus reports an authentication failure when it detects such an old state cookie but find no matching state query parameter.<br><br>Reporting HTTP 401 error is usually the right thing to do in such cases, it minimizes a risk of the browser redirect loop but also can identify problems in the way SPA or Quarkus application manage redirects. For example, enabling `java-script-auto-redirect` or having the provider redirect to URL configured with `redirect-path` might be needed to avoid such errors.<br><br>However, setting this property to `false` might help if the above options are not suitable. It causes a new authentication redirect to OpenId Connect provider. Doing so might increase the risk of browser redirect loops.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_FAIL_ON_MISSING_STATE_PARAM+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-fail-on-unresolved-kid"></a> [`quarkus.oidc.authentication.fail-on-unresolved-kid`](#quarkus-oidc_quarkus-oidc-authentication-fail-on-unresolved-kid) config_property_copy_button:+++quarkus.oidc.authentication.fail-on-unresolved-kid+++[]<br><br>`quarkus.oidc."tenant".authentication.fail-on-unresolved-kid` config_property_copy_button:+++quarkus.oidc."tenant".authentication.fail-on-unresolved-kid+++[]<br><br>Fail with the HTTP 401 error if the ID token signature can not be verified during the re-authentication only due to an unresolved token key identifier (`kid`).<br><br>This property might need to be disabled when multiple tab authentications are allowed, with one of the tabs keeping an expired ID token with its `kid` unresolved due to the verification key set refreshed due to another tab initiating an authorization code flow. In such cases, instead of failing with the HTTP 401 error, redirecting the user to re-authenticate with the HTTP 302 status may provide better user experience.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_FAIL_ON_UNRESOLVED_KID+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-user-info-required"></a> [`quarkus.oidc.authentication.user-info-required`](#quarkus-oidc_quarkus-oidc-authentication-user-info-required) config_property_copy_button:+++quarkus.oidc.authentication.user-info-required+++[]<br><br>`quarkus.oidc."tenant".authentication.user-info-required` config_property_copy_button:+++quarkus.oidc."tenant".authentication.user-info-required+++[]<br><br>If this property is set to `true`, an OIDC UserInfo endpoint is called.<br><br>This property is enabled automatically if `quarkus.oidc.roles.source` is set to `userinfo` or `quarkus.oidc.token.verify-access-token-with-user-info` is set to `true` or `quarkus.oidc.authentication.id-token-required` is set to `false`, the current OIDC tenant must support a UserInfo endpoint in these cases.<br><br>It is also enabled automatically if `io.quarkus.oidc.UserInfo` injection point is detected but only if the current OIDC tenant supports a UserInfo endpoint.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_USER_INFO_REQUIRED+++[] | boolean | `true when UserInfo bean is injected, false otherwise` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-session-age-extension"></a> [`quarkus.oidc.authentication.session-age-extension`](#quarkus-oidc_quarkus-oidc-authentication-session-age-extension) config_property_copy_button:+++quarkus.oidc.authentication.session-age-extension+++[]<br><br>`quarkus.oidc."tenant".authentication.session-age-extension` config_property_copy_button:+++quarkus.oidc."tenant".authentication.session-age-extension+++[]<br><br>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 is redirected to the OIDC provider to re-authenticate once the session has expired. If this property is set to a nonzero value, then the expired ID token can be refreshed before the session has expired. This property is effective only if the `token.refresh-expired` property is enabled and a refresh token is available. It is set to 5 minutes by default.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_SESSION_AGE_EXTENSION+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `5M` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-state-cookie-age"></a> [`quarkus.oidc.authentication.state-cookie-age`](#quarkus-oidc_quarkus-oidc-authentication-state-cookie-age) config_property_copy_button:+++quarkus.oidc.authentication.state-cookie-age+++[]<br><br>`quarkus.oidc."tenant".authentication.state-cookie-age` config_property_copy_button:+++quarkus.oidc."tenant".authentication.state-cookie-age+++[]<br><br>State cookie age in minutes. State cookie is created every time a new authorization code flow redirect starts and removed when this flow is completed. State cookie name is unique by default, see `allow-multiple-code-flows`. Keep its age to the reasonable minimum value such as 5 minutes or less.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_STATE_COOKIE_AGE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `5M` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-java-script-auto-redirect"></a> [`quarkus.oidc.authentication.java-script-auto-redirect`](#quarkus-oidc_quarkus-oidc-authentication-java-script-auto-redirect) config_property_copy_button:+++quarkus.oidc.authentication.java-script-auto-redirect+++[]<br><br>`quarkus.oidc."tenant".authentication.java-script-auto-redirect` config_property_copy_button:+++quarkus.oidc."tenant".authentication.java-script-auto-redirect+++[]<br><br>If this property is set to `true`, a normal 302 redirect response is returned if the request was initiated by a JavaScript API such as XMLHttpRequest or Fetch and the current user needs to be (re)authenticated, which might not be desirable for Single-page applications (SPA) since it automatically following the redirect might not work given that OIDC authorization endpoints typically do not support CORS.<br><br>If this property is set to `false`, a status code of `499` is 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 `JavaScript` or `XMLHttpRequest` is expected by default if this property is enabled. You can register a custom `JavaScriptRequestChecker` to do a custom JavaScript request check instead.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_JAVA_SCRIPT_AUTO_REDIRECT+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-id-token-required"></a> [`quarkus.oidc.authentication.id-token-required`](#quarkus-oidc_quarkus-oidc-authentication-id-token-required) config_property_copy_button:+++quarkus.oidc.authentication.id-token-required+++[]<br><br>`quarkus.oidc."tenant".authentication.id-token-required` config_property_copy_button:+++quarkus.oidc."tenant".authentication.id-token-required+++[]<br><br>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 is generated in such cases.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_ID_TOKEN_REQUIRED+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-internal-id-token-lifespan"></a> [`quarkus.oidc.authentication.internal-id-token-lifespan`](#quarkus-oidc_quarkus-oidc-authentication-internal-id-token-lifespan) config_property_copy_button:+++quarkus.oidc.authentication.internal-id-token-lifespan+++[]<br><br>`quarkus.oidc."tenant".authentication.internal-id-token-lifespan` config_property_copy_button:+++quarkus.oidc."tenant".authentication.internal-id-token-lifespan+++[]<br><br>Internal ID token lifespan. This property is only checked when an internal IdToken is generated when OAuth2 providers do not return IdToken. If this property is not configured then an access token `expires_in` property in the OAuth2 authorization code flow response is used to set an internal IdToken lifespan.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_INTERNAL_ID_TOKEN_LIFESPAN+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-pkce-required"></a> [`quarkus.oidc.authentication.pkce-required`](#quarkus-oidc_quarkus-oidc-authentication-pkce-required) config_property_copy_button:+++quarkus.oidc.authentication.pkce-required+++[]<br><br>`quarkus.oidc."tenant".authentication.pkce-required` config_property_copy_button:+++quarkus.oidc."tenant".authentication.pkce-required+++[]<br><br>Requires that a Proof Key for Code Exchange (PKCE) is used.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_PKCE_REQUIRED+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-state-secret"></a> [`quarkus.oidc.authentication.state-secret`](#quarkus-oidc_quarkus-oidc-authentication-state-secret) config_property_copy_button:+++quarkus.oidc.authentication.state-secret+++[]<br><br>`quarkus.oidc."tenant".authentication.state-secret` config_property_copy_button:+++quarkus.oidc."tenant".authentication.state-secret+++[]<br><br>Secret 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.<br><br>If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` is checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication is checked. A client secret is not be used as a state encryption secret if it is less than 32 characters long.  The secret is auto-generated if it remains uninitialized after checking all of these properties.<br><br>Error is reported if the secret length is less than 16 characters.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_STATE_SECRET+++[] | string |  |
| <a id="quarkus-oidc_section_quarkus-oidc-authentication-par"></a> [Configuration for the pushed authorization request (PAR)](#quarkus-oidc_section_quarkus-oidc-authentication-par) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-authentication-par-enabled"></a> [`quarkus.oidc.authentication.par.enabled`](#quarkus-oidc_quarkus-oidc-authentication-par-enabled) config_property_copy_button:+++quarkus.oidc.authentication.par.enabled+++[]<br><br>`quarkus.oidc."tenant".authentication.par.enabled` config_property_copy_button:+++quarkus.oidc."tenant".authentication.par.enabled+++[]<br><br>If the pushed authorization request is enabled for this OIDC tenant. When enabled, Quarkus will act as if the authorization server accepts authorization request data only via PAR.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_PAR_ENABLED+++[] | boolean | `enabled if the discovered Authorization Server Metadata parameter 'require_pushed_authorization_requests' is 'true'` |
| <a id="quarkus-oidc_quarkus-oidc-authentication-par-path"></a> [`quarkus.oidc.authentication.par.path`](#quarkus-oidc_quarkus-oidc-authentication-par-path) config_property_copy_button:+++quarkus.oidc.authentication.par.path+++[]<br><br>`quarkus.oidc."tenant".authentication.par.path` config_property_copy_button:+++quarkus.oidc."tenant".authentication.par.path+++[]<br><br>Relative path or absolute URL of the authorization server's pushed authorization request endpoint. If not specified, Quarkus will use the URL of the PAR endpoint in the authorization server metadata document using the `pushed_authorization_request_endpoint` parameter.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_PAR_PATH+++[] | string |  |
| <a id="quarkus-oidc_section_quarkus-oidc-authentication-rar"></a> [Configuration for the rich authorization requests (RAR)](#quarkus-oidc_section_quarkus-oidc-authentication-rar) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-authentication-rar-simple-field"></a> [`quarkus.oidc.authentication.rar.simple."field"`](#quarkus-oidc_quarkus-oidc-authentication-rar-simple-field) config_property_copy_button:+++quarkus.oidc.authentication.rar.simple."field"+++[]<br><br>`quarkus.oidc."tenant".authentication.rar.simple."field"` config_property_copy_button:+++quarkus.oidc."tenant".authentication.rar.simple."field"+++[]<br><br>Configures the `authorization_details` request parameter string fields of the authorization request. For example, if you configure the `quarkus.oidc.authentication.rar.simple.credential_configuration_id=vc-scope-mapping` property, following `authorization_details` request parameter will be added to the authorization request:<br><br>```<br>`++[++<br>   ++{++<br>      "credential_configuration_id": "vc-scope-mapping"<br>   ++}++<br>++]++`<br>```<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_RAR_SIMPLE__FIELD_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-rar-array-field"></a> [`quarkus.oidc.authentication.rar.array."field"`](#quarkus-oidc_quarkus-oidc-authentication-rar-array-field) config_property_copy_button:+++quarkus.oidc.authentication.rar.array."field"+++[]<br><br>`quarkus.oidc."tenant".authentication.rar.array."field"` config_property_copy_button:+++quarkus.oidc."tenant".authentication.rar.array."field"+++[]<br><br>Configures the `authorization_details` request parameter array fields of the authorization request. For example, if you configure the `quarkus.oidc.authentication.rar.array.locations=https://...` property, following `authorization_details` request parameter will be added to the authorization request:<br><br>```<br>`++[++<br>   ++{++<br>      "locations": ++[++ "https://..." ++]++<br>   ++}++<br>++]++`<br>```<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_RAR_ARRAY__FIELD_+++[] | Map\<String,List\<String>> |  |
| <a id="quarkus-oidc_quarkus-oidc-authentication-rar-type"></a> [`quarkus.oidc.authentication.rar.type`](#quarkus-oidc_quarkus-oidc-authentication-rar-type) config_property_copy_button:+++quarkus.oidc.authentication.rar.type+++[]<br><br>`quarkus.oidc."tenant".authentication.rar.type` config_property_copy_button:+++quarkus.oidc."tenant".authentication.rar.type+++[]<br><br>The `authorization_details` type field. Please see the RFC 9396 [Request Parameter `authorization_details`](https://datatracker.ietf.org/doc/html/rfc9396#name-request-parameter-authoriza) for more information.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_AUTHENTICATION_RAR_TYPE+++[] | string | required [exclamation circle] |
| <a id="quarkus-oidc_section_quarkus-oidc-code-grant"></a> [Configuration to complete an authorization code flow grant](#quarkus-oidc_section_quarkus-oidc-code-grant) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-code-grant-extra-params-parameter-name"></a> [`quarkus.oidc.code-grant.extra-params."parameter-name"`](#quarkus-oidc_quarkus-oidc-code-grant-extra-params-parameter-name) config_property_copy_button:+++quarkus.oidc.code-grant.extra-params."parameter-name"+++[]<br><br>`quarkus.oidc."tenant".code-grant.extra-params."parameter-name"` config_property_copy_button:+++quarkus.oidc."tenant".code-grant.extra-params."parameter-name"+++[]<br><br>Additional parameters, in addition to the required `code` and `redirect-uri` parameters, which must be included to complete the authorization code grant request.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CODE_GRANT_EXTRA_PARAMS__PARAMETER_NAME_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_quarkus-oidc-code-grant-headers-header-name"></a> [`quarkus.oidc.code-grant.headers."header-name"`](#quarkus-oidc_quarkus-oidc-code-grant-headers-header-name) config_property_copy_button:+++quarkus.oidc.code-grant.headers."header-name"+++[]<br><br>`quarkus.oidc."tenant".code-grant.headers."header-name"` config_property_copy_button:+++quarkus.oidc."tenant".code-grant.headers."header-name"+++[]<br><br>Custom HTTP headers which must be sent to complete the authorization code grant request.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CODE_GRANT_HEADERS__HEADER_NAME_+++[] | Map\<String,String> |  |
| <a id="quarkus-oidc_section_quarkus-oidc-token-state-manager"></a> [Token state manager configuration](#quarkus-oidc_section_quarkus-oidc-token-state-manager) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-token-state-manager-strategy"></a> [`quarkus.oidc.token-state-manager.strategy`](#quarkus-oidc_quarkus-oidc-token-state-manager-strategy) config_property_copy_button:+++quarkus.oidc.token-state-manager.strategy+++[]<br><br>`quarkus.oidc."tenant".token-state-manager.strategy` config_property_copy_button:+++quarkus.oidc."tenant".token-state-manager.strategy+++[]<br><br>Default TokenStateManager strategy.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_STATE_MANAGER_STRATEGY+++[] | tooltip:keep-all-tokens[Keep ID,opts=access and refresh tokens.], tooltip:id-token[Keep ID token only], tooltip:id-refresh-tokens[Keep ID and refresh tokens only] | tooltip:keep-all-tokens[Keep ID,opts=access and refresh tokens.] |
| <a id="quarkus-oidc_quarkus-oidc-token-state-manager-split-tokens"></a> [`quarkus.oidc.token-state-manager.split-tokens`](#quarkus-oidc_quarkus-oidc-token-state-manager-split-tokens) config_property_copy_button:+++quarkus.oidc.token-state-manager.split-tokens+++[]<br><br>`quarkus.oidc."tenant".token-state-manager.split-tokens` config_property_copy_button:+++quarkus.oidc."tenant".token-state-manager.split-tokens+++[]<br><br>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<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_STATE_MANAGER_SPLIT_TOKENS+++[] | boolean | `false` |
| <a id="quarkus-oidc_quarkus-oidc-token-state-manager-encryption-required"></a> [`quarkus.oidc.token-state-manager.encryption-required`](#quarkus-oidc_quarkus-oidc-token-state-manager-encryption-required) config_property_copy_button:+++quarkus.oidc.token-state-manager.encryption-required+++[]<br><br>`quarkus.oidc."tenant".token-state-manager.encryption-required` config_property_copy_button:+++quarkus.oidc."tenant".token-state-manager.encryption-required+++[]<br><br>Mandates that the TokenStateManager stores tokens in the encrypted form. Default TokenStateManager encrypts a session cookie that keeps the tokens. Custom TokenStateManager do not have to encrypt tokens, they will already be encrypted by the time it is asked to store tokens.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_STATE_MANAGER_ENCRYPTION_REQUIRED+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-token-state-manager-encryption-secret"></a> [`quarkus.oidc.token-state-manager.encryption-secret`](#quarkus-oidc_quarkus-oidc-token-state-manager-encryption-secret) config_property_copy_button:+++quarkus.oidc.token-state-manager.encryption-secret+++[]<br><br>`quarkus.oidc."tenant".token-state-manager.encryption-secret` config_property_copy_button:+++quarkus.oidc."tenant".token-state-manager.encryption-secret+++[]<br><br>The secret used by the TokenStateManager to encrypt the session cookie storing the tokens when `encryption-required` property is enabled.<br><br>If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` is checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication is checked. The secret is auto-generated every time an application starts if it remains uninitialized after checking all of these properties. Generated secret can not decrypt the session cookie or token encrypted before the restart, therefore a user re-authentication will be required.<br><br>The length of the secret used to encrypt the tokens should be at least 32 characters long. A warning is logged if the secret length is less than 16 characters.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_STATE_MANAGER_ENCRYPTION_SECRET+++[] | string |  |
| <a id="quarkus-oidc_quarkus-oidc-token-state-manager-encryption-algorithm"></a> [`quarkus.oidc.token-state-manager.encryption-algorithm`](#quarkus-oidc_quarkus-oidc-token-state-manager-encryption-algorithm) config_property_copy_button:+++quarkus.oidc.token-state-manager.encryption-algorithm+++[]<br><br>`quarkus.oidc."tenant".token-state-manager.encryption-algorithm` config_property_copy_button:+++quarkus.oidc."tenant".token-state-manager.encryption-algorithm+++[]<br><br>Session cookie or token key encryption algorithm<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_STATE_MANAGER_ENCRYPTION_ALGORITHM+++[] | tooltip:a256-gcmkw[Content encryption key will be generated and encrypted using the A256GCMKW algorithm and the configured encryption secret. The generated content encryption key will be used to encrypt the session cookie content.], tooltip:dir[The configured key encryption secret will be used as the content encryption key to encrypt the session cookie content. Using the direct encryption avoids a content encryption key generation step and will make the encrypted session cookie sequence slightly shorter.  Avoid using the direct encryption if the encryption secret is less than 32 characters long.] | tooltip:a256-gcmkw[Content encryption key will be generated and encrypted using the A256GCMKW algorithm and the configured encryption secret. The generated content encryption key will be used to encrypt the session cookie content.] |
| <a id="quarkus-oidc_section_quarkus-oidc-jwks"></a> [How JsonWebKey verification key set should be acquired and managed](#quarkus-oidc_section_quarkus-oidc-jwks) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-jwks-resolve-early"></a> [`quarkus.oidc.jwks.resolve-early`](#quarkus-oidc_quarkus-oidc-jwks-resolve-early) config_property_copy_button:+++quarkus.oidc.jwks.resolve-early+++[]<br><br>`quarkus.oidc."tenant".jwks.resolve-early` config_property_copy_button:+++quarkus.oidc."tenant".jwks.resolve-early+++[]<br><br>If JWK verification keys should be fetched at the moment a connection to the OIDC provider is initialized.<br><br>Disabling this property delays 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.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_RESOLVE_EARLY+++[] | boolean | `true` |
| <a id="quarkus-oidc_quarkus-oidc-jwks-cache-size"></a> [`quarkus.oidc.jwks.cache-size`](#quarkus-oidc_quarkus-oidc-jwks-cache-size) config_property_copy_button:+++quarkus.oidc.jwks.cache-size+++[]<br><br>`quarkus.oidc."tenant".jwks.cache-size` config_property_copy_button:+++quarkus.oidc."tenant".jwks.cache-size+++[]<br><br>Maximum number of JWK keys that can be cached. This property is ignored if the `resolve-early` property is set to true.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_CACHE_SIZE+++[] | int | `10` |
| <a id="quarkus-oidc_quarkus-oidc-jwks-cache-time-to-live"></a> [`quarkus.oidc.jwks.cache-time-to-live`](#quarkus-oidc_quarkus-oidc-jwks-cache-time-to-live) config_property_copy_button:+++quarkus.oidc.jwks.cache-time-to-live+++[]<br><br>`quarkus.oidc."tenant".jwks.cache-time-to-live` config_property_copy_button:+++quarkus.oidc."tenant".jwks.cache-time-to-live+++[]<br><br>Number of minutes a JWK key can be cached for. This property is ignored if the `resolve-early` property is set to true.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_CACHE_TIME_TO_LIVE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `10M` |
| <a id="quarkus-oidc_quarkus-oidc-jwks-clean-up-timer-interval"></a> [`quarkus.oidc.jwks.clean-up-timer-interval`](#quarkus-oidc_quarkus-oidc-jwks-clean-up-timer-interval) config_property_copy_button:+++quarkus.oidc.jwks.clean-up-timer-interval+++[]<br><br>`quarkus.oidc."tenant".jwks.clean-up-timer-interval` config_property_copy_button:+++quarkus.oidc."tenant".jwks.clean-up-timer-interval+++[]<br><br>Cache timer interval. If this property is set, a timer checks and removes the stale entries periodically. This property is ignored if the `resolve-early` property is set to true.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_CLEAN_UP_TIMER_INTERVAL+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |
| <a id="quarkus-oidc_quarkus-oidc-jwks-try-all"></a> [`quarkus.oidc.jwks.try-all`](#quarkus-oidc_quarkus-oidc-jwks-try-all) config_property_copy_button:+++quarkus.oidc.jwks.try-all+++[]<br><br>`quarkus.oidc."tenant".jwks.try-all` config_property_copy_button:+++quarkus.oidc."tenant".jwks.try-all+++[]<br><br>In case there is no key identifier ('kid') or certificate thumbprints ('x5t', 'x5t++#++S256') specified in the JOSE header and no key could be determined, check all available keys matching the token algorithm ('alg') header value.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_JWKS_TRY_ALL+++[] | boolean | `false` |
| <a id="quarkus-oidc_section_quarkus-oidc-token-cache"></a> [Default TokenIntrospection and UserInfo Cache configuration](#quarkus-oidc_section_quarkus-oidc-token-cache) | Type | Default |
| <a id="quarkus-oidc_quarkus-oidc-token-cache-max-size"></a> [`quarkus.oidc.token-cache.max-size`](#quarkus-oidc_quarkus-oidc-token-cache-max-size) config_property_copy_button:+++quarkus.oidc.token-cache.max-size+++[]<br><br>Maximum number of cache entries. Set it to a positive value if the cache has to be enabled.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_CACHE_MAX_SIZE+++[] | int | `0` |
| <a id="quarkus-oidc_quarkus-oidc-token-cache-time-to-live"></a> [`quarkus.oidc.token-cache.time-to-live`](#quarkus-oidc_quarkus-oidc-token-cache-time-to-live) config_property_copy_button:+++quarkus.oidc.token-cache.time-to-live+++[]<br><br>Maximum amount of time a given cache entry is valid for.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_CACHE_TIME_TO_LIVE+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) | `3M` |
| <a id="quarkus-oidc_quarkus-oidc-token-cache-clean-up-timer-interval"></a> [`quarkus.oidc.token-cache.clean-up-timer-interval`](#quarkus-oidc_quarkus-oidc-token-cache-clean-up-timer-interval) config_property_copy_button:+++quarkus.oidc.token-cache.clean-up-timer-interval+++[]<br><br>Clean up timer interval. If this property is set then a timer will check and remove the stale entries periodically.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_TOKEN_CACHE_CLEAN_UP_TIMER_INTERVAL+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-oidc_quarkus-oidc) |  |

<a id="duration-note-anchor-quarkus-oidc_quarkus-oidc"></a>

> [!NOTE]
> **About the Duration format**
>
> To write duration values, use the standard `java.time.Duration` format. See the [Duration#parse() Java API documentation](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html#parse(java.lang.CharSequence)) for more information.
>
> You can also use a simplified format, starting with a number:
>
> - If the value is only a number, it represents time in seconds.
> - If the value is a number followed by `ms`, it represents time in milliseconds.
>
> In other cases, the simplified format is translated to the `java.time.Duration` format for parsing:
>
> - If the value is a number followed by `h`, `m`, or `s`, it is prefixed with `PT`.
> - If the value is a number followed by `d`, it is prefixed with `P`.

See also the [Expanded OIDC Configuration Reference](/guides/security-oidc-expanded-configuration/index.md) for an expanded, detailed explanation of OIDC configuration properties and their typical, recommended combinations.

## Keycloak Dev Services configuration

[lock] Configuration property fixed at build time - All other configuration properties are overridable at runtime

|  |  |  |
| --- | --- | --- |
| <mark>Configuration property</mark> | Type | Default |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-enabled"></a> [`quarkus.keycloak.devservices.enabled`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-enabled) config_property_copy_button:+++quarkus.keycloak.devservices.enabled+++[]<br><br>Flag to enable (default) or disable Dev Services. When enabled, Dev Services for Keycloak automatically configures and starts Keycloak in Dev or Test mode, and when Docker is running.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_ENABLED+++[] | boolean | `true` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-image-name"></a> [`quarkus.keycloak.devservices.image-name`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-image-name) config_property_copy_button:+++quarkus.keycloak.devservices.image-name+++[]<br><br>The container image name for Dev Services providers. Defaults to a Quarkus-based Keycloak image. For a WildFly-based distribution, use an image like `quay.io/keycloak/keycloak:19.0.3-legacy`. Keycloak Quarkus and WildFly images are initialized differently. Dev Services for Keycloak will assume it is a Keycloak Quarkus image unless the image version ends with `-legacy`. Override with `quarkus.keycloak.devservices.keycloak-x-image`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_IMAGE_NAME+++[] | string | `quay.io/keycloak/keycloak:26.8.2` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-keycloak-x-image"></a> [`quarkus.keycloak.devservices.keycloak-x-image`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-keycloak-x-image) config_property_copy_button:+++quarkus.keycloak.devservices.keycloak-x-image+++[]<br><br>Indicates if a Keycloak-X image is used. By default, the image is identified by `keycloak-x` in the image name. For custom images, override with `quarkus.keycloak.devservices.keycloak-x-image`. You do not need to set this property if the default check works.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_KEYCLOAK_X_IMAGE+++[] | boolean |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-shared"></a> [`quarkus.keycloak.devservices.shared`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-shared) config_property_copy_button:+++quarkus.keycloak.devservices.shared+++[]<br><br>Determines if the Keycloak container is shared. When shared, Quarkus uses label-based service discovery to find and reuse a running Keycloak container, so a second one is not started. Otherwise, if a matching container is not is found, a new container is started. The service discovery uses the `quarkus-dev-service-label` label, whose value is set by the `service-name` property. Container sharing is available only in dev mode.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_SHARED+++[] | boolean | `true` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-service-name"></a> [`quarkus.keycloak.devservices.service-name`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-service-name) config_property_copy_button:+++quarkus.keycloak.devservices.service-name+++[]<br><br>The value of the `quarkus-dev-service-keycloak` label for identifying the Keycloak container. Used in shared mode to locate an existing container with this label. If not found, a new container is initialized with this label. Applicable only in dev mode.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_SERVICE_NAME+++[] | string | `keycloak` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-realm-path"></a> [`quarkus.keycloak.devservices.realm-path`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-realm-path) config_property_copy_button:+++quarkus.keycloak.devservices.realm-path+++[]<br><br>A comma-separated list of class or file system paths to Keycloak realm files. This list is used to initialize Keycloak. The first value in this list is used to initialize default tenant connection properties.<br><br>To learn more about Keycloak realm files, consult the [Importing and Exporting Keycloak Realms documentation](https://www.keycloak.org/server/importExport).<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_REALM_PATH+++[] | list of string |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-resource-aliases-alias-name"></a> [`quarkus.keycloak.devservices.resource-aliases."alias-name"`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-resource-aliases-alias-name) config_property_copy_button:+++quarkus.keycloak.devservices.resource-aliases."alias-name"+++[]<br><br>Aliases to additional class or file system resources that are used to initialize Keycloak. Each map entry represents a mapping between an alias and a class or file system resource path.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_RESOURCE_ALIASES__ALIAS_NAME_+++[] | Map\<String,String> |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-resource-mappings-resource-name"></a> [`quarkus.keycloak.devservices.resource-mappings."resource-name"`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-resource-mappings-resource-name) config_property_copy_button:+++quarkus.keycloak.devservices.resource-mappings."resource-name"+++[]<br><br>Additional class or file system resources that are used to initialize Keycloak. Each map entry represents a mapping between a class or file system resource path alias and the Keycloak container location.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_RESOURCE_MAPPINGS__RESOURCE_NAME_+++[] | Map\<String,String> |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-java-opts"></a> [`quarkus.keycloak.devservices.java-opts`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-java-opts) config_property_copy_button:+++quarkus.keycloak.devservices.java-opts+++[]<br><br>The `JAVA_OPTS` passed to the keycloak JVM<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_JAVA_OPTS+++[] | string |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-show-logs"></a> [`quarkus.keycloak.devservices.show-logs`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-show-logs) config_property_copy_button:+++quarkus.keycloak.devservices.show-logs+++[]<br><br>Show Keycloak log messages with a "Keycloak:" prefix.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_SHOW_LOGS+++[] | boolean | `false` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-start-command"></a> [`quarkus.keycloak.devservices.start-command`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-start-command) config_property_copy_button:+++quarkus.keycloak.devservices.start-command+++[]<br><br>Keycloak start command. Use this property to experiment with Keycloak start options, see `https://www.keycloak.org/server/all-config`. Note, it is ignored when loading legacy Keycloak WildFly images.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_START_COMMAND+++[] | string |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-features"></a> [`quarkus.keycloak.devservices.features`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-features) config_property_copy_button:+++quarkus.keycloak.devservices.features+++[]<br><br>Keycloak features. Use this property to enable one or more experimental Keycloak features. Note, if you also have to customize a Keycloak `start-command()`, you can use a `--features` option as part of the start command sequence, instead of configuring this property.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_FEATURES+++[] | list of string |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-realm-name"></a> [`quarkus.keycloak.devservices.realm-name`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-realm-name) config_property_copy_button:+++quarkus.keycloak.devservices.realm-name+++[]<br><br>The name of the Keycloak realm. This property is used to create the realm if the realm file pointed to by the `realm-path` property does not exist. The default value is `quarkus` in this case. It is recommended to always set this property so that Dev Services for Keycloak can identify the realm name without parsing the realm file.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_REALM_NAME+++[] | string |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-create-realm"></a> [`quarkus.keycloak.devservices.create-realm`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-create-realm) config_property_copy_button:+++quarkus.keycloak.devservices.create-realm+++[]<br><br>Specifies whether to create the Keycloak realm when no realm file is found at the `realm-path`. Set to `false` if the realm is to be created using either the Keycloak Administration Console or the Keycloak Admin API provided by `io.quarkus.test.common.QuarkusTestResourceLifecycleManager`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_CREATE_REALM+++[] | boolean | `true` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-create-client"></a> [`quarkus.keycloak.devservices.create-client`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-create-client) config_property_copy_button:+++quarkus.keycloak.devservices.create-client+++[]<br><br>Specifies whether to create the default client id `quarkus-app` with a secret `secret` and register them if the `create-realm` property is set to true. For OIDC extension configuration properties `quarkus.oidc.client.id` and `quarkus.oidc.credentials.secret` will be configured. For OIDC Client extension configuration properties `quarkus.oidc-client.client.id` and `quarkus.oidc-client.credentials.secret` will be configured. Set to `false` if clients have to be created using either the Keycloak Administration Console or the Keycloak Admin API provided by `io.quarkus.test.common.QuarkusTestResourceLifecycleManager` or registered dynamically.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_CREATE_CLIENT+++[] | boolean | `true` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-start-with-disabled-tenant"></a> [`quarkus.keycloak.devservices.start-with-disabled-tenant`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-start-with-disabled-tenant) config_property_copy_button:+++quarkus.keycloak.devservices.start-with-disabled-tenant+++[]<br><br>Specifies whether to start the container even if the default OIDC tenant is disabled. Setting this property to true may be necessary in a multi-tenant OIDC setup, especially when OIDC tenants are created dynamically.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_START_WITH_DISABLED_TENANT+++[] | boolean | `false` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-users-users"></a> [`quarkus.keycloak.devservices.users."users"`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-users-users) config_property_copy_button:+++quarkus.keycloak.devservices.users."users"+++[]<br><br>A map of Keycloak usernames to passwords. If empty, default users `alice` and `bob` are created with their names as passwords. This map is used for user creation when no realm file is found at the `realm-path`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_USERS__USERS_+++[] | Map\<String,String> |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-roles-role-name"></a> [`quarkus.keycloak.devservices.roles."role-name"`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-roles-role-name) config_property_copy_button:+++quarkus.keycloak.devservices.roles."role-name"+++[]<br><br>A map of roles for Keycloak users. If empty, default roles are assigned: `alice` receives `admin` and `user` roles, while other users receive `user` role. This map is used for role creation when no realm file is found at the `realm-path`.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_ROLES__ROLE_NAME_+++[] | Map\<String,List\<String>> |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-port"></a> [`quarkus.keycloak.devservices.port`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-port) config_property_copy_button:+++quarkus.keycloak.devservices.port+++[]<br><br>The specific port for the dev service to listen on.<br><br>If not specified, a random port is selected.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_PORT+++[] | int |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-container-env-environment-variable-name"></a> [`quarkus.keycloak.devservices.container-env."environment-variable-name"`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-container-env-environment-variable-name) config_property_copy_button:+++quarkus.keycloak.devservices.container-env."environment-variable-name"+++[]<br><br>Environment variables to be passed to the container.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_CONTAINER_ENV__ENVIRONMENT_VARIABLE_NAME_+++[] | Map\<String,String> |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-container-memory-limit"></a> [`quarkus.keycloak.devservices.container-memory-limit`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-container-memory-limit) config_property_copy_button:+++quarkus.keycloak.devservices.container-memory-limit+++[]<br><br>Memory limit for Keycloak container, up to `Long.MAX_VALUE` bytes.<br><br>If not specified, 1250MiB is the default memory limit.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_CONTAINER_MEMORY_LIMIT+++[] | MemorySize [[question circle]](#memory-size-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak) | `1250M` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-web-client-timeout"></a> [`quarkus.keycloak.devservices.web-client-timeout`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-web-client-timeout) config_property_copy_button:+++quarkus.keycloak.devservices.web-client-timeout+++[]<br><br>The WebClient timeout. Use this property to configure how long an HTTP client used by OIDC dev service admin client will wait for a response from OpenId Connect Provider when acquiring admin token and creating realm.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_WEB_CLIENT_TIMEOUT+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak) | `4S` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-disable-https"></a> [`quarkus.keycloak.devservices.disable-https`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-disable-https) config_property_copy_button:+++quarkus.keycloak.devservices.disable-https+++[]<br><br>Specifies whether to disable HTTPS on the master realm by setting `sslRequired=NONE`. This is useful when the Keycloak container is started without HTTPS support and the master realm's default SSL requirement prevents HTTP access.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_DISABLE_HTTPS+++[] | boolean | `false` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-host-accessible-ports"></a> [`quarkus.keycloak.devservices.host-accessible-ports`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-host-accessible-ports) config_property_copy_button:+++quarkus.keycloak.devservices.host-accessible-ports+++[]<br><br>The host ports to expose to the Keycloak container. When this list is non-empty, the host is made accessible from the container using the `host.testcontainers.internal` hostname, and only the listed ports are exposed. This may be necessary when Keycloak needs to make HTTP callbacks to the application running on the host.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_HOST_ACCESSIBLE_PORTS+++[] | list of int |  |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-access-token-lifespan"></a> [`quarkus.keycloak.devservices.access-token-lifespan`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-access-token-lifespan) config_property_copy_button:+++quarkus.keycloak.devservices.access-token-lifespan+++[]<br><br>The access token lifespan in the default realm.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_ACCESS_TOKEN_LIFESPAN+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak) | `10M` |
| [lock] <a id="quarkus-devservices-keycloak_quarkus-keycloak-devservices-sso-session-max-lifespan"></a> [`quarkus.keycloak.devservices.sso-session-max-lifespan`](#quarkus-devservices-keycloak_quarkus-keycloak-devservices-sso-session-max-lifespan) config_property_copy_button:+++quarkus.keycloak.devservices.sso-session-max-lifespan+++[]<br><br>The SSO session max lifespan in the default realm.<br><br>Environment variable: env_var_with_copy_button:+++QUARKUS_KEYCLOAK_DEVSERVICES_SSO_SESSION_MAX_LIFESPAN+++[] | [Duration](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html) [[question circle]](#duration-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak) | `10M` |

<a id="duration-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak"></a>

> [!NOTE]
> **About the Duration format**
>
> To write duration values, use the standard `java.time.Duration` format. See the [Duration#parse() Java API documentation](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html#parse(java.lang.CharSequence)) for more information.
>
> You can also use a simplified format, starting with a number:
>
> - If the value is only a number, it represents time in seconds.
> - If the value is a number followed by `ms`, it represents time in milliseconds.
>
> In other cases, the simplified format is translated to the `java.time.Duration` format for parsing:
>
> - If the value is a number followed by `h`, `m`, or `s`, it is prefixed with `PT`.
> - If the value is a number followed by `d`, it is prefixed with `P`.

<a id="memory-size-note-anchor-quarkus-devservices-keycloak_quarkus-keycloak"></a>

> [!NOTE]
> **About the MemorySize format**
>
> A size configuration option recognizes strings in this format (shown as a regular expression): `[0-9]+[KkMmGgTtPpEeZzYy]?`.
>
> If no suffix is given, assume bytes.

## References

- [Expanded OIDC Configuration Reference](/guides/security-oidc-expanded-configuration/index.md)
- [OIDC Bearer token authentication](/guides/security-oidc-bearer-token-authentication/index.md)
- [OIDC Authorization code flow authentication](/guides/security-oidc-code-flow-authentication/index.md)
- [OIDC MultiTenancy](/guides/security-openid-connect-multitenancy/index.md)
- [Keycloak Dev Services](/guides/security-openid-connect-dev-services/index.md)
- [Quarkus Security](/guides/security-overview/index.md)
