Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2116 from dgageot/1628-oauth2
Browse files Browse the repository at this point in the history
Move `goauth2/oauth` dependency to `golang.org/x/oauth2`
  • Loading branch information
dmp42 committed Nov 4, 2015
2 parents 0836929 + f3c5f05 commit 34ee11e
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 1,954 deletions.
5 changes: 0 additions & 5 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions drivers/digitalocean/digitalocean.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"io/ioutil"
"time"

"code.google.com/p/goauth2/oauth"
"github.com/digitalocean/godo"
"github.com/docker/machine/libmachine/drivers"
"github.com/docker/machine/libmachine/log"
"github.com/docker/machine/libmachine/mcnflag"
"github.com/docker/machine/libmachine/ssh"
"github.com/docker/machine/libmachine/state"
"golang.org/x/oauth2"
)

type Driver struct {
Expand Down Expand Up @@ -293,11 +293,11 @@ func (d *Driver) Kill() error {
}

func (d *Driver) getClient() *godo.Client {
t := &oauth.Transport{
Token: &oauth.Token{AccessToken: d.AccessToken},
}
token := &oauth2.Token{AccessToken: d.AccessToken}
tokenSource := oauth2.StaticTokenSource(token)
client := oauth2.NewClient(oauth2.NoContext, tokenSource)

return godo.NewClient(t.Client())
return godo.NewClient(client)
}

func (d *Driver) publicSSHKeyPath() string {
Expand Down
100 changes: 0 additions & 100 deletions vendor/code.google.com/p/goauth2/oauth/example/oauthreq.go

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/code.google.com/p/goauth2/oauth/jwt/example/example.pem

This file was deleted.

114 changes: 0 additions & 114 deletions vendor/code.google.com/p/goauth2/oauth/jwt/example/main.go

This file was deleted.

Loading

0 comments on commit 34ee11e

Please sign in to comment.