Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Enabling GitHub Oauth

Paul Wright edited this page Feb 13, 2020 · 12 revisions

Enabling GitHub Oauth Credentials

You can enable GitHub Oauth integration in CodeReady by entering your credentials on the secret present in the namespace that RHMI operator was installed and adding the Authorization callback URL into your Gib Hub account.

Prerequisite

  • Have an Oauth GitHub application created.

Entering GitHub Oauth Credentials

  1. Access the OpenShift web console with the permissions of the dedicated cluster administrator Role.

  2. Navigate to the following URL in your browser: https://<openshift_web_console_domain>/k8s/ns/integreatly/secrets/github-oauth-secret RHMI operator namespace (redhat-rhmi-operator).

    • openshift_web_console_domain - Domain of the web console of your cluster.

  3. On the action drop-down menu located in the left top corner, select the Edit Secret option.

  4. Enter your GitHub Client ID and Client Secret and click the Save button.

Adding Authorization callback URL

You will need to add a callback URL to your GitHub App settings and the URL will be used to redirect the request after a successful authorization.

  1. Replace the values cluster_name, hash and domain present in https://keycloak-edge-redhat-rhmi-rhsso.apps.<cluster_name>.<hash>.<domain>/auth/realms/openshift/broker/github/endpoint with the ones related to your cluster.

    • cluster_name - Name of your cluster.

    • hash - Hash code present in the cluster URL after the cluster name.

    • domain - Main domain of your cluster.

  2. Copy formatted callback URL and Paste on the Authorization callback URL field in your GitHub settings account.

Clone this wiki locally