OAuth for GitHub allows for automatic SSH key upload to GitHub.
-
Set up the GitHub OAuth client. The Authorization callback URL is filled in the next steps.
-
For Che deployed in multi-user mode:
-
Go to the Keycloak administration console and select the Identity Providers tab.
-
Select the GitHub identity provider in the drop-down list.
-
Paste the Redirect URI to the Authorization callback URL of the GitHub OAuth application.
-
Fill the Client ID and Client Secret from the GitHub oauth app.
-
Enable Store Tokens.
-
Save the changes of the Github Identity provider and click Register application in the GitHub oauth app page.
-
-
If Che is deployed in single-user mode
-
On OpenShift or Kubernetes, update the deployment configuration (see Che configMaps and their behavior, Che installed using a Helm Chart).
CHE_OAUTH_GITHUB_CLIENTID=<your-github-client-ID> CHE_OAUTH_GITHUB_CLIENTSECRET=<your-github-secret>
-
In the Authorization callback URL field of the GitHub OAuth application, enter
<prod-url/api/oauth/callback.-
Substitute
<prod-url>with the URL and port of the Che installation. -
Substitute
<your-github-client-ID>and<your-github-secret>with your GitHub client ID and secret. -
This configuration only applies to single-user deployments of Che.
-
-