Guide for adding GitHub OAuth to ale
Adding GitHub OAuth enables GitHub login and allows dashboard users to deploy services by selecting repositories from their GitHub accounts.
Navigate to Settings > Developer Settings > GitHub Apps and click New GitHub App.
Fill in the following details to set up your GitHub App:
https://app.[domain]
(URL deployed with Ingress)Add Callback URL
):
https://app.[domain]/api/oauth/github/callback
https://app.[domain]/api/oauth/github/connect/callback
ale
.https://app.[domain]/api/
is the API endpoint address for ale
.Uncheck the Active option in the Webhook section to disable it.
In the Permissions section, grant the following permissions and click Create GitHub App
.
Repository permissions (9)
Organization permissions (2)
Account permissions (1)
To add GitHub OAuth to ale
, you’ll need 4 ID/Key values.
After the App is created with permissions, you can view the App ID and Client ID.
On the same page, click Generate a new client secret
to create and view the Client Secret.
Click Generate a private key
at the bottom of the page to download the pem file.
By default, newly created GitHub Apps are private and can only be used by members of the organization where the App was created. To make the GitHub App available regardless of GitHub organization, follow the steps below.
Make GitHub App Public
Click Make public
in the Danger Zone section under the Advanced settings.
Access the operations system, click the Settings > Authentication > GitHub, enter the values in previous steps into each field, and click Apply
.
After signing up with a GitHub account, you’ll see a message ‘Admin approval is required.’
After administrator approval, attempting GitHub login will display the Complete Registration page.
Enter appropriate space and name information, then click Complete
.