diff --git a/oauth2client/client.go b/oauth2client/client.go index e1df825..5418591 100644 --- a/oauth2client/client.go +++ b/oauth2client/client.go @@ -1,6 +1,7 @@ package oauth2client import ( + "crypto/tls" "errors" "local/oauth2" "net/http" @@ -83,6 +84,9 @@ func verify(access string, oauth2server *url.URL, w http.ResponseWriter, r *http req.Header.Add("Content-Length", strconv.Itoa(len(data.Encode()))) c := &http.Client{ Timeout: 5 * time.Second, + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }, } resp, err := c.Do(req) if err != nil {