Client ignore bad certs cause home is dumb
parent
cff3290abb
commit
cc41444b21
|
|
@ -1,6 +1,7 @@
|
||||||
package oauth2client
|
package oauth2client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"crypto/tls"
|
||||||
"errors"
|
"errors"
|
||||||
"local/oauth2"
|
"local/oauth2"
|
||||||
"net/http"
|
"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())))
|
req.Header.Add("Content-Length", strconv.Itoa(len(data.Encode())))
|
||||||
c := &http.Client{
|
c := &http.Client{
|
||||||
Timeout: 5 * time.Second,
|
Timeout: 5 * time.Second,
|
||||||
|
Transport: &http.Transport{
|
||||||
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
resp, err := c.Do(req)
|
resp, err := c.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue