Skip to content

Commit ebb277d

Browse files
deerskindollthemr0cJessicaJHee
authored
RHDHBUGS-2067 - Grouped optional configurations in one example file (#1442) (#1447)
* RHDHBUGS-2067 - Grouped optional configurations in one example file * Apply suggestions from code review * Update modules/authentication/proc-enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider.adoc * Apply suggestions from code review * Update modules/authentication/snip-enabling-user-authentication-with-github-common-first-steps.adoc * Update modules/authentication/snip-enabling-user-authentication-with-github-common-first-steps.adoc * Apply suggestions from code review --------- Signed-off-by: Fabrice Flore-Thébault <[email protected]> Co-authored-by: Fabrice Flore-Thébault <[email protected]> Co-authored-by: Jessica He <[email protected]>
1 parent 947a437 commit ebb277d

File tree

31 files changed

+989
-1100
lines changed

31 files changed

+989
-1100
lines changed

assemblies/assembly-authenticating-with-rhbk.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
= Authenticating with {rhbk-brand-name} ({rhbk})
55

66

7-
include::modules/authentication/proc-enabling-user-authentication-with-rhbk.adoc[leveloffset=+1]
7+
include::modules/authentication/proc-enabling-user-authentication-with-rhbk-with-optional-steps.adoc[leveloffset=+1]
88

99

1010
include::modules/authentication/proc-creating-a-custom-transformer-to-provision-users-from-rhbk-to-the-software-catalog.adoc[leveloffset=+1]

assemblies/assembly-enabling-authentication-with-github.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[id='enabling-authentication-with-github']
55
= Enabling authentication with GitHub
66

7-
include::modules/authentication/proc-enabling-user-authentication-with-github.adoc[leveloffset=+1]
7+
include::modules/authentication/proc-enabling-user-authentication-with-github-with-optional-steps.adoc[leveloffset=+1]
88

99

1010
include::modules/authentication/proc-enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider.adoc[leveloffset=+1]

assemblies/assembly-enabling-authentication-with-mandatory-steps-only.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ include::modules/authentication/con-understanding-authentication-and-user-provis
1010
include::assembly-authenticating-with-the-guest-user.adoc[leveloffset=+1]
1111

1212

13-
include::modules/authentication/proc-enabling-user-authentication-with-rhbk.adoc[leveloffset=+1]
13+
include::modules/authentication/proc-enabling-user-authentication-with-rhbk-with-mandatory-steps.adoc[leveloffset=+1]
1414

1515

16-
include::modules/authentication/proc-enabling-user-authentication-with-github.adoc[leveloffset=+1]
16+
include::modules/authentication/proc-enabling-user-authentication-with-github-with-mandatory-steps.adoc[leveloffset=+1]
1717

1818

19-
include::modules/authentication/proc-enabling-user-authentication-with-microsoft-azure.adoc[leveloffset=+1]
19+
include::modules/authentication/proc-enabling-user-authentication-with-microsoft-azure-with-mandatory-steps.adoc[leveloffset=+1]
2020

assemblies/assembly-enabling-authentication.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ include::assembly-authenticating-with-rhbk.adoc[leveloffset=+1]
1616
include::assembly-enabling-authentication-with-github.adoc[leveloffset=+1]
1717

1818

19-
include::modules/authentication/proc-enabling-user-authentication-with-microsoft-azure.adoc[leveloffset=+1]
19+
include::modules/authentication/proc-enabling-user-authentication-with-microsoft-azure-with-optional-steps.adoc[leveloffset=+1]
2020

modules/authentication/proc-creating-a-custom-transformer-to-provision-users-from-rhbk-to-the-software-catalog.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Customize how {product} provisions users and groups to {product} software catalo
77
by creating a backend module that uses the `keycloakTransformerExtensionPoint` to offer custom user and group transformers for the Keycloak backend.
88

99
.Prerequisites
10-
* You have xref:enabling-user-authentication-with-rhbk[enabled provisioning users from {rhbk-brand-name} ({rhbk}) to the software catalog].
10+
* You have xref:enabling-user-authentication-with-rhbk-with-optional-steps[enabled provisioning users from {rhbk-brand-name} ({rhbk}) to the software catalog].
1111

1212
.Procedure
1313
. Create a new backend module with the `yarn new` command.

modules/authentication/proc-enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
[id="enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider"]
44
= Enabling user authentication with GitHub as an auxiliary authentication provider
55

6-
To allow users to access GitHub templates or plugins that require GitHub authentication, configure GitHub as an auxiliary authentication provider. This method relies on a primary authentication provider for user identity management, and skips resolving user identity from this provider.
6+
If your primary authentication provider is not GitHub, users might lack the permissions needed for templates or plugins that require GitHub access. The recommended solution is to configure GitHub as an auxiliary authentication provider. This approach uses the primary provider for user identity management and the auxiliary provider to grant the necessary GitHub permissions, without re-resolving the user's identity.
7+
8+
Give users access to these features by configuring GitHub as an auxiliary authentication provider.
79

810
.Prerequisites
9-
* You have {configuring-book-link}[added a custom {product-short} application configuration] with another authentication provider enabled, and have enough permissions to change it.
11+
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
12+
* You have configured a primary authentication provider to provision user and group identities to the {product} software catalog, and establish {product-short} user sessions.
1013

11-
include::snip-enabling-user-authentication-with-github-common-steps.adoc[]
1214

13-
. To set up the GitHub authentication provider as an auxiliary authentication provider, add the `auth.providers.github` section to your `{my-app-config-file}` file:
15+
.Procedure
16+
. Add the `auth.providers.github` section to your `{my-app-config-file}` file:
1417
+
1518
[source,yaml]
1619
----
@@ -31,11 +34,14 @@ Enter the configured secret variable name: `$\{GITHUB_CLIENT_ID}`.
3134
Enter the configured secret variable name: `$\{GITHUB_CLIENT_SECRET}`.
3235

3336
`disableIdentityResolution`::
34-
Enter `true`to skip user identity resolution for this provider to enable sign-in from an auxiliary authentication provider.
37+
Enter `true` to skip user identity resolution for this provider to enable sign-in from an auxiliary authentication provider.
38+
+
39+
[WARNING]
40+
====
3541
Do not enable this setting on the primary authentication provider you plan on using for sign-in and identity management.
42+
====
3643

3744
.Verification
38-
3945
. Go to the {product-short} login page.
4046
. Log in with your primary authentication provider account.
4147
. In the top user menu, go to *Settings* > *Authentication Providers*.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="enabling-user-authentication-with-github-with-mandatory-steps"]
4+
= Enabling user authentication with GitHub
5+
6+
Authenticate users with GitHub by provisioning the users and groups from GitHub to the {product-short} software catalog, and configuring the GitHub authentication provider in {product}.
7+
8+
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
9+
10+
include::snip-enabling-user-authentication-with-github-common-first-steps.adoc[]
11+
+
12+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
13+
14+
include::snip-enabling-user-authentication-with-github-common-verification-steps.adoc[]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="enabling-user-authentication-with-github-with-optional-steps"]
4+
= Enabling user authentication with GitHub, with optional steps
5+
6+
Authenticate users with GitHub by provisioning the users and groups from GitHub to the {product-short} software catalog, and configuring the GitHub authentication provider in {product}.
7+
8+
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
9+
10+
include::snip-enabling-user-authentication-with-github-common-first-steps.adoc[]
11+
12+
. {empty}
13+
+
14+
--
15+
include::snip-enabling-user-authentication-with-github-optional-authentication-provider-steps.adoc[]
16+
--
17+
18+
include::snip-enabling-user-authentication-with-github-common-verification-steps.adoc[]

modules/authentication/proc-enabling-user-authentication-with-github.adoc

Lines changed: 0 additions & 158 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="enabling-user-authentication-with-microsoft-azure-with-mandatory-steps"]
4+
= Enabling user authentication with {azure-brand-name}
5+
6+
include::snip-enabling-user-authentication-with-microsoft-azure-common-first-steps.adoc[]
7+
+
8+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
9+
10+
include::snip-enabling-user-authentication-with-microsoft-azure-common-authentication-provider-steps.adoc[]
11+
+
12+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
13+
14+
include::snip-enabling-user-authentication-with-microsoft-azure-common-verification-steps.adoc[]

0 commit comments

Comments
 (0)