From 961a91dd23f802b7e231c9659da2e713058810b6 Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Tue, 24 Feb 2015 00:27:17 +0300 Subject: [PATCH] Allow to skip verify in oauths requests --- plugin/remote/gitlab/gitlab.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/remote/gitlab/gitlab.go b/plugin/remote/gitlab/gitlab.go index 6bdbd0de8..984eed6b9 100644 --- a/plugin/remote/gitlab/gitlab.go +++ b/plugin/remote/gitlab/gitlab.go @@ -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 {