You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copyright (c) 2023, 2024 Oracle and/or its affiliates.
4
4
5
5
Licensed under the Apache License, Version 2.0 (the "License");
6
6
you may not use this file except in compliance with the License.
@@ -71,13 +71,35 @@ This type provides the following service implementations:
71
71
|`client-timeout-millis` |Duration |`30000` |Timeout of calls using web client.
72
72
|`cookie-domain` |string |{nbsp} |Domain the cookie is valid for.
73
73
Not used by default.
74
+
|`cookie-encryption-enabled` |boolean |`false` |Whether to encrypt token cookie created by this microservice.
75
+
Defaults to `false`.
76
+
|`cookie-encryption-enabled-id-token` |boolean |`true` |Whether to encrypt id token cookie created by this microservice.
77
+
Defaults to `true`.
78
+
|`cookie-encryption-enabled-refresh-token` |boolean |`true` |Whether to encrypt refresh token cookie created by this microservice.
79
+
Defaults to `true`.
80
+
|`cookie-encryption-enabled-tenant-name` |boolean |`true` |Whether to encrypt tenant name cookie created by this microservice.
81
+
Defaults to `true`.
82
+
|`cookie-encryption-name` |string |{nbsp} |Name of the encryption configuration available through Security#encrypt(String, byte[]) and
83
+
Security#decrypt(String, String).
84
+
If configured and encryption is enabled for any cookie,
85
+
Security MUST be configured in global or current `io.helidon.common.context.Context` (this
86
+
is done automatically in Helidon MP).
87
+
|`cookie-encryption-password` |char[] |{nbsp} |Master password for encryption/decryption of cookies. This must be configured to the same value on each microservice
88
+
using the cookie.
74
89
|`cookie-http-only` |boolean |`true` |When using cookie, if set to true, the HttpOnly attribute will be configured.
75
90
Defaults to `OidcCookieHandler.Builder#DEFAULT_HTTP_ONLY`.
76
91
|`cookie-max-age-seconds` |long |{nbsp} |When using cookie, used to set MaxAge attribute of the cookie, defining how long
77
92
the cookie is valid.
78
93
Not used by default.
79
94
|`cookie-name` |string |`JSESSIONID` |Name of the cookie to use.
80
95
Defaults to `DEFAULT_COOKIE_NAME`.
96
+
|`cookie-name-id-token` |string |`JSESSIONID_2` |Name of the cookie to use for id token.
97
+
Defaults to `DEFAULT_COOKIE_NAME`_2.
98
+
99
+
This cookie is only used when logout is enabled, as otherwise it is not needed.
100
+
Content of this cookie is encrypted.
101
+
|`cookie-name-refresh-token` |string |`JSESSIONID_3` |The name of the cookie to use for the refresh token.
102
+
Defaults to `DEFAULT_REFRESH_COOKIE_NAME`.
81
103
|`cookie-name-tenant` |string |`HELIDON_TENANT` |The name of the cookie to use for the tenant name.
82
104
Defaults to `DEFAULT_TENANT_COOKIE_NAME`.
83
105
|`cookie-path` |string |`/` |Path the cookie is valid for.
@@ -97,6 +119,9 @@ This type provides the following service implementations:
97
119
process header containing a JWT.
98
120
Default is "Authorization" header with a prefix "bearer ".
99
121
|`header-use` |boolean |`true` |Whether to expect JWT in a header field.
122
+
|`id-token-signature-validation` |boolean |`true` |Whether id token signature check should be enabled.
123
+
Signature check is enabled by default, and it is highly recommended to not change that.
124
+
Change this setting only when you really know what you are doing, otherwise it could case security issues.
100
125
|`identity-uri` |URI |{nbsp} |URI of the identity server, base used to retrieve OIDC metadata.
101
126
|`introspect-endpoint-uri` |URI |{nbsp} |Endpoint to use to validate JWT.
102
127
Either use this or set #signJwk(JwkKeys) or #signJwk(Resource).
@@ -123,7 +148,8 @@ This type provides the following service implementations:
123
148
Defaults to `DEFAULT_PROXY_PORT`
124
149
|`proxy-protocol` |string |`http` |Proxy protocol to use when proxy is used.
125
150
Defaults to `DEFAULT_PROXY_PROTOCOL`.
126
-
|`query-param-name` |string |`accessToken` |Name of a query parameter that contains the JWT token when parameter is used.
151
+
|`query-id-token-param-name` |string |`id_token` |Name of a query parameter that contains the JWT id token when parameter is used.
152
+
|`query-param-name` |string |`accessToken` |Name of a query parameter that contains the JWT access token when parameter is used.
127
153
|`query-param-tenant-name` |string |`h_tenant` |Name of a query parameter that contains the tenant name when the parameter is used.
128
154
Defaults to #DEFAULT_TENANT_PARAM_NAME.
129
155
|`query-param-use` |boolean |`false` |Whether to use a query parameter to send JWT token from application to this
@@ -167,6 +193,9 @@ This type provides the following service implementations:
167
193
code.
168
194
If not defined, it is obtained from #oidcMetadata(Resource), if that is not defined
169
195
an attempt is made to use #identityUri(URI)/oauth2/v1/token.
196
+
|`token-signature-validation` |boolean |`true` |Whether access token signature check should be enabled.
197
+
Signature check is enabled by default, and it is highly recommended to not change that.
198
+
Change this setting only when you really know what you are doing, otherwise it could case security issues.
170
199
|`use-jwt-groups` |boolean |`true` |Claim `groups` from JWT will be used to automatically add
171
200
groups to current subject (may be used with jakarta.annotation.security.RolesAllowed annotation).
172
201
|`validate-jwt-with-jwk` |boolean |`true` |Use JWK (a set of keys to validate signatures of JWT) to validate tokens.
|`client-timeout-millis` |Duration |`30000` |Timeout of calls using web client.
61
61
|`cookie-domain` |string |{nbsp} |Domain the cookie is valid for.
62
62
Not used by default.
63
+
|`cookie-encryption-enabled` |boolean |`false` |Whether to encrypt token cookie created by this microservice.
64
+
Defaults to `false`.
65
+
|`cookie-encryption-enabled-id-token` |boolean |`true` |Whether to encrypt id token cookie created by this microservice.
66
+
Defaults to `true`.
67
+
|`cookie-encryption-enabled-refresh-token` |boolean |`true` |Whether to encrypt refresh token cookie created by this microservice.
68
+
Defaults to `true`.
69
+
|`cookie-encryption-enabled-tenant-name` |boolean |`true` |Whether to encrypt tenant name cookie created by this microservice.
70
+
Defaults to `true`.
71
+
|`cookie-encryption-name` |string |{nbsp} |Name of the encryption configuration available through Security#encrypt(String, byte[]) and
72
+
Security#decrypt(String, String).
73
+
If configured and encryption is enabled for any cookie,
74
+
Security MUST be configured in global or current `io.helidon.common.context.Context` (this
75
+
is done automatically in Helidon MP).
76
+
|`cookie-encryption-password` |char[] |{nbsp} |Master password for encryption/decryption of cookies. This must be configured to the same value on each microservice
77
+
using the cookie.
63
78
|`cookie-http-only` |boolean |`true` |When using cookie, if set to true, the HttpOnly attribute will be configured.
64
79
Defaults to `OidcCookieHandler.Builder#DEFAULT_HTTP_ONLY`.
65
80
|`cookie-max-age-seconds` |long |{nbsp} |When using cookie, used to set MaxAge attribute of the cookie, defining how long
66
81
the cookie is valid.
67
82
Not used by default.
68
83
|`cookie-name` |string |`JSESSIONID` |Name of the cookie to use.
69
84
Defaults to `DEFAULT_COOKIE_NAME`.
85
+
|`cookie-name-id-token` |string |`JSESSIONID_2` |Name of the cookie to use for id token.
86
+
Defaults to `DEFAULT_COOKIE_NAME`_2.
87
+
88
+
This cookie is only used when logout is enabled, as otherwise it is not needed.
89
+
Content of this cookie is encrypted.
90
+
|`cookie-name-refresh-token` |string |`JSESSIONID_3` |The name of the cookie to use for the refresh token.
91
+
Defaults to `DEFAULT_REFRESH_COOKIE_NAME`.
70
92
|`cookie-name-tenant` |string |`HELIDON_TENANT` |The name of the cookie to use for the tenant name.
71
93
Defaults to `DEFAULT_TENANT_COOKIE_NAME`.
72
94
|`cookie-path` |string |`/` |Path the cookie is valid for.
0 commit comments