Skip to content

Commit 18273cd

Browse files
[1.3.x] RHIDP-3874 Authenticating with the guest user (#494)
Co-authored-by: Fabrice Flore-Thébault <[email protected]>
1 parent f8bb261 commit 18273cd

4 files changed

+76
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
[id="authenticating-with-the-guest-user_{context}"]
3+
= Authenticating with the Guest user
4+
5+
To explore {product-short} features, you can skip configuring authentication and authorization.
6+
You can configure {product-short} to log in as a Guest user and access {product-short} features.
7+
8+
include::modules/authentication/proc-authenticationg-with-the-guest-user-on-an-operator-based-installation.adoc[leveloffset=+1]
9+
10+
11+
include::modules/authentication/proc-authenticationg-with-the-guest-user-on-a-helm-based-installation.adoc[leveloffset=+1]
12+

assemblies/assembly-enabling-authentication.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ For each provider that you want to use, follow the dedicated procedure to comple
3434
. Set up the shared secret that the authentication provider and {product} require to communicate.
3535
. Configure {product} to use the authentication provider.
3636

37+
38+
include::assembly-authenticationg-with-the-guest-user.adoc[leveloffset=+1]
39+
40+
3741
include::modules/auth/proc-adding-azure-as-an-authentication-provider.adoc[leveloffset=+1]
3842

3943

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
[id="authenticating-with-the-guest-user-on-a-helm-based-installation_{context}"]
3+
= Authenticating with the Guest user on a Helm-based installation
4+
5+
On a Helm-based installation, you can configure {product-short} to log in as a Guest user and access {product-short} features.
6+
7+
.Prerequisites
8+
* You link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}#Install%20and%20Upgrade[Installed {product-short} by using the Helm Chart].
9+
10+
.Procedure
11+
* To enable the guest user in your {product-short} custom configuration, link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/administration_guide_for_red_hat_developer_hub/index#proc-add-custom-app-file-openshift-helm_admin-rhdh[configure your {product} Helm Chart] with following content:
12+
+
13+
.{product} Helm Chart configuration fragment
14+
[source,yaml]
15+
----
16+
upstream:
17+
backstage:
18+
appConfig:
19+
app:
20+
baseUrl: 'https://{{- include "janus-idp.hostname" . }}'
21+
auth:
22+
environment: development
23+
providers:
24+
guest:
25+
dangerouslyAllowOutsideDevelopment: true
26+
----
27+
28+
.Verification
29+
. Go to the {product-short} login page.
30+
. To log in with the Guest user account, click **Enter** in the **Guest** tile.
31+
. In the {product-short} **Settings** page, your profile name is **Guest**.
32+
. You can use {product-short} features.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
[id="authenticating-with-the-guest-user-on-an-operator-based-installation_{context}"]
3+
= Authenticating with the Guest user on an Operator-based installation
4+
5+
After an Operator-based installation, you can configure {product-short} to log in as a Guest user and access {product-short} features.
6+
7+
.Prerequisites
8+
* You link:[installed {product-short} by using the Operator].
9+
* You link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/administration_guide_for_red_hat_developer_hub/index#proc-add-custom-app-config-file-ocp-operator_admin-rhdh[added a custom {product-short} application configuration], and have sufficient permissions to modify it.
10+
11+
.Procedure
12+
* To enable the guest user in your {product-short} custom configuration, link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/administration_guide_for_red_hat_developer_hub/index#proc-add-custom-app-config-file-ocp-operator_admin-rhdh[edit your {product-short} application configuration] with following content:
13+
+
14+
.`app-config-rhdh.yaml` fragment
15+
[source,yaml]
16+
----
17+
auth:
18+
environment: development
19+
providers:
20+
guest:
21+
dangerouslyAllowOutsideDevelopment: true
22+
----
23+
24+
.Verification
25+
. Go to the {product-short} login page.
26+
. To log in with the Guest user account, click **Enter** in the **Guest** tile.
27+
. In the {product-short} **Settings** page, your profile name is **Guest**.
28+
. You can use {product-short} features.

0 commit comments

Comments
 (0)