-
Notifications
You must be signed in to change notification settings - Fork 61
[RHDHBUGS-2722]: Restructure authentication title to JTBD outline #2049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
cf35d54
444ae3d
78d4adf
548a56d
345a644
7225040
b30337e
7e31d1b
fdcd7be
3793412
bcf0c89
cdc2786
abe8821
27bfd07
26d15f6
bbb48d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| ifdef::context[:parent-context: {context}] | ||
|
|
||
| [id="enable-authentication-with-external-services_{context}"] | ||
| = Enable authentication with external services | ||
|
|
||
| :context: enable-authentication-with-external-services | ||
|
|
||
| [role="_abstract"] | ||
| Enable authentication with external services to allow {product} to communicate with secondary identity providers and external APIs. | ||
|
|
||
| include::../modules/shared/proc-enable-user-authentication-with-github-as-an-auxiliary-authentication-provider.adoc[leveloffset=+1] | ||
|
|
||
| include::assembly-enable-service-to-service-authentication.adoc[leveloffset=+1] | ||
|
|
||
| ifdef::parent-context[:context: {parent-context}] | ||
| ifndef::parent-context[:!context:] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| ifdef::context[:parent-context: {context}] | ||
|
|
||
| [id="enable-authentication-with-your-identity-provider_{context}"] | ||
| = Enable authentication with your identity provider | ||
|
|
||
| :context: enable-authentication-with-your-identity-provider | ||
| :secrets-context: share-a-secret-with-your-identity-provider | ||
|
|
||
| [role="_abstract"] | ||
| Enable authentication with your main identity provider to allow users to sign in to {product} using their organizational credentials. | ||
|
|
||
| include::../modules/shared/proc-enable-authentication-with-rhbk.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-enable-authentication-with-github.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-enable-authentication-with-microsoft-azure.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-enable-authentication-with-gitlab.adoc[leveloffset=+1] | ||
|
|
||
| ifdef::parent-context[:context: {parent-context}] | ||
| ifndef::parent-context[:!context:] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| ifdef::context[:parent-context: {context}] | ||
|
|
||
| [id="import-users-and-groups-from-your-identity-provider_{context}"] | ||
| = Import users and groups from your identity provider | ||
|
|
||
| :context: import-users-and-groups-from-your-identity-provider | ||
| :secrets-context: share-a-secret-with-your-identity-provider | ||
|
|
||
| [role="_abstract"] | ||
| Import users and groups from your identity provider to the {product} software catalog to enable user identity resolution and role-based access control. | ||
|
|
||
| include::../modules/shared/proc-import-users-and-groups-from-rhbk.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-create-a-custom-transformer-to-provision-users-from-rhbk-to-the-software-catalog.adoc[leveloffset=+2] | ||
|
|
||
| include::../modules/shared/proc-enable-user-provisioning-with-ldap.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-create-a-custom-transformer-to-provision-users-from-ldap-to-the-software-catalog.adoc[leveloffset=+2] | ||
|
|
||
| include::../modules/shared/proc-import-users-and-groups-from-github.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-create-a-custom-transformer-to-provision-users-from-github-to-the-software-catalog.adoc[leveloffset=+2] | ||
|
|
||
| include::../modules/shared/proc-import-users-and-groups-from-microsoft-azure.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-create-a-custom-transformer-to-provision-users-from-to-the-software-catalog.adoc[leveloffset=+2] | ||
|
|
||
| include::../modules/shared/proc-import-users-and-groups-from-gitlab.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-create-a-custom-transformer-to-provision-users-from-gitlab-to-the-software-catalog.adoc[leveloffset=+2] | ||
|
|
||
| ifdef::parent-context[:context: {parent-context}] | ||
| ifndef::parent-context[:!context:] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| ifdef::context[:parent-context: {context}] | ||
|
|
||
| [id="share-a-secret-with-your-identity-provider_{context}"] | ||
| = Share a secret with your identity provider | ||
|
|
||
| :context: share-a-secret-with-your-identity-provider | ||
|
|
||
| [role="_abstract"] | ||
| Share credentials between your identity provider and {product} to enable secure communication for authentication and user provisioning. | ||
|
|
||
| include::../modules/shared/proc-share-a-secret-with-rhbk.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-share-a-secret-with-ldap.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-share-a-secret-with-github.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-share-a-secret-with-microsoft-azure.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/shared/proc-share-a-secret-with-gitlab.adoc[leveloffset=+1] | ||
|
|
||
| ifdef::parent-context[:context: {parent-context}] | ||
| ifndef::parent-context[:!context:] |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,41 @@ | ||||||||||||||||
| :_mod-docs-content-type: SNIPPET | ||||||||||||||||
| :_mod-docs-content-type: PROCEDURE | ||||||||||||||||
|
|
||||||||||||||||
| [id="enable-authentication-with-github_{context}"] | ||||||||||||||||
| = Enable authentication with GitHub | ||||||||||||||||
|
|
||||||||||||||||
| [role="_abstract"] | ||||||||||||||||
| Configure GitHub as your {product} sign-in provider. | ||||||||||||||||
|
|
||||||||||||||||
| .Prerequisites | ||||||||||||||||
| * You have xref:share-a-secret-with-github_{secrets-context}[shared a secret with GitHub]. | ||||||||||||||||
|
|
||||||||||||||||
| .Procedure | ||||||||||||||||
|
|
||||||||||||||||
| . Enable the GitHub authentication provider, by adding the GitHub authentication provider section to your `{my-app-config-file}` file: | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| + | ||||||||||||||||
| [source,yaml] | ||||||||||||||||
| ---- | ||||||||||||||||
| auth: | ||||||||||||||||
| environment: production | ||||||||||||||||
| providers: | ||||||||||||||||
| github: | ||||||||||||||||
| production: | ||||||||||||||||
| clientId: ${GITHUB_CLIENT_ID} | ||||||||||||||||
| clientSecret: ${GITHUB_CLIENT_SECRET} | ||||||||||||||||
| signInPage: github | ||||||||||||||||
| ---- | ||||||||||||||||
|
|
||||||||||||||||
| `environment`:: | ||||||||||||||||
| Enter `production` to disable the Guest login option in the {product-short} login page. | ||||||||||||||||
|
|
||||||||||||||||
| `clientId`:: | ||||||||||||||||
| Enter the configured secret variable name: `$\{GITHUB_CLIENT_ID}`. | ||||||||||||||||
|
|
||||||||||||||||
| `clientSecret`:: | ||||||||||||||||
| Enter the configured secret variable name: `$\{GITHUB_CLIENT_SECRET}`. | ||||||||||||||||
|
|
||||||||||||||||
| `signInPage`:: | ||||||||||||||||
| Enter `github` to enable the GitHub provider as your {product-short} sign-in provider. | ||||||||||||||||
|
|
||||||||||||||||
| . Optional: Add optional fields to the GitHub authentication provider section in your `{my-app-config-file}` file: | ||||||||||||||||
| + | ||||||||||||||||
|
|
@@ -46,14 +83,28 @@ In production mode, configure only one resolver to make sure users are securely | |||||||||||||||
| Enter the sign-in resolver name. | ||||||||||||||||
| Available resolvers: | ||||||||||||||||
|
|
||||||||||||||||
| * `usernameMatchingUserEntityName` | ||||||||||||||||
| * `emailLocalPartMatchingUserEntityName` | ||||||||||||||||
| * `emailMatchingUserEntityProfileEmail` | ||||||||||||||||
| . `usernameMatchingUserEntityName` | ||||||||||||||||
| . `preferredUsernameMatchingUserEntityName` | ||||||||||||||||
| . `emailMatchingUserEntityProfileEmail` | ||||||||||||||||
|
|
||||||||||||||||
| `dangerouslyAllowSignInWithoutUserInCatalog`:::: | ||||||||||||||||
| Enter `true` to configure the sign-in resolver to bypass the user provisioning requirement in the {product-short} software catalog. | ||||||||||||||||
| + | ||||||||||||||||
| [WARNING] | ||||||||||||||||
| ==== | ||||||||||||||||
| In production mode, do not enable `dangerouslyAllowSignInWithoutUserInCatalog`. | ||||||||||||||||
| In production more, do not enable `dangerouslyAllowSignInWithoutUserInCatalog`. | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| ==== | ||||||||||||||||
|
|
||||||||||||||||
| . To disable the guest login option, in the `{my-app-config-file}` file, set the authentication environment to `production`: | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this an optional step? |
||||||||||||||||
| + | ||||||||||||||||
| [source,yaml] | ||||||||||||||||
| ---- | ||||||||||||||||
| auth: | ||||||||||||||||
| environment: production | ||||||||||||||||
| ---- | ||||||||||||||||
|
|
||||||||||||||||
| .Verification | ||||||||||||||||
| . To verify GitHub authentication: | ||||||||||||||||
| .. Go to the {product-short} login page. | ||||||||||||||||
| .. Your {product-short} sign-in page displays *Sign in using GitHub* and the Guest user sign-in is disabled. | ||||||||||||||||
| .. Log in with a GitHub account. | ||||||||||||||||
|
Comment on lines
+107
to
+110
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,58 @@ | ||||||||||||||||
| :_mod-docs-content-type: PROCEDURE | ||||||||||||||||
|
|
||||||||||||||||
| [id="enable-authentication-with-gitlab_{context}"] | ||||||||||||||||
| = Enable authentication with GitLab | ||||||||||||||||
|
|
||||||||||||||||
| [role="_abstract"] | ||||||||||||||||
| Configure GitLab as your {product} sign-in provider. | ||||||||||||||||
|
|
||||||||||||||||
| .Prerequisites | ||||||||||||||||
| * You have xref:share-a-secret-with-gitlab_{secrets-context}[shared a secret with GitLab]. | ||||||||||||||||
|
|
||||||||||||||||
| .Procedure | ||||||||||||||||
|
|
||||||||||||||||
| . Enable the GitLab authentication provider by adding the GitLab authentication provider section to your {product-very-short} `{my-app-config-file}` file: | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| + | ||||||||||||||||
| [source,yaml,subs="+quotes,+attributes"] | ||||||||||||||||
| ---- | ||||||||||||||||
| includeTransitiveGroupOwnership: true | ||||||||||||||||
| signInPage: gitlab | ||||||||||||||||
| auth: | ||||||||||||||||
| environment: production | ||||||||||||||||
| session: | ||||||||||||||||
| secret: _<name_of_secret>_ | ||||||||||||||||
| providers: | ||||||||||||||||
| gitlab: | ||||||||||||||||
| production: | ||||||||||||||||
| audience: https://${GITLAB_HOST} | ||||||||||||||||
| clientId: $\{GITLAB_CLIENT_ID} | ||||||||||||||||
| clientSecret: $\{GITLAB_CLIENT_SECRET} | ||||||||||||||||
| callbackUrl: {my-product-url}/api/auth/gitlab/handler/frame | ||||||||||||||||
| ---- | ||||||||||||||||
| + | ||||||||||||||||
|
|
||||||||||||||||
| `audience`:: | ||||||||||||||||
| Enter your GitLab instance address: `pass:c,a,q[https://${GITLAB_HOST}]` | ||||||||||||||||
|
|
||||||||||||||||
| `clientId`:: | ||||||||||||||||
| Enter the configured client ID: `${GITLAB_CLIENT_ID}`. | ||||||||||||||||
|
|
||||||||||||||||
| `clientSecret`:: | ||||||||||||||||
| Enter the configured secret variable name: `${GITLAB_CLIENT_SECRET}`. | ||||||||||||||||
|
|
||||||||||||||||
| `callbackUrl`:: | ||||||||||||||||
| Enter your {product-short} authentication backend URL: `pass:c,a,q[{my-product-url}/api/auth/gitlab/handler/frame]` | ||||||||||||||||
|
|
||||||||||||||||
| . To disable the guest login option, in the `{my-app-config-file}` file, set the authentication environment to `production`: | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this optional? |
||||||||||||||||
| + | ||||||||||||||||
| [source,yaml] | ||||||||||||||||
| ---- | ||||||||||||||||
| auth: | ||||||||||||||||
| environment: production | ||||||||||||||||
| ---- | ||||||||||||||||
|
|
||||||||||||||||
| .Verification | ||||||||||||||||
| . To verify GitLab authentication: | ||||||||||||||||
| .. Go to the {product-short} login page. | ||||||||||||||||
| .. Your {product-short} sign-in page displays *Sign in using GitLab* and the Guest user sign-in is disabled. | ||||||||||||||||
| .. Log in with a GitLab account. | ||||||||||||||||
|
Comment on lines
+55
to
+58
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.