# OpenID Connect (OIDC) configuration properties

As a Quarkus developer, you configure the Quarkus OpenID Connect (OIDC) extension by setting the following properties in the `src/main/resources/application.properties` file.

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

Configuration property | Type | Default
--- | --- | ---
`quarkus.keycloak.devservices.enabled` If DevServices has been explicitly enabled or disabled. When DevServices is enabled Quarkus will attempt to automatically configure and start Keycloak when running in Dev or Test mode and when Docker is running. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_ENABLED` | boolean | `true`
`quarkus.keycloak.devservices.image-name` The container image name to use, for container based DevServices providers. Image with a Quarkus based distribution is used by default. Image with a WildFly based distribution can be selected instead, for example: 'quay.io/keycloak/keycloak:19.0.3-legacy'. Note Keycloak Quarkus and Keycloak WildFly images are initialized differently. By default, Dev Services for Keycloak will assume it is a Keycloak Quarkus image if the image version does not end with a '-legacy' string. Set 'quarkus.keycloak.devservices.keycloak-x-image' to override this check. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_IMAGE_NAME` | string | `quay.io/keycloak/keycloak:22.0.1`
`quarkus.keycloak.devservices.keycloak-x-image` If Keycloak-X image is used. By default, Dev Services for Keycloak will assume a Keycloak-X image is used if the image name contains a 'keycloak-x' string. Set 'quarkus.keycloak.devservices.keycloak-x-image' to override this check which may be necessary if you build custom Keycloak-X or Keycloak images. You do not need to set this property if the default check works. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_KEYCLOAK_X_IMAGE` | boolean |
`quarkus.keycloak.devservices.shared` Indicates if the Keycloak container managed by Quarkus Dev Services is shared. When shared, Quarkus looks for running containers using label-based service discovery. If a matching container is found, it is used, and so a second one is not started. Otherwise, Dev Services for Keycloak starts a new container. The discovery uses the `quarkus-dev-service-label` label. The value is configured using the `service-name` property. Container sharing is only used in dev mode. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_SHARED` | boolean | `true`
`quarkus.keycloak.devservices.service-name` The value of the `quarkus-dev-service-keycloak` label attached to the started container. This property is used when `shared` is set to `true`. In this case, before starting a container, Dev Services for Keycloak looks for a container with the `quarkus-dev-service-keycloak` label set to the configured value. If found, it will use this container instead of starting a new one. Otherwise, it starts a new container with the `quarkus-dev-service-keycloak` label set to the specified value. Container sharing is only used in dev mode. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_SERVICE_NAME` | string | `quarkus`
`quarkus.keycloak.devservices.realm-path` The comma-separated list of class or file system paths to Keycloak realm files which will be used to initialize Keycloak. The first value in this list will be used to initialize default tenant connection properties. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_REALM_PATH` | list of string |
`quarkus.keycloak.devservices.java-opts` The JAVA_OPTS passed to the keycloak JVM Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_JAVA_OPTS` | string |
`quarkus.keycloak.devservices.show-logs` Show Keycloak log messages with a "Keycloak:" prefix. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_SHOW_LOGS` | boolean | `false`
`quarkus.keycloak.devservices.start-command` Keycloak start command. Use this property to experiment with Keycloak start options, see `https://www.keycloak.org/server/all-config`. Note it will be ignored when loading legacy Keycloak WildFly images. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_START_COMMAND` | string |
`quarkus.keycloak.devservices.realm-name` The Keycloak realm name. This property will be used to create the realm if the realm file pointed to by the 'realm-path' property does not exist, default value is 'quarkus' in this case. If the realm file pointed to by the 'realm-path' property exists then it is still recommended to set this property for Dev Services for Keycloak to avoid parsing the realm file in order to determine the realm name. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_REALM_NAME` | string |
`quarkus.keycloak.devservices.create-realm` Indicates if the Keycloak realm has to be created when the realm file pointed to by the 'realm-path' property does not exist. Disable it if you’d like to create a realm using Keycloak Administration Console or Keycloak Admin API from `io.quarkus.test.common.QuarkusTestResourceLifecycleManager`. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_CREATE_REALM` | boolean | `true`
`quarkus.keycloak.devservices.port` Optional fixed port the dev service will listen to. If not defined, the port will be chosen randomly. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_PORT` | int |
`quarkus.keycloak.devservices.users` The Keycloak users map containing the username and password pairs. If this map is empty then two users, 'alice' and 'bob' with the passwords matching their names will be created. This property will be used to create the Keycloak users if the realm file pointed to by the 'realm-path' property does not exist. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_USERS` | `Map<String,String>` |
`quarkus.keycloak.devservices.roles` The Keycloak user roles. If this map is empty then a user named 'alice' will get 'admin' and 'user' roles and all other users will get a 'user' role. This property will be used to create the Keycloak roles if the realm file pointed to by the 'realm-path' property does not exist. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_ROLES` | `Map<String,List<String>>` |
`quarkus.keycloak.devservices.container-env` Environment variables that are passed to the container. Environment variable: `QUARKUS_KEYCLOAK_DEVSERVICES_CONTAINER_ENV` | `Map<String,String>` |
`quarkus.oidc.enabled` If the OIDC extension is enabled. Environment variable: `QUARKUS_OIDC_ENABLED` | boolean | `true`
`quarkus.oidc.devui.grant.type` Grant type which will be used to acquire a token to test the OIDC 'service' applications Environment variable: `QUARKUS_OIDC_DEVUI_GRANT_TYPE` | `client`, `password`, `code`, `implicit` |
`quarkus.oidc.devui.web-client-timeout` 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. Environment variable: `QUARKUS_OIDC_DEVUI_WEB_CLIENT_TIMEOUT` | Duration | `4S`
`quarkus.oidc.default-token-cache-enabled` Enable the registration of the Default TokenIntrospection and UserInfo Cache implementation bean. Note it only allows to use the default implementation, one needs to configure it in order to activate it, please see `OidcConfig#tokenCache`. Environment variable: `QUARKUS_OIDC_DEFAULT_TOKEN_CACHE_ENABLED` | boolean | `true`
`quarkus.oidc.auth-server-url` The base URL of the OpenID Connect (OIDC) server, for example, `https://host:port/auth`. OIDC discovery endpoint will be called by default by appending a '.well-known/openid-configuration' path to this URL. Note if you work with Keycloak OIDC server, make sure the base URL is in the following format: `https://host:port/realms/{realm}` where `{realm}` has to be replaced by the name of the Keycloak realm. Environment variable: `QUARKUS_OIDC_AUTH_SERVER_URL` | string |
`quarkus.oidc.discovery-enabled` Enables OIDC discovery. If the discovery is disabled then the OIDC endpoint URLs must be configured individually. Environment variable: `QUARKUS_OIDC_DISCOVERY_ENABLED` | boolean | `true`
`quarkus.oidc.token-path` Relative path or absolute URL of the OIDC token endpoint which issues access and refresh tokens. Environment variable: `QUARKUS_OIDC_TOKEN_PATH` | string |
`quarkus.oidc.revoke-path` Relative path or absolute URL of the OIDC token revocation endpoint. Environment variable: `QUARKUS_OIDC_REVOKE_PATH` | string |
`quarkus.oidc.client-id` The client-id of the application. Each application has a client-id that is used to identify the application Environment variable: `QUARKUS_OIDC_CLIENT_ID` | string |
`quarkus.oidc.connection-delay` The maximum amount of time connecting to the currently unavailable OIDC server will be attempted for. The number of times the connection request will be repeated is calculated by dividing the value of this property by 2. For example, setting it to `20S` will allow for requesting the connection up to 10 times with a 2 seconds delay between the retries. Note this property is only effective when the initial OIDC connection is created, for example, when requesting a well-known OIDC configuration. Use the 'connection-retry-count' property to support trying to re-establish an already available connection which may have been dropped. Environment variable: `QUARKUS_OIDC_CONNECTION_DELAY` | Duration |
`quarkus.oidc.connection-retry-count` The number of times an attempt to re-establish an already available connection will be repeated for. Note this property is different to the `connection-delay` property which is only effective during the initial OIDC connection creation. This property is used to try to recover the existing connection which may have been temporarily lost. For example, if a request to the OIDC token endpoint fails due to a connection exception then the request will be retried for a number of times configured by this property. Environment variable: `QUARKUS_OIDC_CONNECTION_RETRY_COUNT` | int | `3`
`quarkus.oidc.connection-timeout` The amount of time after which the current OIDC connection request will time out. Environment variable: `QUARKUS_OIDC_CONNECTION_TIMEOUT` | Duration | `10S`
`quarkus.oidc.max-pool-size` The maximum size of the connection pool used by the WebClient Environment variable: `QUARKUS_OIDC_MAX_POOL_SIZE` | int |
`quarkus.oidc.credentials.secret` Client secret which is used for a `client_secret_basic` authentication method. Note that a 'client-secret.value' can be used instead but both properties are mutually exclusive. Environment variable: `QUARKUS_OIDC_CREDENTIALS_SECRET` | string |
`quarkus.oidc.credentials.client-secret.value` The client secret value - it will be ignored if 'secret.key' is set Environment variable: `QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_VALUE` | string |
`quarkus.oidc.credentials.client-secret.provider.name` The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: `QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_PROVIDER_NAME` | string |
`quarkus.oidc.credentials.client-secret.provider.key` The CredentialsProvider client secret key Environment variable: `QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_PROVIDER_KEY` | string |
`quarkus.oidc.credentials.client-secret.method` Authentication method. Environment variable: `QUARKUS_OIDC_CREDENTIALS_CLIENT_SECRET_METHOD` | `basic`, `post`, `post-jwt` |
`quarkus.oidc.credentials.jwt.secret` If provided, indicates that JWT is signed using a secret key Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_SECRET` | string |
`quarkus.oidc.credentials.jwt.secret-provider.name` The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_SECRET_PROVIDER_NAME` | string |
`quarkus.oidc.credentials.jwt.secret-provider.key` The CredentialsProvider client secret key Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_SECRET_PROVIDER_KEY` | string |
`quarkus.oidc.credentials.jwt.key-file` If provided, indicates that JWT is signed using a private key in PEM or JWK format. You can use the `signature-algorithm` property to specify the key algorithm. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_KEY_FILE` | string |
`quarkus.oidc.credentials.jwt.key-store-file` If provided, indicates that JWT is signed using a private key from a key store Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_KEY_STORE_FILE` | string |
`quarkus.oidc.credentials.jwt.key-store-password` A parameter to specify the password of the key store file. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_KEY_STORE_PASSWORD` | string |
`quarkus.oidc.credentials.jwt.key-id` The private key id/alias Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_KEY_ID` | string |
`quarkus.oidc.credentials.jwt.key-password` The private key password Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_KEY_PASSWORD` | string |
`quarkus.oidc.credentials.jwt.audience` JWT audience ('aud') claim value. By default, the audience is set to the address of the OpenId Connect Provider’s token endpoint. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_AUDIENCE` | string |
`quarkus.oidc.credentials.jwt.token-key-id` Key identifier of the signing key added as a JWT 'kid' header Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_TOKEN_KEY_ID` | string |
`quarkus.oidc.credentials.jwt.issuer` Issuer of the signing key added as a JWT 'iss' claim (default: client id) Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_ISSUER` | string |
`quarkus.oidc.credentials.jwt.subject` Subject of the signing key added as a JWT 'sub' claim (default: client id) Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_SUBJECT` | string |
`quarkus.oidc.credentials.jwt.signature-algorithm` Signature algorithm, also used for the `key-file` property. Supported values: RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512, HS256, HS384, HS512. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_SIGNATURE_ALGORITHM` | string |
`quarkus.oidc.credentials.jwt.lifespan` JWT life-span in seconds. It will be added to the time it was issued at to calculate the expiration time. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_LIFESPAN` | int | `10`
`quarkus.oidc.proxy.host` The host (name or IP address) of the Proxy. Note: If OIDC adapter needs to use a Proxy to talk with OIDC server (Provider), then at least the "host" config item must be configured to enable the usage of a Proxy. Environment variable: `QUARKUS_OIDC_PROXY_HOST` | string |
`quarkus.oidc.proxy.port` The port number of the Proxy. Default value is 80. Environment variable: `QUARKUS_OIDC_PROXY_PORT` | int | `80`
`quarkus.oidc.proxy.username` The username, if Proxy needs authentication. Environment variable: `QUARKUS_OIDC_PROXY_USERNAME` | string |
`quarkus.oidc.proxy.password` The password, if Proxy needs authentication. Environment variable: `QUARKUS_OIDC_PROXY_PASSWORD` | string |
`quarkus.oidc.tls.verification` Certificate validation and hostname verification, which can be one of the following values from enum `Verification`. Default is required. Environment variable: `QUARKUS_OIDC_TLS_VERIFICATION` | `required`, `certificate-validation`, `none` |
`quarkus.oidc.tls.key-store-file` An optional key store which holds the certificate information instead of specifying separate files. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_FILE` | path |
`quarkus.oidc.tls.key-store-file-type` An optional parameter to specify type of the key store file. If not given, the type is automatically detected based on the file name. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_FILE_TYPE` | string |
`quarkus.oidc.tls.key-store-provider` An optional parameter to specify a provider of the key store file. If not given, the provider is automatically detected based on the key store file type. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_PROVIDER` | string |
`quarkus.oidc.tls.key-store-password` A parameter to specify the password of the key store file. If not given, the default ("password") is used. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_PASSWORD` | string |
`quarkus.oidc.tls.key-store-key-alias` An optional parameter to select a specific key in the key store. When SNI is disabled, if the key store contains multiple keys and no alias is specified, the behavior is undefined. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_KEY_ALIAS` | string |
`quarkus.oidc.tls.key-store-key-password` An optional parameter to define the password for the key, in case it’s different from `key-store-password`. Environment variable: `QUARKUS_OIDC_TLS_KEY_STORE_KEY_PASSWORD` | string |
`quarkus.oidc.tls.trust-store-file` An optional trust store which holds the certificate information of the certificates to trust Environment variable: `QUARKUS_OIDC_TLS_TRUST_STORE_FILE` | path |
`quarkus.oidc.tls.trust-store-password` A parameter to specify the password of the trust store file. Environment variable: `QUARKUS_OIDC_TLS_TRUST_STORE_PASSWORD` | string |
`quarkus.oidc.tls.trust-store-cert-alias` A parameter to specify the alias of the trust store certificate. Environment variable: `QUARKUS_OIDC_TLS_TRUST_STORE_CERT_ALIAS` | string |
`quarkus.oidc.tls.trust-store-file-type` An optional parameter to specify type of the trust store file. If not given, the type is automatically detected based on the file name. Environment variable: `QUARKUS_OIDC_TLS_TRUST_STORE_FILE_TYPE` | string |
`quarkus.oidc.tls.trust-store-provider` An optional parameter to specify a provider of the trust store file. If not given, the provider is automatically detected based on the trust store file type. Environment variable: `QUARKUS_OIDC_TLS_TRUST_STORE_PROVIDER` | string |
`quarkus.oidc.tenant-id` A unique tenant identifier. It must be set by `TenantConfigResolver` providers which resolve the tenant configuration dynamically and is optional in all other cases. Environment variable: `QUARKUS_OIDC_TENANT_ID` | string |
`quarkus.oidc.tenant-enabled` If this tenant configuration is enabled. Note that the default tenant will be disabled if it is not configured but either `TenantConfigResolver` which will resolve tenant configurations is registered or named tenants are configured. You do not have to disable the default tenant in this case. Environment variable: `QUARKUS_OIDC_TENANT_ENABLED` | boolean | `true`
`quarkus.oidc.application-type` The application type, which can be one of the following values from enum `ApplicationType`. Environment variable: `QUARKUS_OIDC_APPLICATION_TYPE` | `web-app`, `service`, `hybrid` | `service`
`quarkus.oidc.authorization-path` Relative path or absolute URL of the OIDC authorization endpoint which authenticates the users. This property must be set for the 'web-app' applications if OIDC discovery is disabled. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC_AUTHORIZATION_PATH` | string |
`quarkus.oidc.user-info-path` Relative path or absolute URL of the OIDC userinfo endpoint. This property must only be set for the 'web-app' applications if OIDC discovery is disabled and 'authentication.user-info-required' property is enabled. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC_USER_INFO_PATH` | string |
`quarkus.oidc.introspection-path` Relative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JWT tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens have to be verified or 2) JWT tokens have to be verified while the cached JWK verification set with no matching JWK is being refreshed. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC_INTROSPECTION_PATH` | string |
`quarkus.oidc.jwks-path` Relative path or absolute URL of the OIDC JWKS endpoint which returns a JSON Web Key Verification Set. This property should be set if OIDC discovery is disabled and the local JWT verification is required. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC_JWKS_PATH` | string |
`quarkus.oidc.end-session-path` Relative path or absolute URL of the OIDC end_session_endpoint. This property must be set if OIDC discovery is disabled and RP Initiated Logout support for the 'web-app' applications is required. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC_END_SESSION_PATH` | string |
`quarkus.oidc.public-key` Public key for the local JWT token verification. OIDC server connection will not be created when this property is set. Environment variable: `QUARKUS_OIDC_PUBLIC_KEY` | string |
`quarkus.oidc.introspection-credentials.name` Name Environment variable: `QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_NAME` | string |
`quarkus.oidc.introspection-credentials.secret` Secret Environment variable: `QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_SECRET` | string |
`quarkus.oidc.introspection-credentials.include-client-id` Include OpenId Connect Client ID configured with 'quarkus.oidc.client-id' Environment variable: `QUARKUS_OIDC_INTROSPECTION_CREDENTIALS_INCLUDE_CLIENT_ID` | boolean | `true`
`quarkus.oidc.roles.role-claim-path` List of paths to claims containing an array of groups. Each path starts from the top level JWT JSON object and can contain multiple segments where each segment represents a JSON object name only, example: "realm/groups". Use double quotes with the namespace qualified claim names. This property can be used if a token has no 'groups' claim but has the groups set in one or more different claims. Environment variable: `QUARKUS_OIDC_ROLES_ROLE_CLAIM_PATH` | list of string |
`quarkus.oidc.roles.role-claim-separator` Separator for splitting a string which may contain multiple group values. It will only be used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space will be used by default because the standard 'scope' claim may contain a space separated sequence. Environment variable: `QUARKUS_OIDC_ROLES_ROLE_CLAIM_SEPARATOR` | string |
`quarkus.oidc.roles.source` Source of the principal roles. Environment variable: `QUARKUS_OIDC_ROLES_SOURCE` | `idtoken`, `accesstoken`, `userinfo` |
`quarkus.oidc.token.issuer` Expected issuer 'iss' claim value. Note this property overrides the `issuer` property which may 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 then you may 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. Environment variable: `QUARKUS_OIDC_TOKEN_ISSUER` | string |
`quarkus.oidc.token.audience` Expected audience 'aud' claim value which may be a string or an array of strings. Note the audience claim will be verified for ID tokens by default. ID token audience must be equal to the value of `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 will only be done if this property is configured. Environment variable: `QUARKUS_OIDC_TOKEN_AUDIENCE` | list of string |
`quarkus.oidc.token.token-type` Expected token type Environment variable: `QUARKUS_OIDC_TOKEN_TOKEN_TYPE` | string |
`quarkus.oidc.token.lifespan-grace` Life span grace period in seconds. When checking token expiry, current time is allowed to be later than token expiration time by at most the configured number of seconds. When checking token issuance, current time is allowed to be sooner than token issue time by at most the configured number of seconds. Environment variable: `QUARKUS_OIDC_TOKEN_LIFESPAN_GRACE` | int |
`quarkus.oidc.token.age` 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 will be still verified if the logout token contains it. Environment variable: `QUARKUS_OIDC_TOKEN_AGE` | Duration |
`quarkus.oidc.token.principal-claim` Name of the claim which contains a principal name. By default, the 'upn', 'preferred_username' and `sub` claims are checked. Environment variable: `QUARKUS_OIDC_TOKEN_PRINCIPAL_CLAIM` | string |
`quarkus.oidc.token.refresh-expired` Refresh expired authorization code flow ID or access tokens. If this property is enabled then a refresh token request will be performed if the authorization code ID or access token has expired and, if successful, the local session will be updated with the new set of tokens. Otherwise, the local session will be invalidated and the user redirected to the OpenID Provider to re-authenticate. In this case the user may not be challenged again if the OIDC provider session is still active. For this option be effective the `authentication.session-age-extension` property should also be set to a non-zero 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 will be enabled if `quarkus.oidc.token.refresh-token-time-skew` is configured, you do not have to enable this property manually in this case. Environment variable: `QUARKUS_OIDC_TOKEN_REFRESH_EXPIRED` | boolean | `false`
`quarkus.oidc.token.refresh-token-time-skew` Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking if the authorization code ID or access token should be refreshed. If the sum is greater than the authorization code ID or access token’s expiration time then a refresh is going to happen. Environment variable: `QUARKUS_OIDC_TOKEN_REFRESH_TOKEN_TIME_SKEW` | Duration |
`quarkus.oidc.token.forced-jwk-refresh-interval` Forced JWK set refresh interval in minutes. Environment variable: `QUARKUS_OIDC_TOKEN_FORCED_JWK_REFRESH_INTERVAL` | Duration | `10M`
`quarkus.oidc.token.header` Custom HTTP header that contains a bearer token. This option is valid only when the application is of type `ApplicationType#SERVICE`}. Environment variable: `QUARKUS_OIDC_TOKEN_HEADER` | string |
`quarkus.oidc.token.signature-algorithm` Required signature algorithm. OIDC providers support many signature algorithms but if necessary you can restrict Quarkus application to accept tokens signed only using an algorithm configured with this property. Environment variable: `QUARKUS_OIDC_TOKEN_SIGNATURE_ALGORITHM` | `rs256`, `rs384`, `rs512`, `ps256`, `ps384`, `ps512`, `es256`, `es384`, `es512`, `eddsa` |
`quarkus.oidc.token.decryption-key-location` Decryption key location. JWT tokens can be inner-signed and encrypted by OpenId Connect providers. However, it is not always possible to remotely introspect such tokens because the providers may not control the private decryption keys. In such cases set this property to point to the file containing the decryption private key in PEM or JSON Web Key (JWK) format. Note that if a 'private_key_jwt' client authentication method is used then the private key which is used to sign client authentication JWT tokens will be used to try to decrypt an encrypted ID token if this property is not set. Environment variable: `QUARKUS_OIDC_TOKEN_DECRYPTION_KEY_LOCATION` | string |
`quarkus.oidc.token.allow-jwt-introspection` Allow the remote introspection of JWT tokens when no matching JWK key is available. Note this property is set to 'true' by default for backward-compatibility reasons and will be set to `false` instead in one of the next releases. Also note this property will be ignored if JWK endpoint URI is not available and introspecting the tokens is the only verification option. Environment variable: `QUARKUS_OIDC_TOKEN_ALLOW_JWT_INTROSPECTION` | boolean | `true`
`quarkus.oidc.token.require-jwt-introspection-only` Require that JWT tokens are only introspected remotely. Environment variable: `QUARKUS_OIDC_TOKEN_REQUIRE_JWT_INTROSPECTION_ONLY` | boolean | `false`
`quarkus.oidc.token.allow-opaque-token-introspection` Allow the remote introspection of the opaque tokens. Set this property to 'false' if only JWT tokens are expected. Environment variable: `QUARKUS_OIDC_TOKEN_ALLOW_OPAQUE_TOKEN_INTROSPECTION` | boolean | `true`
`quarkus.oidc.token.customizer-name` 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. Environment variable: `QUARKUS_OIDC_TOKEN_CUSTOMIZER_NAME` | string |
`quarkus.oidc.token.verify-access-token-with-user-info` Indirectly verify that the opaque (binary) access token is valid by using it to request UserInfo. Opaque access token is considered valid if the provider accepted this token and returned a valid UserInfo. You should only enable this option if the opaque access tokens have to be accepted but OpenId Connect provider does not have a token introspection endpoint. This property will have no effect when JWT tokens have to be verified. Environment variable: `QUARKUS_OIDC_TOKEN_VERIFY_ACCESS_TOKEN_WITH_USER_INFO` | boolean | `false`
`quarkus.oidc.logout.path` The relative path of the logout endpoint at the application. If provided, the application is able to initiate the logout through this endpoint in conformance with the OpenID Connect RP-Initiated Logout specification. Environment variable: `QUARKUS_OIDC_LOGOUT_PATH` | string |
`quarkus.oidc.logout.post-logout-path` Relative path of the application endpoint where the user should be redirected to after logging out from the OpenID Connect Provider. This endpoint URI must be properly registered at the OpenID Connect Provider as a valid redirect URI. Environment variable: `QUARKUS_OIDC_LOGOUT_POST_LOGOUT_PATH` | string |
`quarkus.oidc.logout.post-logout-uri-param` Name of the post logout URI parameter which will be added as a query parameter to the logout redirect URI. Environment variable: `QUARKUS_OIDC_LOGOUT_POST_LOGOUT_URI_PARAM` | string | `post_logout_redirect_uri`
`quarkus.oidc.logout.backchannel.path` The relative path of the Back-Channel Logout endpoint at the application. Environment variable: `QUARKUS_OIDC_LOGOUT_BACKCHANNEL_PATH` | string |
`quarkus.oidc.logout.backchannel.token-cache-size` Maximum number of logout tokens that can be cached before they are matched against ID tokens stored in session cookies. Environment variable: `QUARKUS_OIDC_LOGOUT_BACKCHANNEL_TOKEN_CACHE_SIZE` | int | `10`
`quarkus.oidc.logout.backchannel.token-cache-time-to-live` Number of minutes a logout token can be cached for. Environment variable: `QUARKUS_OIDC_LOGOUT_BACKCHANNEL_TOKEN_CACHE_TIME_TO_LIVE` | Duration | `10M`
`quarkus.oidc.logout.backchannel.clean-up-timer-interval` Token cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: `QUARKUS_OIDC_LOGOUT_BACKCHANNEL_CLEAN_UP_TIMER_INTERVAL` | Duration |
`quarkus.oidc.logout.backchannel.logout-token-key` Logout token claim whose value will be 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. Environment variable: `QUARKUS_OIDC_LOGOUT_BACKCHANNEL_LOGOUT_TOKEN_KEY` | string | `sub`
`quarkus.oidc.logout.frontchannel.path` The relative path of the Front-Channel Logout endpoint at the application. Environment variable: `QUARKUS_OIDC_LOGOUT_FRONTCHANNEL_PATH` | string |
`quarkus.oidc.authentication.response-mode` Authorization code flow response mode Environment variable: `QUARKUS_OIDC_AUTHENTICATION_RESPONSE_MODE` | `query`, `form-post` | `query`
`quarkus.oidc.authentication.redirect-path` Relative path for calculating a "redirect_uri" query parameter. It has to start from a forward slash and will be appended to the request URI’s host and port. For example, if the current request URI is 'https://localhost:8080/service' then a 'redirect_uri' parameter will be 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 will be restored after the user has authenticated if 'restorePathAfterRedirect' is set to 'true'. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_REDIRECT_PATH` | string |
`quarkus.oidc.authentication.restore-path-after-redirect` If this property is set to 'true' then the original request URI which was used before the authentication will be restored after the user has been redirected back to the application. Note if `redirectPath` property is not set, the original request URI will be restored even if this property is disabled. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_RESTORE_PATH_AFTER_REDIRECT` | boolean | `false`
`quarkus.oidc.authentication.remove-redirect-parameters` Remove the query parameters such as 'code' and 'state' set by the OIDC server on the redirect URI after the user has authenticated by redirecting a user to the same URI but without the query parameters. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_REMOVE_REDIRECT_PARAMETERS` | boolean | `true`
`quarkus.oidc.authentication.error-path` Relative path to the public endpoint which will process the error response from the OIDC authorization endpoint. If the user authentication has failed then the OIDC provider will return an 'error' and an optional 'error_description' parameters, instead of the expected authorization 'code'. If this property is set then the user will be redirected to the endpoint which can return a user-friendly error description page. It has to start from a forward slash and will be 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' then a redirect will be made to 'https://localhost:8080/error?error=invalid_scope'. If this property is not set then HTTP 401 status will be returned in case of the user authentication failure. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_ERROR_PATH` | string |
`quarkus.oidc.authentication.verify-access-token` Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow. ID token is always verified on every user request as the primary token which is used to represent the principal and extract the roles. Access token is not verified by default since it is meant to be propagated to the downstream services. The verification of the access token should be enabled if it is injected as a JWT token. Access tokens obtained as part of the code flow will always be verified if `quarkus.oidc.roles.source` property is set to `accesstoken` which means the authorization decision will be based on the roles extracted from the access token. Bearer access tokens are always verified. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_VERIFY_ACCESS_TOKEN` | boolean | `false`
`quarkus.oidc.authentication.force-redirect-https-scheme` Force 'https' as the 'redirect_uri' parameter scheme when running behind an SSL terminating reverse proxy. This property, if enabled, will also affect the logout `post_logout_redirect_uri` and the local redirect requests. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_FORCE_REDIRECT_HTTPS_SCHEME` | boolean | `false`
`quarkus.oidc.authentication.scopes` List of scopes Environment variable: `QUARKUS_OIDC_AUTHENTICATION_SCOPES` | list of string |
`quarkus.oidc.authentication.nonce-required` Require that ID token includes `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. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_NONCE_REQUIRED` | boolean | `false`
`quarkus.oidc.authentication.add-openid-scope` Add the 'openid' scope automatically to the list of scopes. This is required for OpenId Connect providers but will not work for OAuth2 providers such as Twitter OAuth2 which does not accept that scope and throws an error. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_ADD_OPENID_SCOPE` | boolean | `true`
`quarkus.oidc.authentication.forward-params` Request URL query parameters which, if present, will be added to the authentication redirect URI. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_FORWARD_PARAMS` | list of string |
`quarkus.oidc.authentication.cookie-force-secure` If enabled the state, session and post logout cookies will have their 'secure' parameter set to 'true' when HTTP is used. It may be necessary when running behind an SSL terminating reverse proxy. The cookies will always be secure if HTTPS is used even if this property is set to false. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_FORCE_SECURE` | boolean | `false`
`quarkus.oidc.authentication.cookie-suffix` 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'. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_SUFFIX` | string |
`quarkus.oidc.authentication.cookie-path` Cookie path parameter value which, if set, will be used to set a path parameter for the session, state and post logout cookies. The `cookie-path-header` property, if set, will be checked first. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_PATH` | string | `/`
`quarkus.oidc.authentication.cookie-path-header` Cookie path header parameter value which, if set, identifies the incoming HTTP header whose value will be used to set a path parameter for the session, state and post logout cookies. If the header is missing then the `cookie-path` property will be checked. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_PATH_HEADER` | string |
`quarkus.oidc.authentication.cookie-domain` Cookie domain parameter value which, if set, will be used for the session, state and post logout cookies. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_DOMAIN` | string |
`quarkus.oidc.authentication.cookie-same-site` SameSite attribute for the session cookie. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_COOKIE_SAME_SITE` | `strict`, `lax`, `none` | `lax`
`quarkus.oidc.authentication.allow-multiple-code-flows` If a state cookie is present then a `state` query parameter must also be present and both the state cookie name suffix and state cookie value have to 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 may represent the authentication flow initiated from another tab and not related to the current request. Disable this property if you would like to avoid supporting multiple authorization code flows running in the same browser. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_ALLOW_MULTIPLE_CODE_FLOWS` | boolean | `true`
`quarkus.oidc.authentication.fail-on-missing-state-param` Fail with the HTTP 401 error if the state cookie is present but no state query parameter is present. When either multiple authentications are disabled or the redirect URL matches the original request URL, the stale state cookie might remain in the browser cache from the earlier failed redirect to an OpenId Connect provider and be visible during the current request. For example, if Single-page application (SPA) uses XHR to handle redirects to the provider which does not support CORS for its authorization endpoint, the browser will block it and the state cookie created by Quarkus will remain in the browser cache. Quarkus will report an authentication failure when it will detect such an old state cookie but find no matching state query parameter. Reporting HTTP 401 error is usually the right thing to do in such cases, it will minimize a risk of the browser redirect loop but also can identify problems in the way SPA or Quarkus application manage redirects. For example, enabling `java-script-auto-redirect` or having the provider redirect to URL configured with `redirect-path` may be needed to avoid such errors. However, setting this property to `false` may help if the above options are not suitable. It will cause a new authentication redirect to OpenId Connect provider. Please be aware doing so may increase the risk of browser redirect loops. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_FAIL_ON_MISSING_STATE_PARAM` | boolean | `true`
`quarkus.oidc.authentication.user-info-required` If this property is set to 'true' then an OIDC UserInfo endpoint will be called. This property will be enabled if `quarkus.oidc.roles.source` is `userinfo` or `quarkus.oidc.token.verify-access-token-with-user-info` is `true` or `quarkus.oidc.authentication.id-token-required` is set to `false`, you do not have to enable this property manually in these cases. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_USER_INFO_REQUIRED` | boolean | `false`
`quarkus.oidc.authentication.session-age-extension` Session age extension in minutes. The user session age property is set to the value of the ID token life-span by default and the user will be redirected to the OIDC provider to re-authenticate once the session has expired. If this property is set to a non-zero value then the expired ID token can be refreshed before the session has expired. This property will be ignored if the `token.refresh-expired` property has not been enabled. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_SESSION_AGE_EXTENSION` | Duration | `5M`
`quarkus.oidc.authentication.java-script-auto-redirect` If this property is set to 'true' then a normal 302 redirect response will be returned if the request was initiated via JavaScript API such as XMLHttpRequest or Fetch and the current user needs to be (re)authenticated which may not be desirable for Single-page applications (SPA) since it automatically following the redirect may not work given that OIDC authorization endpoints typically do not support CORS. If this property is set to 'false' then a status code of '499' will be returned to allow SPA to handle the redirect manually if a request header identifying current request as a JavaScript request is found. 'X-Requested-With' request header with its value set to either `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. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_JAVA_SCRIPT_AUTO_REDIRECT` | boolean | `true`
`quarkus.oidc.authentication.id-token-required` Requires that ID token is available when the authorization code flow completes. Disable this property only when you need to use the authorization code flow with OAuth2 providers which do not return ID token - an internal IdToken will be generated in such cases. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_ID_TOKEN_REQUIRED` | boolean | `true`
`quarkus.oidc.authentication.internal-id-token-lifespan` Internal ID token lifespan. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_INTERNAL_ID_TOKEN_LIFESPAN` | Duration | `5M`
`quarkus.oidc.authentication.pkce-required` Requires that a Proof Key for Code Exchange (PKCE) is used. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_PKCE_REQUIRED` | boolean | `false`
`quarkus.oidc.authentication.state-secret` Secret which will be used to encrypt Proof Key for Code Exchange (PKCE) code verifier and/or nonce in the code flow state. This secret should be at least 32 characters long. If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` will be checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication will be checked. Client secret will not be used as a state encryption secret if it is less than 32 characters long. The secret will be auto-generated if it remains uninitialized after checking all of these properties. Error will be reported if the secret length is less than 16 characters. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_STATE_SECRET` | string |
`quarkus.oidc.token-state-manager.strategy` Default TokenStateManager strategy. Environment variable: `QUARKUS_OIDC_TOKEN_STATE_MANAGER_STRATEGY` | `keep-all-tokens`, `id-token`, `id-refresh-tokens` | `keep-all-tokens`
`quarkus.oidc.token-state-manager.split-tokens` Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size Environment variable: `QUARKUS_OIDC_TOKEN_STATE_MANAGER_SPLIT_TOKENS` | boolean | `false`
`quarkus.oidc.token-state-manager.encryption-required` Mandates that the session cookie that stores the tokens is encrypted. Environment variable: `QUARKUS_OIDC_TOKEN_STATE_MANAGER_ENCRYPTION_REQUIRED` | boolean | `true`
`quarkus.oidc.token-state-manager.encryption-secret` Secret which will be used to encrypt the session cookie storing the tokens when `encryption-required` property is enabled. If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` will be checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication will be checked. The secret will be auto-generated if it remains uninitialized after checking all of these properties. The length of the secret which will be used to encrypt the tokens should be at least 32 characters long. Warning will be logged if the secret length is less than 16 characters. Environment variable: `QUARKUS_OIDC_TOKEN_STATE_MANAGER_ENCRYPTION_SECRET` | string |
`quarkus.oidc.allow-token-introspection-cache` 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 then please see `OidcConfig.TokenCache` how to enable it. Environment variable: `QUARKUS_OIDC_ALLOW_TOKEN_INTROSPECTION_CACHE` | boolean | `true`
`quarkus.oidc.allow-user-info-cache` 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 then please see `OidcConfig.TokenCache` how to enable it. Environment variable: `QUARKUS_OIDC_ALLOW_USER_INFO_CACHE` | boolean | `true`
`quarkus.oidc.cache-user-info-in-idtoken` Allow inlining UserInfo in IdToken instead of caching it in the token cache. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Inlining UserInfo in the generated IdToken allows to store it in the session cookie and avoids introducing a cached state. Environment variable: `QUARKUS_OIDC_CACHE_USER_INFO_IN_IDTOKEN` | boolean | `false`
`quarkus.oidc.provider` Well known OpenId Connect provider identifier Environment variable: `QUARKUS_OIDC_PROVIDER` | `apple`, `facebook`, `github`, `google`, `microsoft`, `spotify`, `twitch`, `twitter` |
`quarkus.oidc.token-cache.max-size` Maximum number of cache entries. Set it to a positive value if the cache has to be enabled. Environment variable: `QUARKUS_OIDC_TOKEN_CACHE_MAX_SIZE` | int | `0`
`quarkus.oidc.token-cache.time-to-live` Maximum amount of time a given cache entry is valid for. Environment variable: `QUARKUS_OIDC_TOKEN_CACHE_TIME_TO_LIVE` | Duration | `3M`
`quarkus.oidc.token-cache.clean-up-timer-interval` Clean up timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: `QUARKUS_OIDC_TOKEN_CACHE_CLEAN_UP_TIMER_INTERVAL` | Duration |
`quarkus.oidc.devui.grant-options` Grant options Environment variable: `QUARKUS_OIDC_DEVUI_GRANT_OPTIONS` | `Map<String,Map<String,String>>` |
`quarkus.oidc.credentials.jwt.claims` Additional claims. Environment variable: `QUARKUS_OIDC_CREDENTIALS_JWT_CLAIMS` | `Map<String,String>` |
`quarkus.oidc.token.required-claims` 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`. Strings are the only supported types. Use `SecurityIdentityAugmentor` to verify claims of other types or complex claims. Environment variable: `QUARKUS_OIDC_TOKEN_REQUIRED_CLAIMS` | `Map<String,String>` |
`quarkus.oidc.logout.extra-params` Additional properties which will be added as the query parameters to the logout redirect URI. Environment variable: `QUARKUS_OIDC_LOGOUT_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc.authentication.extra-params` Additional properties which will be added as the query parameters to the authentication redirect URI. Environment variable: `QUARKUS_OIDC_AUTHENTICATION_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc.code-grant.extra-params` Additional parameters, in addition to the required `code` and `redirect-uri` parameters, which have to be included to complete the authorization code grant request. Environment variable: `QUARKUS_OIDC_CODE_GRANT_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc.code-grant.headers` Custom HTTP headers which have to be sent to complete the authorization code grant request. Environment variable: `QUARKUS_OIDC_CODE_GRANT_HEADERS` | `Map<String,String>` |
Additional named tenants | Type | Default
`quarkus.oidc."tenant".auth-server-url` The base URL of the OpenID Connect (OIDC) server, for example, `https://host:port/auth`. OIDC discovery endpoint will be called by default by appending a '.well-known/openid-configuration' path to this URL. Note if you work with Keycloak OIDC server, make sure the base URL is in the following format: `https://host:port/realms/{realm}` where `{realm}` has to be replaced by the name of the Keycloak realm. Environment variable: `QUARKUS_OIDC__TENANT__AUTH_SERVER_URL` | string |
`quarkus.oidc."tenant".discovery-enabled` Enables OIDC discovery. If the discovery is disabled then the OIDC endpoint URLs must be configured individually. Environment variable: `QUARKUS_OIDC__TENANT__DISCOVERY_ENABLED` | boolean | `true`
`quarkus.oidc."tenant".token-path` Relative path or absolute URL of the OIDC token endpoint which issues access and refresh tokens. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_PATH` | string |
`quarkus.oidc."tenant".revoke-path` Relative path or absolute URL of the OIDC token revocation endpoint. Environment variable: `QUARKUS_OIDC__TENANT__REVOKE_PATH` | string |
`quarkus.oidc."tenant".client-id` The client-id of the application. Each application has a client-id that is used to identify the application Environment variable: `QUARKUS_OIDC__TENANT__CLIENT_ID` | string |
`quarkus.oidc."tenant".connection-delay` The maximum amount of time connecting to the currently unavailable OIDC server will be attempted for. The number of times the connection request will be repeated is calculated by dividing the value of this property by 2. For example, setting it to `20S` will allow for requesting the connection up to 10 times with a 2 seconds delay between the retries. Note this property is only effective when the initial OIDC connection is created, for example, when requesting a well-known OIDC configuration. Use the 'connection-retry-count' property to support trying to re-establish an already available connection which may have been dropped. Environment variable: `QUARKUS_OIDC__TENANT__CONNECTION_DELAY` | Duration |
`quarkus.oidc."tenant".connection-retry-count` The number of times an attempt to re-establish an already available connection will be repeated for. Note this property is different to the `connection-delay` property which is only effective during the initial OIDC connection creation. This property is used to try to recover the existing connection which may have been temporarily lost. For example, if a request to the OIDC token endpoint fails due to a connection exception then the request will be retried for a number of times configured by this property. Environment variable: `QUARKUS_OIDC__TENANT__CONNECTION_RETRY_COUNT` | int | `3`
`quarkus.oidc."tenant".connection-timeout` The amount of time after which the current OIDC connection request will time out. Environment variable: `QUARKUS_OIDC__TENANT__CONNECTION_TIMEOUT` | Duration | `10S`
`quarkus.oidc."tenant".max-pool-size` The maximum size of the connection pool used by the WebClient Environment variable: `QUARKUS_OIDC__TENANT__MAX_POOL_SIZE` | int |
`quarkus.oidc."tenant".credentials.secret` Client secret which is used for a `client_secret_basic` authentication method. Note that a 'client-secret.value' can be used instead but both properties are mutually exclusive. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_SECRET` | string |
`quarkus.oidc."tenant".credentials.client-secret.value` The client secret value - it will be ignored if 'secret.key' is set Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_CLIENT_SECRET_VALUE` | string |
`quarkus.oidc."tenant".credentials.client-secret.provider.name` The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_CLIENT_SECRET_PROVIDER_NAME` | string |
`quarkus.oidc."tenant".credentials.client-secret.provider.key` The CredentialsProvider client secret key Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_CLIENT_SECRET_PROVIDER_KEY` | string |
`quarkus.oidc."tenant".credentials.client-secret.method` Authentication method. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_CLIENT_SECRET_METHOD` | `basic`, `post`, `post-jwt` |
`quarkus.oidc."tenant".credentials.jwt.secret` If provided, indicates that JWT is signed using a secret key Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_SECRET` | string |
`quarkus.oidc."tenant".credentials.jwt.secret-provider.name` The CredentialsProvider name which should only be set if more than one CredentialsProvider is registered Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_SECRET_PROVIDER_NAME` | string |
`quarkus.oidc."tenant".credentials.jwt.secret-provider.key` The CredentialsProvider client secret key Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_SECRET_PROVIDER_KEY` | string |
`quarkus.oidc."tenant".credentials.jwt.key-file` If provided, indicates that JWT is signed using a private key in PEM or JWK format. You can use the `signature-algorithm` property to specify the key algorithm. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_KEY_FILE` | string |
`quarkus.oidc."tenant".credentials.jwt.key-store-file` If provided, indicates that JWT is signed using a private key from a key store Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_KEY_STORE_FILE` | string |
`quarkus.oidc."tenant".credentials.jwt.key-store-password` A parameter to specify the password of the key store file. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_KEY_STORE_PASSWORD` | string |
`quarkus.oidc."tenant".credentials.jwt.key-id` The private key id/alias Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_KEY_ID` | string |
`quarkus.oidc."tenant".credentials.jwt.key-password` The private key password Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_KEY_PASSWORD` | string |
`quarkus.oidc."tenant".credentials.jwt.audience` JWT audience ('aud') claim value. By default, the audience is set to the address of the OpenId Connect Provider’s token endpoint. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_AUDIENCE` | string |
`quarkus.oidc."tenant".credentials.jwt.token-key-id` Key identifier of the signing key added as a JWT 'kid' header Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_TOKEN_KEY_ID` | string |
`quarkus.oidc."tenant".credentials.jwt.issuer` Issuer of the signing key added as a JWT 'iss' claim (default: client id) Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_ISSUER` | string |
`quarkus.oidc."tenant".credentials.jwt.subject` Subject of the signing key added as a JWT 'sub' claim (default: client id) Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_SUBJECT` | string |
`quarkus.oidc."tenant".credentials.jwt.claims` Additional claims. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_CLAIMS` | `Map<String,String>` |
`quarkus.oidc."tenant".credentials.jwt.signature-algorithm` Signature algorithm, also used for the `key-file` property. Supported values: RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512, HS256, HS384, HS512. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_SIGNATURE_ALGORITHM` | string |
`quarkus.oidc."tenant".credentials.jwt.lifespan` JWT life-span in seconds. It will be added to the time it was issued at to calculate the expiration time. Environment variable: `QUARKUS_OIDC__TENANT__CREDENTIALS_JWT_LIFESPAN` | int | `10`
`quarkus.oidc."tenant".proxy.host` The host (name or IP address) of the Proxy. Note: If OIDC adapter needs to use a Proxy to talk with OIDC server (Provider), then at least the "host" config item must be configured to enable the usage of a Proxy. Environment variable: `QUARKUS_OIDC__TENANT__PROXY_HOST` | string |
`quarkus.oidc."tenant".proxy.port` The port number of the Proxy. Default value is 80. Environment variable: `QUARKUS_OIDC__TENANT__PROXY_PORT` | int | `80`
`quarkus.oidc."tenant".proxy.username` The username, if Proxy needs authentication. Environment variable: `QUARKUS_OIDC__TENANT__PROXY_USERNAME` | string |
`quarkus.oidc."tenant".proxy.password` The password, if Proxy needs authentication. Environment variable: `QUARKUS_OIDC__TENANT__PROXY_PASSWORD` | string |
`quarkus.oidc."tenant".tls.verification` Certificate validation and hostname verification, which can be one of the following values from enum `Verification`. Default is required. Environment variable: `QUARKUS_OIDC__TENANT__TLS_VERIFICATION` | `required`, `certificate-validation`, `none` |
`quarkus.oidc."tenant".tls.key-store-file` An optional key store which holds the certificate information instead of specifying separate files. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_FILE` | path |
`quarkus.oidc."tenant".tls.key-store-file-type` An optional parameter to specify type of the key store file. If not given, the type is automatically detected based on the file name. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_FILE_TYPE` | string |
`quarkus.oidc."tenant".tls.key-store-provider` An optional parameter to specify a provider of the key store file. If not given, the provider is automatically detected based on the key store file type. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_PROVIDER` | string |
`quarkus.oidc."tenant".tls.key-store-password` A parameter to specify the password of the key store file. If not given, the default ("password") is used. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_PASSWORD` | string |
`quarkus.oidc."tenant".tls.key-store-key-alias` An optional parameter to select a specific key in the key store. When SNI is disabled, if the key store contains multiple keys and no alias is specified, the behavior is undefined. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_KEY_ALIAS` | string |
`quarkus.oidc."tenant".tls.key-store-key-password` An optional parameter to define the password for the key, in case it’s different from `key-store-password`. Environment variable: `QUARKUS_OIDC__TENANT__TLS_KEY_STORE_KEY_PASSWORD` | string |
`quarkus.oidc."tenant".tls.trust-store-file` An optional trust store which holds the certificate information of the certificates to trust Environment variable: `QUARKUS_OIDC__TENANT__TLS_TRUST_STORE_FILE` | path |
`quarkus.oidc."tenant".tls.trust-store-password` A parameter to specify the password of the trust store file. Environment variable: `QUARKUS_OIDC__TENANT__TLS_TRUST_STORE_PASSWORD` | string |
`quarkus.oidc."tenant".tls.trust-store-cert-alias` A parameter to specify the alias of the trust store certificate. Environment variable: `QUARKUS_OIDC__TENANT__TLS_TRUST_STORE_CERT_ALIAS` | string |
`quarkus.oidc."tenant".tls.trust-store-file-type` An optional parameter to specify type of the trust store file. If not given, the type is automatically detected based on the file name. Environment variable: `QUARKUS_OIDC__TENANT__TLS_TRUST_STORE_FILE_TYPE` | string |
`quarkus.oidc."tenant".tls.trust-store-provider` An optional parameter to specify a provider of the trust store file. If not given, the provider is automatically detected based on the trust store file type. Environment variable: `QUARKUS_OIDC__TENANT__TLS_TRUST_STORE_PROVIDER` | string |
`quarkus.oidc."tenant".tenant-id` A unique tenant identifier. It must be set by `TenantConfigResolver` providers which resolve the tenant configuration dynamically and is optional in all other cases. Environment variable: `QUARKUS_OIDC__TENANT__TENANT_ID` | string |
`quarkus.oidc."tenant".tenant-enabled` If this tenant configuration is enabled. Note that the default tenant will be disabled if it is not configured but either `TenantConfigResolver` which will resolve tenant configurations is registered or named tenants are configured. You do not have to disable the default tenant in this case. Environment variable: `QUARKUS_OIDC__TENANT__TENANT_ENABLED` | boolean | `true`
`quarkus.oidc."tenant".application-type` The application type, which can be one of the following values from enum `ApplicationType`. Environment variable: `QUARKUS_OIDC__TENANT__APPLICATION_TYPE` | `web-app`, `service`, `hybrid` | `service`
`quarkus.oidc."tenant".authorization-path` Relative path or absolute URL of the OIDC authorization endpoint which authenticates the users. This property must be set for the 'web-app' applications if OIDC discovery is disabled. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC__TENANT__AUTHORIZATION_PATH` | string |
`quarkus.oidc."tenant".user-info-path` Relative path or absolute URL of the OIDC userinfo endpoint. This property must only be set for the 'web-app' applications if OIDC discovery is disabled and 'authentication.user-info-required' property is enabled. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC__TENANT__USER_INFO_PATH` | string |
`quarkus.oidc."tenant".introspection-path` Relative path or absolute URL of the OIDC RFC7662 introspection endpoint which can introspect both opaque and JWT tokens. This property must be set if OIDC discovery is disabled and 1) the opaque bearer access tokens have to be verified or 2) JWT tokens have to be verified while the cached JWK verification set with no matching JWK is being refreshed. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC__TENANT__INTROSPECTION_PATH` | string |
`quarkus.oidc."tenant".jwks-path` Relative path or absolute URL of the OIDC JWKS endpoint which returns a JSON Web Key Verification Set. This property should be set if OIDC discovery is disabled and the local JWT verification is required. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC__TENANT__JWKS_PATH` | string |
`quarkus.oidc."tenant".end-session-path` Relative path or absolute URL of the OIDC end_session_endpoint. This property must be set if OIDC discovery is disabled and RP Initiated Logout support for the 'web-app' applications is required. This property will be ignored if the discovery is enabled. Environment variable: `QUARKUS_OIDC__TENANT__END_SESSION_PATH` | string |
`quarkus.oidc."tenant".public-key` Public key for the local JWT token verification. OIDC server connection will not be created when this property is set. Environment variable: `QUARKUS_OIDC__TENANT__PUBLIC_KEY` | string |
`quarkus.oidc."tenant".introspection-credentials.name` Name Environment variable: `QUARKUS_OIDC__TENANT__INTROSPECTION_CREDENTIALS_NAME` | string |
`quarkus.oidc."tenant".introspection-credentials.secret` Secret Environment variable: `QUARKUS_OIDC__TENANT__INTROSPECTION_CREDENTIALS_SECRET` | string |
`quarkus.oidc."tenant".introspection-credentials.include-client-id` Include OpenId Connect Client ID configured with 'quarkus.oidc.client-id' Environment variable: `QUARKUS_OIDC__TENANT__INTROSPECTION_CREDENTIALS_INCLUDE_CLIENT_ID` | boolean | `true`
`quarkus.oidc."tenant".roles.role-claim-path` List of paths to claims containing an array of groups. Each path starts from the top level JWT JSON object and can contain multiple segments where each segment represents a JSON object name only, example: "realm/groups". Use double quotes with the namespace qualified claim names. This property can be used if a token has no 'groups' claim but has the groups set in one or more different claims. Environment variable: `QUARKUS_OIDC__TENANT__ROLES_ROLE_CLAIM_PATH` | list of string |
`quarkus.oidc."tenant".roles.role-claim-separator` Separator for splitting a string which may contain multiple group values. It will only be used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space will be used by default because the standard 'scope' claim may contain a space separated sequence. Environment variable: `QUARKUS_OIDC__TENANT__ROLES_ROLE_CLAIM_SEPARATOR` | string |
`quarkus.oidc."tenant".roles.source` Source of the principal roles. Environment variable: `QUARKUS_OIDC__TENANT__ROLES_SOURCE` | `idtoken`, `accesstoken`, `userinfo` |
`quarkus.oidc."tenant".token.issuer` Expected issuer 'iss' claim value. Note this property overrides the `issuer` property which may 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 then you may 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. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_ISSUER` | string |
`quarkus.oidc."tenant".token.audience` Expected audience 'aud' claim value which may be a string or an array of strings. Note the audience claim will be verified for ID tokens by default. ID token audience must be equal to the value of `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 will only be done if this property is configured. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_AUDIENCE` | list of string |
`quarkus.oidc."tenant".token.required-claims` 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`. Strings are the only supported types. Use `SecurityIdentityAugmentor` to verify claims of other types or complex claims. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_REQUIRED_CLAIMS` | `Map<String,String>` |
`quarkus.oidc."tenant".token.token-type` Expected token type Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_TOKEN_TYPE` | string |
`quarkus.oidc."tenant".token.lifespan-grace` Life span grace period in seconds. When checking token expiry, current time is allowed to be later than token expiration time by at most the configured number of seconds. When checking token issuance, current time is allowed to be sooner than token issue time by at most the configured number of seconds. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_LIFESPAN_GRACE` | int |
`quarkus.oidc."tenant".token.age` 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 will be still verified if the logout token contains it. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_AGE` | Duration |
`quarkus.oidc."tenant".token.principal-claim` Name of the claim which contains a principal name. By default, the 'upn', 'preferred_username' and `sub` claims are checked. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_PRINCIPAL_CLAIM` | string |
`quarkus.oidc."tenant".token.refresh-expired` Refresh expired authorization code flow ID or access tokens. If this property is enabled then a refresh token request will be performed if the authorization code ID or access token has expired and, if successful, the local session will be updated with the new set of tokens. Otherwise, the local session will be invalidated and the user redirected to the OpenID Provider to re-authenticate. In this case the user may not be challenged again if the OIDC provider session is still active. For this option be effective the `authentication.session-age-extension` property should also be set to a non-zero 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 will be enabled if `quarkus.oidc.token.refresh-token-time-skew` is configured, you do not have to enable this property manually in this case. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_REFRESH_EXPIRED` | boolean | `false`
`quarkus.oidc."tenant".token.refresh-token-time-skew` Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking if the authorization code ID or access token should be refreshed. If the sum is greater than the authorization code ID or access token’s expiration time then a refresh is going to happen. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_REFRESH_TOKEN_TIME_SKEW` | Duration |
`quarkus.oidc."tenant".token.forced-jwk-refresh-interval` Forced JWK set refresh interval in minutes. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_FORCED_JWK_REFRESH_INTERVAL` | Duration | `10M`
`quarkus.oidc."tenant".token.header` Custom HTTP header that contains a bearer token. This option is valid only when the application is of type `ApplicationType#SERVICE`}. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_HEADER` | string |
`quarkus.oidc."tenant".token.signature-algorithm` Required signature algorithm. OIDC providers support many signature algorithms but if necessary you can restrict Quarkus application to accept tokens signed only using an algorithm configured with this property. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_SIGNATURE_ALGORITHM` | `rs256`, `rs384`, `rs512`, `ps256`, `ps384`, `ps512`, `es256`, `es384`, `es512`, `eddsa` |
`quarkus.oidc."tenant".token.decryption-key-location` Decryption key location. JWT tokens can be inner-signed and encrypted by OpenId Connect providers. However, it is not always possible to remotely introspect such tokens because the providers may not control the private decryption keys. In such cases set this property to point to the file containing the decryption private key in PEM or JSON Web Key (JWK) format. Note that if a 'private_key_jwt' client authentication method is used then the private key which is used to sign client authentication JWT tokens will be used to try to decrypt an encrypted ID token if this property is not set. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_DECRYPTION_KEY_LOCATION` | string |
`quarkus.oidc."tenant".token.allow-jwt-introspection` Allow the remote introspection of JWT tokens when no matching JWK key is available. Note this property is set to 'true' by default for backward-compatibility reasons and will be set to `false` instead in one of the next releases. Also note this property will be ignored if JWK endpoint URI is not available and introspecting the tokens is the only verification option. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_ALLOW_JWT_INTROSPECTION` | boolean | `true`
`quarkus.oidc."tenant".token.require-jwt-introspection-only` Require that JWT tokens are only introspected remotely. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_REQUIRE_JWT_INTROSPECTION_ONLY` | boolean | `false`
`quarkus.oidc."tenant".token.allow-opaque-token-introspection` Allow the remote introspection of the opaque tokens. Set this property to 'false' if only JWT tokens are expected. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_ALLOW_OPAQUE_TOKEN_INTROSPECTION` | boolean | `true`
`quarkus.oidc."tenant".token.customizer-name` 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. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_CUSTOMIZER_NAME` | string |
`quarkus.oidc."tenant".token.verify-access-token-with-user-info` Indirectly verify that the opaque (binary) access token is valid by using it to request UserInfo. Opaque access token is considered valid if the provider accepted this token and returned a valid UserInfo. You should only enable this option if the opaque access tokens have to be accepted but OpenId Connect provider does not have a token introspection endpoint. This property will have no effect when JWT tokens have to be verified. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_VERIFY_ACCESS_TOKEN_WITH_USER_INFO` | boolean | `false`
`quarkus.oidc."tenant".logout.path` The relative path of the logout endpoint at the application. If provided, the application is able to initiate the logout through this endpoint in conformance with the OpenID Connect RP-Initiated Logout specification. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_PATH` | string |
`quarkus.oidc."tenant".logout.post-logout-path` Relative path of the application endpoint where the user should be redirected to after logging out from the OpenID Connect Provider. This endpoint URI must be properly registered at the OpenID Connect Provider as a valid redirect URI. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_POST_LOGOUT_PATH` | string |
`quarkus.oidc."tenant".logout.post-logout-uri-param` Name of the post logout URI parameter which will be added as a query parameter to the logout redirect URI. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_POST_LOGOUT_URI_PARAM` | string | `post_logout_redirect_uri`
`quarkus.oidc."tenant".logout.extra-params` Additional properties which will be added as the query parameters to the logout redirect URI. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc."tenant".logout.backchannel.path` The relative path of the Back-Channel Logout endpoint at the application. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_BACKCHANNEL_PATH` | string |
`quarkus.oidc."tenant".logout.backchannel.token-cache-size` Maximum number of logout tokens that can be cached before they are matched against ID tokens stored in session cookies. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_BACKCHANNEL_TOKEN_CACHE_SIZE` | int | `10`
`quarkus.oidc."tenant".logout.backchannel.token-cache-time-to-live` Number of minutes a logout token can be cached for. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_BACKCHANNEL_TOKEN_CACHE_TIME_TO_LIVE` | Duration | `10M`
`quarkus.oidc."tenant".logout.backchannel.clean-up-timer-interval` Token cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_BACKCHANNEL_CLEAN_UP_TIMER_INTERVAL` | Duration |
`quarkus.oidc."tenant".logout.backchannel.logout-token-key` Logout token claim whose value will be 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. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_BACKCHANNEL_LOGOUT_TOKEN_KEY` | string | `sub`
`quarkus.oidc."tenant".logout.frontchannel.path` The relative path of the Front-Channel Logout endpoint at the application. Environment variable: `QUARKUS_OIDC__TENANT__LOGOUT_FRONTCHANNEL_PATH` | string |
`quarkus.oidc."tenant".authentication.response-mode` Authorization code flow response mode Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_RESPONSE_MODE` | `query`, `form-post` | `query`
`quarkus.oidc."tenant".authentication.redirect-path` Relative path for calculating a "redirect_uri" query parameter. It has to start from a forward slash and will be appended to the request URI’s host and port. For example, if the current request URI is 'https://localhost:8080/service' then a 'redirect_uri' parameter will be 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 will be restored after the user has authenticated if 'restorePathAfterRedirect' is set to 'true'. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_REDIRECT_PATH` | string |
`quarkus.oidc."tenant".authentication.restore-path-after-redirect` If this property is set to 'true' then the original request URI which was used before the authentication will be restored after the user has been redirected back to the application. Note if `redirectPath` property is not set, the original request URI will be restored even if this property is disabled. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_RESTORE_PATH_AFTER_REDIRECT` | boolean | `false`
`quarkus.oidc."tenant".authentication.remove-redirect-parameters` Remove the query parameters such as 'code' and 'state' set by the OIDC server on the redirect URI after the user has authenticated by redirecting a user to the same URI but without the query parameters. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_REMOVE_REDIRECT_PARAMETERS` | boolean | `true`
`quarkus.oidc."tenant".authentication.error-path` Relative path to the public endpoint which will process the error response from the OIDC authorization endpoint. If the user authentication has failed then the OIDC provider will return an 'error' and an optional 'error_description' parameters, instead of the expected authorization 'code'. If this property is set then the user will be redirected to the endpoint which can return a user-friendly error description page. It has to start from a forward slash and will be 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' then a redirect will be made to 'https://localhost:8080/error?error=invalid_scope'. If this property is not set then HTTP 401 status will be returned in case of the user authentication failure. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_ERROR_PATH` | string |
`quarkus.oidc."tenant".authentication.verify-access-token` Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow. ID token is always verified on every user request as the primary token which is used to represent the principal and extract the roles. Access token is not verified by default since it is meant to be propagated to the downstream services. The verification of the access token should be enabled if it is injected as a JWT token. Access tokens obtained as part of the code flow will always be verified if `quarkus.oidc.roles.source` property is set to `accesstoken` which means the authorization decision will be based on the roles extracted from the access token. Bearer access tokens are always verified. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_VERIFY_ACCESS_TOKEN` | boolean | `false`
`quarkus.oidc."tenant".authentication.force-redirect-https-scheme` Force 'https' as the 'redirect_uri' parameter scheme when running behind an SSL terminating reverse proxy. This property, if enabled, will also affect the logout `post_logout_redirect_uri` and the local redirect requests. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_FORCE_REDIRECT_HTTPS_SCHEME` | boolean | `false`
`quarkus.oidc."tenant".authentication.scopes` List of scopes Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_SCOPES` | list of string |
`quarkus.oidc."tenant".authentication.nonce-required` Require that ID token includes `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. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_NONCE_REQUIRED` | boolean | `false`
`quarkus.oidc."tenant".authentication.add-openid-scope` Add the 'openid' scope automatically to the list of scopes. This is required for OpenId Connect providers but will not work for OAuth2 providers such as Twitter OAuth2 which does not accept that scope and throws an error. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_ADD_OPENID_SCOPE` | boolean | `true`
`quarkus.oidc."tenant".authentication.extra-params` Additional properties which will be added as the query parameters to the authentication redirect URI. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc."tenant".authentication.forward-params` Request URL query parameters which, if present, will be added to the authentication redirect URI. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_FORWARD_PARAMS` | list of string |
`quarkus.oidc."tenant".authentication.cookie-force-secure` If enabled the state, session and post logout cookies will have their 'secure' parameter set to 'true' when HTTP is used. It may be necessary when running behind an SSL terminating reverse proxy. The cookies will always be secure if HTTPS is used even if this property is set to false. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_FORCE_SECURE` | boolean | `false`
`quarkus.oidc."tenant".authentication.cookie-suffix` 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'. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_SUFFIX` | string |
`quarkus.oidc."tenant".authentication.cookie-path` Cookie path parameter value which, if set, will be used to set a path parameter for the session, state and post logout cookies. The `cookie-path-header` property, if set, will be checked first. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_PATH` | string | `/`
`quarkus.oidc."tenant".authentication.cookie-path-header` Cookie path header parameter value which, if set, identifies the incoming HTTP header whose value will be used to set a path parameter for the session, state and post logout cookies. If the header is missing then the `cookie-path` property will be checked. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_PATH_HEADER` | string |
`quarkus.oidc."tenant".authentication.cookie-domain` Cookie domain parameter value which, if set, will be used for the session, state and post logout cookies. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_DOMAIN` | string |
`quarkus.oidc."tenant".authentication.cookie-same-site` SameSite attribute for the session cookie. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_COOKIE_SAME_SITE` | `strict`, `lax`, `none` | `lax`
`quarkus.oidc."tenant".authentication.allow-multiple-code-flows` If a state cookie is present then a `state` query parameter must also be present and both the state cookie name suffix and state cookie value have to 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 may represent the authentication flow initiated from another tab and not related to the current request. Disable this property if you would like to avoid supporting multiple authorization code flows running in the same browser. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_ALLOW_MULTIPLE_CODE_FLOWS` | boolean | `true`
`quarkus.oidc."tenant".authentication.fail-on-missing-state-param` Fail with the HTTP 401 error if the state cookie is present but no state query parameter is present. When either multiple authentications are disabled or the redirect URL matches the original request URL, the stale state cookie might remain in the browser cache from the earlier failed redirect to an OpenId Connect provider and be visible during the current request. For example, if Single-page application (SPA) uses XHR to handle redirects to the provider which does not support CORS for its authorization endpoint, the browser will block it and the state cookie created by Quarkus will remain in the browser cache. Quarkus will report an authentication failure when it will detect such an old state cookie but find no matching state query parameter. Reporting HTTP 401 error is usually the right thing to do in such cases, it will minimize a risk of the browser redirect loop but also can identify problems in the way SPA or Quarkus application manage redirects. For example, enabling `java-script-auto-redirect` or having the provider redirect to URL configured with `redirect-path` may be needed to avoid such errors. However, setting this property to `false` may help if the above options are not suitable. It will cause a new authentication redirect to OpenId Connect provider. Please be aware doing so may increase the risk of browser redirect loops. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_FAIL_ON_MISSING_STATE_PARAM` | boolean | `true`
`quarkus.oidc."tenant".authentication.user-info-required` If this property is set to 'true' then an OIDC UserInfo endpoint will be called. This property will be enabled if `quarkus.oidc.roles.source` is `userinfo` or `quarkus.oidc.token.verify-access-token-with-user-info` is `true` or `quarkus.oidc.authentication.id-token-required` is set to `false`, you do not have to enable this property manually in these cases. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_USER_INFO_REQUIRED` | boolean | `false`
`quarkus.oidc."tenant".authentication.session-age-extension` Session age extension in minutes. The user session age property is set to the value of the ID token life-span by default and the user will be redirected to the OIDC provider to re-authenticate once the session has expired. If this property is set to a non-zero value then the expired ID token can be refreshed before the session has expired. This property will be ignored if the `token.refresh-expired` property has not been enabled. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_SESSION_AGE_EXTENSION` | Duration | `5M`
`quarkus.oidc."tenant".authentication.java-script-auto-redirect` If this property is set to 'true' then a normal 302 redirect response will be returned if the request was initiated via JavaScript API such as XMLHttpRequest or Fetch and the current user needs to be (re)authenticated which may not be desirable for Single-page applications (SPA) since it automatically following the redirect may not work given that OIDC authorization endpoints typically do not support CORS. If this property is set to 'false' then a status code of '499' will be returned to allow SPA to handle the redirect manually if a request header identifying current request as a JavaScript request is found. 'X-Requested-With' request header with its value set to either `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. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_JAVA_SCRIPT_AUTO_REDIRECT` | boolean | `true`
`quarkus.oidc."tenant".authentication.id-token-required` Requires that ID token is available when the authorization code flow completes. Disable this property only when you need to use the authorization code flow with OAuth2 providers which do not return ID token - an internal IdToken will be generated in such cases. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_ID_TOKEN_REQUIRED` | boolean | `true`
`quarkus.oidc."tenant".authentication.internal-id-token-lifespan` Internal ID token lifespan. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_INTERNAL_ID_TOKEN_LIFESPAN` | Duration | `5M`
`quarkus.oidc."tenant".authentication.pkce-required` Requires that a Proof Key for Code Exchange (PKCE) is used. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_PKCE_REQUIRED` | boolean | `false`
`quarkus.oidc."tenant".authentication.state-secret` Secret which will be used to encrypt Proof Key for Code Exchange (PKCE) code verifier and/or nonce in the code flow state. This secret should be at least 32 characters long. If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` will be checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication will be checked. Client secret will not be used as a state encryption secret if it is less than 32 characters long. The secret will be auto-generated if it remains uninitialized after checking all of these properties. Error will be reported if the secret length is less than 16 characters. Environment variable: `QUARKUS_OIDC__TENANT__AUTHENTICATION_STATE_SECRET` | string |
`quarkus.oidc."tenant".code-grant.extra-params` Additional parameters, in addition to the required `code` and `redirect-uri` parameters, which have to be included to complete the authorization code grant request. Environment variable: `QUARKUS_OIDC__TENANT__CODE_GRANT_EXTRA_PARAMS` | `Map<String,String>` |
`quarkus.oidc."tenant".code-grant.headers` Custom HTTP headers which have to be sent to complete the authorization code grant request. Environment variable: `QUARKUS_OIDC__TENANT__CODE_GRANT_HEADERS` | `Map<String,String>` |
`quarkus.oidc."tenant".token-state-manager.strategy` Default TokenStateManager strategy. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_STATE_MANAGER_STRATEGY` | `keep-all-tokens`, `id-token`, `id-refresh-tokens` | `keep-all-tokens`
`quarkus.oidc."tenant".token-state-manager.split-tokens` Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_STATE_MANAGER_SPLIT_TOKENS` | boolean | `false`
`quarkus.oidc."tenant".token-state-manager.encryption-required` Mandates that the session cookie that stores the tokens is encrypted. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_STATE_MANAGER_ENCRYPTION_REQUIRED` | boolean | `true`
`quarkus.oidc."tenant".token-state-manager.encryption-secret` Secret which will be used to encrypt the session cookie storing the tokens when `encryption-required` property is enabled. If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` will be checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication will be checked. The secret will be auto-generated if it remains uninitialized after checking all of these properties. The length of the secret which will be used to encrypt the tokens should be at least 32 characters long. Warning will be logged if the secret length is less than 16 characters. Environment variable: `QUARKUS_OIDC__TENANT__TOKEN_STATE_MANAGER_ENCRYPTION_SECRET` | string |
`quarkus.oidc."tenant".allow-token-introspection-cache` 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 then please see `OidcConfig.TokenCache` how to enable it. Environment variable: `QUARKUS_OIDC__TENANT__ALLOW_TOKEN_INTROSPECTION_CACHE` | boolean | `true`
`quarkus.oidc."tenant".allow-user-info-cache` 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 then please see `OidcConfig.TokenCache` how to enable it. Environment variable: `QUARKUS_OIDC__TENANT__ALLOW_USER_INFO_CACHE` | boolean | `true`
`quarkus.oidc."tenant".cache-user-info-in-idtoken` Allow inlining UserInfo in IdToken instead of caching it in the token cache. This property is only checked when an internal IdToken is generated when Oauth2 providers do not return IdToken. Inlining UserInfo in the generated IdToken allows to store it in the session cookie and avoids introducing a cached state. Environment variable: `QUARKUS_OIDC__TENANT__CACHE_USER_INFO_IN_IDTOKEN` | boolean | `false`
`quarkus.oidc."tenant".provider` Well known OpenId Connect provider identifier Environment variable: `QUARKUS_OIDC__TENANT__PROVIDER` | `apple`, `facebook`, `github`, `google`, `microsoft`, `spotify`, `twitch`, `twitter` |

| About the Duration format The format for durations uses the standard `java.time.Duration` format. You can learn more about it in the Duration#parse() javadoc. You can also provide duration values starting with a number. In this case, if the value consists only of a number, the converter treats the value as seconds. Otherwise, `PT` is implicitly prepended to the value to obtain a standard `java.time.Duration` format.

## References

- OIDC Bearer token authentication

- Protect a service application by using OpenID Connect (OIDC) Bearer token authentication

- OpenID Connect

- OpenID Connect and OAuth2 Client and Filters Reference Guide

- Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms

- Combining authentication mechanisms

- Quarkus Security