mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
Accept SSL for Jira connector
This commit is contained in:
parent
0f19826556
commit
2792c8c1da
2 changed files with 669 additions and 663 deletions
|
@ -13,6 +13,7 @@ package jira
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
|
@ -230,7 +231,12 @@ func getCredentials(ctx *provider.Context, store *domain.Store) (login jiraLogin
|
||||||
|
|
||||||
// Perform Jira login.
|
// Perform Jira login.
|
||||||
func authenticate(login jiraLogin) (c *jira.Client, u *jira.User, err error) {
|
func authenticate(login jiraLogin) (c *jira.Client, u *jira.User, err error) {
|
||||||
tp := jira.BasicAuthTransport{Username: login.Username, Password: login.Secret}
|
tr := &http.Transport{
|
||||||
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
|
}
|
||||||
|
// client := &http.Client{Transport: tr}
|
||||||
|
|
||||||
|
tp := jira.BasicAuthTransport{Username: login.Username, Password: login.Secret, Transport: tr}
|
||||||
c, err = jira.NewClient(tp.Client(), login.URL)
|
c, err = jira.NewClient(tp.Client(), login.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
1324
embed/bindata.go
1324
embed/bindata.go
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue