|
1 | | -[id="enabling-authentication-with-rhsso"] |
2 | | -= Enabling authentication with {rhsso-brand-name} ({rhsso}) |
| 1 | +[id="enabling-authentication-with-rhbk"] |
| 2 | += Enabling authentication with {rhbk-brand-name} ({rhbk}) |
3 | 3 |
|
4 | | -To authenticate users with Red Hat Single Sign-On ({rhsso}), enable the OpenID Connect (OIDC) authentication provider in {product}. |
| 4 | +To authenticate users with {rhbk-brand-name} ({rhbk}), enable the OpenID Connect (OIDC) authentication provider in {product}. |
5 | 5 |
|
6 | 6 |
|
7 | 7 | .Prerequisites |
8 | 8 | * You link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html/administration_guide_for_red_hat_developer_hub/assembly-add-custom-app-file-openshift_admin-rhdh[added a custom {product-short} application configuration], and have sufficient permissions to modify it. |
9 | | -* You have sufficient permissions in {rhsso} to create and manage a realm. |
| 9 | +* You have sufficient permissions in {rhbk} to create and manage a realm. |
10 | 10 |
|
11 | 11 | .Procedure |
12 | | -. To allow {product-short} to authenticate with {rhsso}, complete the steps in {rhsso}, to link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/getting_started_guide/index#realms-apps_[create a realm and a user] and link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/getting_started_guide/index#registering-app_[register the {product-short} application]: |
| 12 | +. To allow {product-short} to authenticate with {rhbk}, complete the steps in {rhbk}, to link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/24.0/html/getting_started_guide/getting-started-zip-#getting-started-zip-create-a-realm[create a realm and a user] and link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/24.0/html/getting_started_guide/getting-started-zip-#getting-started-zip-secure-the-first-application[secure the first application]: |
13 | 13 |
|
14 | | -.. Use an existing realm, or link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/getting_started_guide/index#create-realm_[create a realm], with a distinctive **Name** such as __<my_realm>__. |
| 14 | +.. Use an existing realm, or link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/24.0/html/getting_started_guide/getting-started-zip-#getting-started-zip-create-a-realm[create a realm], with a distinctive **Name** such as __<my_realm>__. |
15 | 15 | Save the value for the next step: |
16 | | -* **{rhsso} realm base URL**, such as: __<your_rhsso_URL>__/auth/realms/__<your_realm>__. |
| 16 | +* **{rhbk} realm base URL**, such as: __<your_rhbk_URL>__/realms/__<your_realm>__. |
17 | 17 |
|
18 | | -.. To register your {product-short} in {rhsso}, in the created realm, link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/getting_started_guide/index#registering-app_[create a Client ID], with: |
| 18 | +.. To register your {product-short} in {rhbk}, in the created realm, link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/24.0/html-single/getting_started_guide/index#getting-started-zip-secure-the-first-application[secure the first application], with: |
19 | 19 | ... **Client ID**: A distinctive client ID, such as __<{product-very-short}>__. |
20 | 20 | ... **Valid redirect URIs**: Set to the OIDC handler URL: `https://__<RHDH_URL>__/api/auth/oidc/handler/frame`. |
21 | 21 | ... Navigate to the **Credentials** tab and copy the **Client secret**. |
22 | 22 | ... Save the values for the next step: |
23 | 23 | * **Client ID** |
24 | 24 | * **Client Secret** |
25 | 25 |
|
26 | | -.. Configure your {rhsso} realm for performance and security: |
| 26 | +.. Configure your {rhbk} realm for performance and security: |
27 | 27 | ... Navigate to the **Configure** > **Realm Settings**. |
28 | 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 | 29 | ... Enable the **Revoke Refresh Token** option to improve security by enabling the refresh token rotation strategy. |
30 | 30 |
|
31 | | -.. 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. |
| 31 | +.. 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_build_of_keycloak/24.0/html-single/getting_started_guide/index#getting-started-zip-create-a-user[create a user]. Save the user credential information for the verification steps. |
32 | 32 |
|
33 | | -. 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: |
| 33 | +. To add your {rhbk} credentials to your {product-short} secrets, edit your {product-short} secrets, such as `secrets-rhdh`, and add the following key/value pairs: |
34 | 34 | + |
35 | 35 | `AUTH_OIDC_CLIENT_ID`:: Enter the saved **Client ID**. |
36 | 36 | `AUTH_OIDC_CLIENT_SECRET`:: Enter the saved **Client Secret**. |
37 | | -`AUTH_OIDC_METADATA_URL`:: Enter the saved **{rhsso} realm base URL**. |
| 37 | +`AUTH_OIDC_METADATA_URL`:: Enter the saved **{rhbk} realm base URL**. |
38 | 38 |
|
39 | | -. To set up the {rhsso} authentication provider in your {product-short} custom configuration, edit your custom {product-short} ConfigMap such as `app-config-rhdh`, and add the following lines to the `app-config-rhdh.yaml` content: |
| 39 | +. To set up the {rhbk} authentication provider in your {product-short} custom configuration, edit your custom {product-short} ConfigMap such as `app-config-rhdh`, and add the following lines to the `app-config-rhdh.yaml` content: |
40 | 40 | + |
41 | 41 | -- |
42 | | -.`app-config-rhdh.yaml` fragment with mandatory fields to enable authentication with {rhsso} |
| 42 | +.`app-config-rhdh.yaml` fragment with mandatory fields to enable authentication with {rhbk} |
43 | 43 | [source,yaml] |
44 | 44 | ---- |
45 | 45 | auth: |
@@ -90,7 +90,7 @@ dangerouslyAllowSignInWithoutUserInCatalog: true |
90 | 90 |
|
91 | 91 | `callbackUrl`:: |
92 | 92 | -- |
93 | | -{rhsso} callback URL. |
| 93 | +{rhbk} callback URL. |
94 | 94 |
|
95 | 95 | .`app-config-rhdh.yaml` fragment with optional `callbackURL` field |
96 | 96 | [source,yaml] |
@@ -135,7 +135,7 @@ auth: |
135 | 135 |
|
136 | 136 | `scope`:: |
137 | 137 | -- |
138 | | -{rhsso} scope. |
| 138 | +{rhbk} scope. |
139 | 139 |
|
140 | 140 | .`app-config-rhdh.yaml` fragment with optional `scope` field |
141 | 141 | [source,yaml] |
|
0 commit comments