OAuth for Github allows users to clone projects using SSH addresses (git@) and push to repositories.
To enable automatic SSH key upload to GitHub for users:
-
On github.com, click your user icon (top right).
-
Go to Settings > Developer settings > OAuth Apps.
-
Click the Register a new application button.
-
In the Application name field, enter, for example,
Eclipse Che. -
In the Homepage URL field, enter
http://$\{CHE_HOST}:$\{CHE_PORT}. -
In the Authorization callback URL field, enter
http://$\{CHE_HOST}:$\{CHE_PORT}/api/oauth/callback.
-
On OpenShift or Kubernetes, update the deployment configuration (see OpenShift configuration).
CHE_OAUTH_GITHUB_CLIENTID=<your-github-client-id> CHE_OAUTH_GITHUB_CLIENTSECRET=<your-github-secret>
|