August 2019
Beginner
608 pages
16h 7m
English
To finish the setup for the GitHub integration, we have to set up our GitLab instance so that we can connect as a registered OAuth application to GitHub. We do this by adding an omniauth_provider to the GitLab configuration. Remember the client ID and the client secret? We will need these here.
For GitLab omnibus installations, we need to create a section in /etc/gitlab/gitlab.rb like the following one. app_id is the client ID, while app_secret is the client secret. The name that is provided isn't important. After the file has been saved, you have to use gitlab-ctl reconfigure:
gitlab_rails['omniauth_providers'] = [ { "name" => "github", "app_id" => "dd1c6d6aed110b2cce8e", "app_secret" => "f6ddd6059c694ecfc1a96f962fa20b6c3f7c8c4a", ...Read now
Unlock full access