Merge pull request #896 from Bugagazavr/gitlab-no-verify
Allow to skip verify in oauths requests
This commit is contained in:
commit
56aabe8c59
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package gitlab
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -278,6 +279,10 @@ func (r *Gitlab) GetToken(user *model.User) (*model.Token, error) {
|
|||
RefreshToken: user.Secret,
|
||||
Expiry: expiry,
|
||||
},
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: r.SkipVerify},
|
||||
},
|
||||
}
|
||||
|
||||
if err := t.Refresh(); err != nil {
|
||||
|
|
Loading…
Reference in a new issue