You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/authentication/proc-enabling-authentication-with-github.adoc
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,10 @@ Optional: enter additional secrets. The additional secrets are not required for
63
63
`GITHUB_ORG_URL`:: Enter `$GITHUB_HOST_DOMAIN/$GITHUB_ORGANIZATION`.
64
64
`GITHUB_CLIENT_SECRET`:: Enter the saved **Client Secret**.
65
65
`GITHUB_PRIVATE_KEY_FILE`:: Enter the saved **Private key**.
66
+
`GITHUB_WEBHOOK_URL`:: Enter your {product-short} URL: `pass:c,a,q[{my-product-url}]`.
66
67
`GITHUB_WEBHOOK_SECRET`:: Enter the saved *Webhook secret*.
67
68
68
-
. To set up the GitHub 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:
69
+
. To set up the GitHub authentication provider and enable integration with the GitHub API 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:
69
70
+
70
71
--
71
72
.`app-config-rhdh.yaml` fragment with mandatory fields to enable authentication with GitHub
@@ -78,13 +79,24 @@ auth:
78
79
production:
79
80
clientId: ${AUTH_GITHUB_CLIENT_ID}
80
81
clientSecret: ${AUTH_GITHUB_CLIENT_SECRET}
82
+
integrations:
83
+
github:
84
+
- host: ${GITHUB_HOST_DOMAIN}
85
+
apps:
86
+
- appId: ${AUTH_GITHUB_APP_ID}
87
+
clientId: ${AUTH_GITHUB_CLIENT_ID}
88
+
clientSecret: ${GITHUB_CLIENT_SECRET}
89
+
webhookUrl: ${GITHUB_WEBHOOK_URL}
90
+
webhookSecret: ${GITHUB_WEBHOOK_SECRET}
91
+
privateKey: |
92
+
${GITHUB_PRIVATE_KEY_FILE}
81
93
signInPage: github
82
94
----
83
95
84
96
`environment: production`::
85
97
Mark the environment as `production` to hide the Guest login in the {product-short} home page.
0 commit comments