Skip to content
Snippets Groups Projects

Add docs on how to turn off SSL verification on GH oauth

All threads resolved!
+ 25
8
@@ -103,33 +103,46 @@ GitHub will generate an application ID and secret key for you to use.
@@ -103,33 +103,46 @@ GitHub will generate an application ID and secret key for you to use.
1. Save the configuration file.
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.
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.
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.
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.
If everything goes well the user will be returned to GitLab and will be signed in.
[reconfigure]: ../administration/restart_gitlab.md#omnibus-gitlab-reconfigure
[restart GitLab]: ../administration/restart_gitlab.md#installations-from-source
### GitHub Enterprise with Self-Signed Certificate
### GitHub Enterprise with Self-Signed Certificate
If you are attempting to import projects from GitHub Enterprise with a self-signed
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.
certificate and the imports are failing, you will need to disable SSL verification.
It should be disabled by adding `verify_ssl: false` to the provider configuration like so:
It should be disabled by adding `verify_ssl` to `false` to the provider configuration.
For GitHub Enterprise:
For omnibus package:
```ruby
```ruby
 
gitlab_rails['omniauth_providers'] = [
 
{
 
"name" => "github",
 
"app_id" => "YOUR_APP_ID",
 
"app_secret" => "YOUR_APP_SECRET",
 
"url" => "https://github.com/",
 
"verify" => false,
 
"args" => { "scope" => "user:email" }
 
}
 
]
 
```
 
 
For installation from source:
 
 
```
- { name: 'github', app_id: 'YOUR_APP_ID',
- { name: 'github', app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET',
app_secret: 'YOUR_APP_SECRET',
url: "https://github.example.com/",
url: "https://github.example.com/",
verify_ssl: false,
verify: false,
args: { scope: 'user:email' } }
args: { scope: 'user:email' } }
```
```
For the changes to take effect, [reconfigure GitLab] GitLab if you installed
 
For the changes to take effect, [reconfigure Gitlab] if you installed
via Omnibus, or [restart GitLab] if you installed from source.
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:
You will also need to disable Git SSL verification on the server hosting GitLab with the following command:
@@ -137,3 +150,7 @@ You will also need to disable Git SSL verification on the server hosting GitLab
@@ -137,3 +150,7 @@ You will also need to disable Git SSL verification on the server hosting GitLab
```
```
$ git config --global http.sslVerify false
$ git config --global http.sslVerify false
```
```
 
[reconfigure GitLab]: ../administration/restart_gitlab.md#omnibus-gitlab-reconfigure
 
[restart GitLab]: ../administration/restart_gitlab.md#installations-from-source
 
 
Loading