- OidcConfig (security.providers.oidc.common) Configuration
Open ID Connect configuration
Configuration options
| key | type | default value | description |
|---|---|---|---|
audience | string | Audience of issued tokens. | |
authorization-endpoint-uri | URI | URI of an authorization endpoint used to redirect users to for logging-in. If not defined, it is obtained from #oidcMetadata(Resource), if that is not defined an attempt is made to use #identityUri(URI)/oauth2/v1/authorize. | |
base-scopes | string | openid | Configure base scopes. By default, this is |
client-id | string | Client ID as generated by OIDC server. | |
client-secret | string | Client secret as generated by OIDC server. Used to authenticate this application with the server when requesting JWT based on a code. | |
client-timeout-millis | Duration | 30000 | Timeout of calls using web client. |
cookie-domain | string | Domain the cookie is valid for. Not used by default. | |
cookie-http-only | boolean | true | When using cookie, if set to true, the HttpOnly attribute will be configured. Defaults to |
cookie-max-age-seconds | long | When using cookie, used to set MaxAge attribute of the cookie, defining how long the cookie is valid. Not used by default. | |
cookie-name | string | JSESSIONID | Name of the cookie to use. Defaults to |
cookie-name-tenant | string | HELIDON_TENANT | Name of the cookie to use for tenant name. Defaults to |
cookie-path | string | / | Path the cookie is valid for. Defaults to "/". |
cookie-same-site | SameSite (LAX, STRICT, NONE) | LAX | When using cookie, used to set the SameSite cookie value. Can be "Strict" or "Lax". |
cookie-secure | boolean | false | When using cookie, if set to true, the Secure attribute will be configured. Defaults to false. |
cookie-use | boolean | true | Whether to use cookie to store JWT between requests. Defaults to |
cors | Assign cross-origin resource sharing settings. | ||
force-https-redirects | boolean | false | Force HTTPS for redirects to identity provider. Defaults to |
frontend-uri | string | Full URI of this application that is visible from user browser. Used to redirect request back from identity server after successful login. | |
header-token | A TokenHandler to process header containing a JWT. Default is "Authorization" header with a prefix "bearer ". | ||
header-use | boolean | true | Whether to expect JWT in a header field. |
identity-uri | URI | URI of the identity server, base used to retrieve OIDC metadata. | |
introspect-endpoint-uri | URI | Endpoint to use to validate JWT. Either use this or set #signJwk(JwkKeys) or #signJwk(Resource). | |
issuer | string | Issuer of issued tokens. | |
max-redirects | int | 5 | Configure maximal number of redirects when redirecting to an OIDC provider within a single authentication attempt. Defaults to `DEFAULT_MAX_REDIRECTS` |
oidc-metadata-well-known | boolean | true | If set to true, metadata will be loaded from default (well known) location, unless it is explicitly defined using oidc-metadata-resource. If set to false, it would not be loaded even if oidc-metadata-resource is not defined. In such a case all URIs must be explicitly defined (e.g. token-endpoint-uri). |
oidc-metadata.resource | Resource configuration for OIDC Metadata containing endpoints to various identity services, as well as information about the identity server. | ||
proxy-host | string | Proxy host to use. When defined, triggers usage of proxy for HTTP requests. Setting to empty String has the same meaning as setting to null - disables proxy. | |
proxy-port | int | 80 | Proxy port. Defaults to |
proxy-protocol | string | http | Proxy protocol to use when proxy is used. Defaults to |
query-param-name | string | accessToken | Name of a query parameter that contains the JWT token when parameter is used. |
query-param-tenant-name | string | h_tenant | Name of a query parameter that contains the tenant name when parameter is used. Defaults to #DEFAULT_TENANT_PARAM_NAME. |
query-param-use | boolean | false | Whether to use a query parameter to send JWT token from application to this server. |
redirect | boolean | false | By default, the client should redirect to the identity server for the user to log in. This behavior can be overridden by setting redirect to false. When token is not present in the request, the client will not redirect and just return appropriate error response code. |
redirect-attempt-param | string | h_ra | Configure the parameter used to store the number of attempts in redirect. Defaults to `DEFAULT_ATTEMPT_PARAM` |
redirect-uri | string | /oidc/redirect | URI to register web server component on, used by the OIDC server to redirect authorization requests to after a user logs in or approves scopes. Note that usually the redirect URI configured here must be the same one as configured on OIDC server. Defaults to `DEFAULT_REDIRECT_URI` |
relative-uris | boolean | false | Can be set to |
scope-audience | string | Audience of the scope required by this application. This is prefixed to the scope name when requesting scopes from the identity server. Defaults to empty string. | |
server-type | string | @default | Configure one of the supported types of identity servers. If the type does not have an explicit mapping, a warning is logged and the default implementation is used. |
sign-jwk.resource | A resource pointing to JWK with public keys of signing certificates used to validate JWT. | ||
tenants | Configurations of the tenants | ||
token-endpoint-auth | ClientAuthentication (CLIENT_SECRET_BASIC, CLIENT_SECRET_POST, CLIENT_SECRET_JWT, PRIVATE_KEY_JWT, NONE) | CLIENT_SECRET_BASIC | Type of authentication to use when invoking the token endpoint. Current supported options:
|
token-endpoint-uri | URI | URI of a token endpoint used to obtain a JWT based on the authentication code. If not defined, it is obtained from #oidcMetadata(Resource), if that is not defined an attempt is made to use #identityUri(URI)/oauth2/v1/token. | |
validate-jwt-with-jwk | boolean | true | Use JWK (a set of keys to validate signatures of JWT) to validate tokens. Use this method when you want to use default values for JWK or introspection endpoint URI. |