Skip to content

io.helidon.security.providers.oidc.OidcProvider

Description

Open ID Connect security provider

Configuration options

KeyTypeDefaultDescription
force-https-redirectsBooleanfalseForce HTTPS for redirects to identity provider
corsCrossOriginConfigAssign cross-origin resource sharing settings
cookie-encryption-refresh-enabledBooleantrueWhether to encrypt refresh token cookie created by this microservice
query-id-token-param-nameStringid_tokenName of a query parameter that contains the JWT id token when parameter is used
header-useBooleantrueWhether to expect JWT in a header field
header-tokenTokenHandlerA TokenHandler to process header containing a JWT
cookie-name-stateStringJSESSIONID_3The name of the cookie to use for the state storage
outboundList<OutboundTarget>Add a new target configuration
propagateBooleanfalseWhether to propagate identity
client-credentials-configClientCredentialsConfigSet the configuration related to the client credentials flow
cookie-name-refresh-tokenStringJSESSIONID_3The name of the cookie to use for the refresh token
query-param-tenant-nameStringh_tenantName of a query parameter that contains the tenant name when the parameter is used
query-param-nameStringaccessTokenName of a query parameter that contains the JWT access token when parameter is used
pkce-challenge-methodPkceChallengeMethodS256Proof Key Code Exchange (PKCE) challenge creation method
optionalBooleanfalseWhether authentication is required
cookie-domainStringDomain the cookie is valid for
frontend-uriStringFull URI of this application that is visible from user browser
cookie-same-siteSameSiteLAXWhen using cookie, used to set the SameSite cookie value
cookie-encryption-id-enabledBooleantrueWhether to encrypt id token cookie created by this microservice
webclientWebClientWebClient configuration used for outbound requests to the identity server. This configuration sets the values to the OIDC WebClient default configuration
cookie-http-onlyBooleantrueWhen using cookie, if set to true, the HttpOnly attribute will be configured
cookie-encryption-enabledBooleanfalseWhether to encrypt token cookie created by this microservice
pkce-enabledBooleanfalseWhether this provider should support PKCE
proxy-portInteger80Proxy port
cookie-encryption-tenant-enabledBooleantrueWhether to encrypt tenant name cookie created by this microservice
use-jwt-groupsBooleantrueClaim groups from JWT will be used to automatically add groups to current subject (may be used with jakarta.annotation.security.RolesAllowed annotation)
token-signature-validationBooleantrueWhether access token signature check should be enabled
cookie-nameStringJSESSIONIDName of the cookie to use
cookie-useBooleantrueWhether to use cookie to store JWT between requests
outbound-typeOidcOutboundTypeUSER_JWTType of the OIDC outbound
redirectBooleanfalseBy default, the client should redirect to the identity server for the user to log in
redirect-uriString/oidc/redirectURI to register web server component on, used by the OIDC server to redirect authorization requests to after a user logs in or approves scopes
cookie-name-id-tokenStringJSESSIONID_2Name of the cookie to use for id token
tenantsTenantConfigConfigurations of the tenants
cookie-max-age-secondsLongWhen using cookie, used to set MaxAge attribute of the cookie, defining how long the cookie is valid
cookie-encryption-passwordList<String>Master password for encryption/decryption of cookies
cookie-encryption-state-enabledBooleantrueWhether to encrypt state cookie created by this microservice
cookie-pathString/Path the cookie is valid for
query-param-useBooleanfalseWhether to use a query parameter to send JWT token from application to this server
cookie-name-tenantStringHELIDON_TENANTThe name of the cookie to use for the tenant name
cookie-secureBooleanfalseWhen using cookie, if set to true, the Secure attribute will be configured
cookie-encryption-nameStringName of the encryption configuration available through Security#encrypt(String, byte[]) and Security#decrypt(String, String)
id-token-signature-validationBooleantrueWhether id token signature check should be enabled
max-redirectsInteger5Configure maximal number of redirects when redirecting to an OIDC provider within a single authentication attempt
access-token-ip-checkBooleantrueWhether to check if current IP address matches the one access token was issued for
redirect-attempt-paramStringh_raConfigure the parameter used to store the number of attempts in redirect

Deprecated Options

KeyTypeDefaultDescription
relative-urisBooleanfalseCan be set to true to force the use of relative URIs in all requests, regardless of the presence or absence of proxies or no-proxy lists
proxy-hostStringProxy host to use
proxy-protocolStringhttpProxy protocol to use when proxy is used

Usages


See the manifest for all available types.