Skip to content

Commit

Permalink
Merge pull request #507 from teharrison/master
Browse files Browse the repository at this point in the history
auth fix
  • Loading branch information
teharrison authored May 10, 2017
2 parents 0b03d89 + 733acae commit 9850b00
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.9.43

- lots of bug fixes
- lots of locking
- globus auth fix

# v0.9.33

Expand Down
12 changes: 12 additions & 0 deletions lib/auth/globus/globus.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ func fetchProfile(t string) (u *user.User, err error) {
}

func clientId(t string) string {
// test for old format first
var cid string
for _, part := range strings.Split(t, "|") {
if kv := strings.Split(part, "="); kv[0] == "client_id" {
cid = kv[1]
break
}
}
if cid != "" {
return cid
}
// now use new format
client := &http.Client{
Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}},
}
Expand Down
2 changes: 1 addition & 1 deletion lib/conf/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/MG-RAST/golib/goconfig/config"
)

const VERSION string = "0.9.42"
const VERSION string = "0.9.43"

var GIT_COMMIT_HASH string // use -ldflags "-X github.com/MG-RAST/AWE/lib/conf.GIT_COMMIT_HASH <value>"
const BasePriority int = 1
Expand Down

0 comments on commit 9850b00

Please sign in to comment.