diff options
author | Robert Speicher <robert@gitlab.com> | 2017-05-18 21:41:39 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-05-18 21:41:39 +0000 |
commit | 12762caf82f3ff7ea5775ae97bcb07ba94b46673 (patch) | |
tree | 5cf6a448d197e8731bd4a3924021bd40d2ce4675 | |
parent | 0ca242fc681df15f73532c6ce8164abdc732810d (diff) | |
parent | 45e3658d05e163fed6fb7b033ca576c09765a05f (diff) | |
download | gitlab-ce-12762caf82f3ff7ea5775ae97bcb07ba94b46673.tar.gz |
Merge branch 'github-oauth-self-signed-certs-troubleshooting-docs' into 'master'
Add docs on how to turn off SSL verification on GH oauth
See merge request !11504
-rw-r--r-- | doc/integration/github.md | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/doc/integration/github.md b/doc/integration/github.md index 4b0d33334bd..de9aedbc596 100644 --- a/doc/integration/github.md +++ b/doc/integration/github.md @@ -103,12 +103,54 @@ GitHub will generate an application ID and secret key for you to use. 1. Save the configuration file. -1. [Reconfigure][] or [restart GitLab][] for the changes to take effect if you +1. [Reconfigure GitLab][] or [restart GitLab][] for the changes to take effect if you installed GitLab via Omnibus or from source respectively. On the sign in page there should now be a GitHub icon below the regular sign in form. Click the icon to begin the authentication process. GitHub will ask the user to sign in and authorize the GitLab application. If everything goes well the user will be returned to GitLab and will be signed in. -[reconfigure]: ../administration/restart_gitlab.md#omnibus-gitlab-reconfigure +### GitHub Enterprise with Self-Signed Certificate + +If you are attempting to import projects from GitHub Enterprise with a self-signed +certificate and the imports are failing, you will need to disable SSL verification. +It should be disabled by adding `verify_ssl` to `false` to the provider configuration. + +For omnibus package: + +```ruby + gitlab_rails['omniauth_providers'] = [ + { + "name" => "github", + "app_id" => "YOUR_APP_ID", + "app_secret" => "YOUR_APP_SECRET", + "url" => "https://github.com/", + "verify_ssl" => false, + "args" => { "scope" => "user:email" } + } + ] +``` + +For installation from source: + +``` + - { name: 'github', app_id: 'YOUR_APP_ID', + app_secret: 'YOUR_APP_SECRET', + url: "https://github.example.com/", + verify_ssl: false, + args: { scope: 'user:email' } } +``` + + +For the changes to take effect, [reconfigure Gitlab] if you installed +via Omnibus, or [restart GitLab] if you installed from source. + +You will also need to disable Git SSL verification on the server hosting GitLab with the following command: + +``` +$ git config --global http.sslVerify false +``` +[reconfigure GitLab]: ../administration/restart_gitlab.md#omnibus-gitlab-reconfigure [restart GitLab]: ../administration/restart_gitlab.md#installations-from-source + + |