Skip to content

Commit 89285cd

Browse files
themr0chmanwani-rh
andauthored
RHIDP-4684 Update Keycloak configuration instructions (#681)
* RHIDP-4684 Update Keycloak configuration instructions to improve performance and security Signed-off-by: Fabrice Flore-Thébault <[email protected]> * RHIDP-4684 Update Keycloak configuration instructions to improve performance and security Signed-off-by: Fabrice Flore-Thébault <[email protected]> * Update modules/authentication/proc-enabling-authentication-with-rhsso.adoc Co-authored-by: Heena Manwani <[email protected]> * Update modules/authentication/proc-enabling-authentication-with-rhsso.adoc Co-authored-by: Heena Manwani <[email protected]> * Apply suggestions from code review Co-authored-by: Heena Manwani <[email protected]> --------- Signed-off-by: Fabrice Flore-Thébault <[email protected]> Co-authored-by: Heena Manwani <[email protected]>
1 parent ae84251 commit 89285cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

modules/authentication/proc-enabling-authentication-with-rhsso.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Save the value for the next step:
2323
* **Client ID**
2424
* **Client Secret**
2525

26+
.. Configure your {rhsso} realm for performance and security:
27+
... Navigate to the **Configure** > **Realm Settings**.
28+
... Set the **Access Token Lifespan** to a value greater than five minutes (preferably 10 or 15 minutes) to prevent performance issues from frequent refresh token requests for every API call.
29+
... Enable the **Revoke Refresh Token** option to improve security by enabling the refresh token rotation strategy.
30+
2631
.. To prepare for the verification steps, in the same realm, get the credential information for an existing user or link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/getting_started_guide/index#create-user_[create a user]. Save the user credential information for the verification steps.
2732

2833
. To add your {rhsso} credentials to your {product-short} secrets, edit your {product-short} secrets, such as `secrets-rhdh`, and add the following key/value pairs:
@@ -163,6 +168,18 @@ auth:
163168
----
164169
--
165170

171+
`auth.backstageTokenExpiration`::
172+
--
173+
To modify the {product-short} token expiration from its default value of one hour, note that this refers to the validity of short-term cryptographic tokens, not the session duration. The expiration value must be set between 10 minutes and 24 hours.
174+
175+
.`app-config-rhdh.yaml` fragment with optional `auth.backstageTokenExpiration` field
176+
[source,yaml,subs="+quotes"]
177+
----
178+
auth:
179+
backstageTokenExpiration: { minutes: _<user_defined_value>_ }
180+
----
181+
--
182+
166183
--
167184

168185
.Verification

0 commit comments

Comments
 (0)