oauth2: add vanity URL import comments, use the vanity URL on builds

Change-Id: Ia20e40d98aa709e3d598388e0a15501584152ab5
This commit is contained in:
Burcu Dogan 2014-11-26 11:44:45 -08:00
parent b846388564
commit e750a2fd5a
12 changed files with 22 additions and 20 deletions

View File

@ -1,8 +1,10 @@
language: go
go: 1.3
go:
- 1.3
- tip
install:
- go get -v -tags='appengine appenginevm' ./...
- go get -v -tags='appengine appenginevm' golang.org/x/oauth2/...
script:
- go test -v -tags='appengine appenginevm' ./...
- go test -v -tags='appengine appenginevm' golang.org/x/oauth2/...

View File

@ -7,13 +7,13 @@ oauth2 package contains a client implementation for OAuth 2.0 spec.
## Installation
~~~~
go get github.com/golang/oauth2
go get golang.org/x/oauth2
~~~~
See godoc for further documentation and examples.
* [godoc.org/github.com/golang/oauth2](http://godoc.org/github.com/golang/oauth2)
* [godoc.org/github.com/golang/oauth2/google](http://godoc.org/github.com/golang/oauth2/google)
* [godoc.org/golang.org/x/oauth2](http://godoc.org/golang.org/x/oauth2)
* [godoc.org/golang.org/x/oauth2/google](http://godoc.org/golang.org/x/oauth2/google)
## Contributing

View File

@ -10,7 +10,7 @@ import (
"net/http"
"testing"
"github.com/golang/oauth2"
"golang.org/x/oauth2"
)
// TODO(jbd): Remove after Go 1.4.

View File

@ -12,7 +12,7 @@ import (
"sync"
"time"
"github.com/golang/oauth2"
"golang.org/x/oauth2"
"appengine"
"appengine/memcache"

View File

@ -14,7 +14,7 @@ import (
"testing"
"time"
"github.com/golang/oauth2"
"golang.org/x/oauth2"
"appengine"
"appengine/memcache"

View File

@ -11,7 +11,7 @@ import (
"sync"
"time"
"github.com/golang/oauth2"
"golang.org/x/oauth2"
"google.golang.org/appengine"
"google.golang.org/appengine/memcache"
)

View File

@ -14,7 +14,7 @@ import (
"testing"
"time"
"github.com/golang/oauth2"
"golang.org/x/oauth2"
"google.golang.org/appengine"
"google.golang.org/appengine/memcache"
)

View File

@ -12,8 +12,8 @@ import (
"net/http"
"testing"
"github.com/golang/oauth2"
"github.com/golang/oauth2/google"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/appengine"
)

View File

@ -11,7 +11,7 @@
//
// For more information, please read
// https://developers.google.com/accounts/docs/OAuth2.
package google
package google // import "golang.org/x/oauth2/google"
import (
"encoding/json"
@ -22,8 +22,8 @@ import (
"net/url"
"time"
"github.com/golang/oauth2"
"github.com/golang/oauth2/internal"
"golang.org/x/oauth2"
"golang.org/x/oauth2/internal"
)
var (

View File

@ -4,7 +4,7 @@
// Package jws provides encoding and decoding utilities for
// signed JWS messages.
package jws
package jws // import "golang.org/x/oauth2/jws"
import (
"bytes"

4
jwt.go
View File

@ -13,8 +13,8 @@ import (
"strings"
"time"
"github.com/golang/oauth2/internal"
"github.com/golang/oauth2/jws"
"golang.org/x/oauth2/internal"
"golang.org/x/oauth2/jws"
)
var (

View File

@ -5,7 +5,7 @@
// Package oauth2 provides support for making
// OAuth2 authorized and authenticated HTTP requests.
// It can additionally grant authorization with Bearer JWT.
package oauth2
package oauth2 // import "golang.org/x/oauth2"
import (
"crypto/rsa"