-
Notifications
You must be signed in to change notification settings - Fork 18
Enabling GitHub Oauth
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
-
Access the OpenShift web console with the permissions of the dedicated cluster administrator Role.
-
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.
-
-
On the action drop-down menu located in the left top corner, select the Edit Secret option.
-
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.
-
Replace the values
cluster_name,hashanddomainpresent inhttps://keycloak-edge-redhat-rhmi-rhsso.apps.<cluster_name>.<hash>.<domain>/auth/realms/openshift/broker/github/endpointwith 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.
-
-
Copy formatted callback URL and Paste on the Authorization callback URL field in your GitHub settings account.