diff --git a/README.md b/README.md index 0d5141733..5b69e37a5 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ with the `oauth2` package. import ( "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/google" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/google" newappengine "google.golang.org/appengine" newurlfetch "google.golang.org/appengine/urlfetch" diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index 44af1f1a9..4e883e5c4 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -6,7 +6,7 @@ package bitbucket import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is Bitbucket's OAuth 2.0 endpoint. diff --git a/client_appengine.go b/client_appengine.go index 8962c49d1..d34cdec13 100644 --- a/client_appengine.go +++ b/client_appengine.go @@ -12,7 +12,7 @@ import ( "net/http" "golang.org/x/net/context" - "golang.org/x/oauth2/internal" + "github.com/Kr1sso/oauth2/internal" "google.golang.org/appengine/urlfetch" ) diff --git a/clientcredentials/clientcredentials.go b/clientcredentials/clientcredentials.go index 38be11260..e769e21cb 100644 --- a/clientcredentials/clientcredentials.go +++ b/clientcredentials/clientcredentials.go @@ -11,7 +11,7 @@ // server. // // See http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-4.4 -package clientcredentials // import "golang.org/x/oauth2/clientcredentials" +package clientcredentials // import "github.com/Kr1sso/oauth2/clientcredentials" import ( "net/http" @@ -19,8 +19,8 @@ import ( "strings" "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/internal" ) // tokenFromInternal maps an *internal.Token struct into diff --git a/clientcredentials/clientcredentials_test.go b/clientcredentials/clientcredentials_test.go index 5a0170a95..e47663697 100644 --- a/clientcredentials/clientcredentials_test.go +++ b/clientcredentials/clientcredentials_test.go @@ -10,7 +10,7 @@ import ( "net/http/httptest" "testing" - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) func newConf(url string) *Config { diff --git a/example_test.go b/example_test.go index 33b305c62..35e2a65ed 100644 --- a/example_test.go +++ b/example_test.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) func ExampleConfig() { diff --git a/facebook/facebook.go b/facebook/facebook.go index 14c801a2a..37303eea1 100644 --- a/facebook/facebook.go +++ b/facebook/facebook.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package facebook provides constants for using OAuth2 to access Facebook. -package facebook // import "golang.org/x/oauth2/facebook" +package facebook // import "github.com/Kr1sso/oauth2/facebook" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is Facebook's OAuth 2.0 endpoint. diff --git a/github/github.go b/github/github.go index f2978015b..e3f726b4a 100644 --- a/github/github.go +++ b/github/github.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package github provides constants for using OAuth2 to access Github. -package github // import "golang.org/x/oauth2/github" +package github // import "github.com/Kr1sso/oauth2/github" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is Github's OAuth 2.0 endpoint. diff --git a/google/appengine.go b/google/appengine.go index dc993efb5..ba9500c91 100644 --- a/google/appengine.go +++ b/google/appengine.go @@ -11,7 +11,7 @@ import ( "time" "golang.org/x/net/context" - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Set at init time by appenginevm_hook.go. If true, we are on App Engine Managed VMs. diff --git a/google/default.go b/google/default.go index b95236297..358d1b5cb 100644 --- a/google/default.go +++ b/google/default.go @@ -15,8 +15,8 @@ import ( "runtime" "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/jwt" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/jwt" "google.golang.org/cloud/compute/metadata" ) diff --git a/google/example_test.go b/google/example_test.go index 9745be192..8060b6668 100644 --- a/google/example_test.go +++ b/google/example_test.go @@ -12,9 +12,9 @@ import ( "log" "net/http" - "golang.org/x/oauth2" - "golang.org/x/oauth2/google" - "golang.org/x/oauth2/jwt" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/google" + "github.com/Kr1sso/oauth2/jwt" "google.golang.org/appengine" "google.golang.org/appengine/urlfetch" ) diff --git a/google/google.go b/google/google.go index 9a3d5feb1..9651b12a8 100644 --- a/google/google.go +++ b/google/google.go @@ -12,7 +12,7 @@ // https://developers.google.com/accounts/docs/OAuth2 // and // https://developers.google.com/accounts/docs/application-default-credentials. -package google // import "golang.org/x/oauth2/google" +package google // import "github.com/Kr1sso/oauth2/google" import ( "encoding/json" @@ -21,8 +21,8 @@ import ( "strings" "time" - "golang.org/x/oauth2" - "golang.org/x/oauth2/jwt" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/jwt" "google.golang.org/cloud/compute/metadata" ) diff --git a/google/jwt.go b/google/jwt.go index b91991786..0a60753d9 100644 --- a/google/jwt.go +++ b/google/jwt.go @@ -9,9 +9,9 @@ import ( "fmt" "time" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" - "golang.org/x/oauth2/jws" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/internal" + "github.com/Kr1sso/oauth2/jws" ) // JWTAccessTokenSourceFromJSON uses a Google Developers service account JSON diff --git a/google/sdk.go b/google/sdk.go index d29a3bb9b..fb9b90f0e 100644 --- a/google/sdk.go +++ b/google/sdk.go @@ -17,8 +17,8 @@ import ( "time" "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/internal" ) type sdkCredentials struct { diff --git a/jws/jws.go b/jws/jws.go index 8ca597843..21dc56ec5 100644 --- a/jws/jws.go +++ b/jws/jws.go @@ -4,7 +4,7 @@ // Package jws provides encoding and decoding utilities for // signed JWS messages. -package jws // import "golang.org/x/oauth2/jws" +package jws // import "github.com/Kr1sso/oauth2/jws" import ( "bytes" diff --git a/jwt/example_test.go b/jwt/example_test.go index a9533e85f..f77334f5e 100644 --- a/jwt/example_test.go +++ b/jwt/example_test.go @@ -5,8 +5,8 @@ package jwt_test import ( - "golang.org/x/oauth2" - "golang.org/x/oauth2/jwt" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/jwt" ) func ExampleJWTConfig() { diff --git a/jwt/jwt.go b/jwt/jwt.go index 2ffad21a6..70ffcb1cd 100644 --- a/jwt/jwt.go +++ b/jwt/jwt.go @@ -19,9 +19,9 @@ import ( "time" "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" - "golang.org/x/oauth2/jws" + "github.com/Kr1sso/oauth2" + "github.com/Kr1sso/oauth2/internal" + "github.com/Kr1sso/oauth2/jws" ) var ( diff --git a/jwt/jwt_test.go b/jwt/jwt_test.go index a9c126b47..c8dbfd624 100644 --- a/jwt/jwt_test.go +++ b/jwt/jwt_test.go @@ -9,7 +9,7 @@ import ( "net/http/httptest" "testing" - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) var dummyPrivateKey = []byte(`-----BEGIN RSA PRIVATE KEY----- diff --git a/linkedin/linkedin.go b/linkedin/linkedin.go index b619f93d2..2a852ffcb 100644 --- a/linkedin/linkedin.go +++ b/linkedin/linkedin.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package linkedin provides constants for using OAuth2 to access LinkedIn. -package linkedin // import "golang.org/x/oauth2/linkedin" +package linkedin // import "github.com/Kr1sso/oauth2/linkedin" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is LinkedIn's OAuth 2.0 endpoint. diff --git a/oauth2.go b/oauth2.go index ba860ea7d..6baaac54e 100644 --- a/oauth2.go +++ b/oauth2.go @@ -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 // import "golang.org/x/oauth2" +package oauth2 // import "github.com/Kr1sso/oauth2" import ( "bytes" @@ -16,7 +16,7 @@ import ( "sync" "golang.org/x/net/context" - "golang.org/x/oauth2/internal" + "github.com/Kr1sso/oauth2/internal" ) // NoContext is the default context you should supply if not using diff --git a/odnoklassniki/odnoklassniki.go b/odnoklassniki/odnoklassniki.go index c0d093ccc..2f68dc52e 100644 --- a/odnoklassniki/odnoklassniki.go +++ b/odnoklassniki/odnoklassniki.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki. -package odnoklassniki // import "golang.org/x/oauth2/odnoklassniki" +package odnoklassniki // import "github.com/Kr1sso/oauth2/odnoklassniki" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is Odnoklassniki's OAuth 2.0 endpoint. diff --git a/paypal/paypal.go b/paypal/paypal.go index 2e713c53c..715abdbc7 100644 --- a/paypal/paypal.go +++ b/paypal/paypal.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package paypal provides constants for using OAuth2 to access PayPal. -package paypal // import "golang.org/x/oauth2/paypal" +package paypal // import "github.com/Kr1sso/oauth2/paypal" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is PayPal's OAuth 2.0 endpoint in live (production) environment. diff --git a/token.go b/token.go index 7a3167f15..543212f2c 100644 --- a/token.go +++ b/token.go @@ -12,7 +12,7 @@ import ( "time" "golang.org/x/net/context" - "golang.org/x/oauth2/internal" + "github.com/Kr1sso/oauth2/internal" ) // expiryDelta determines how earlier a token should be considered diff --git a/vk/vk.go b/vk/vk.go index bd8e15948..603d43b03 100644 --- a/vk/vk.go +++ b/vk/vk.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package vk provides constants for using OAuth2 to access VK.com. -package vk // import "golang.org/x/oauth2/vk" +package vk // import "github.com/Kr1sso/oauth2/vk" import ( - "golang.org/x/oauth2" + "github.com/Kr1sso/oauth2" ) // Endpoint is VK's OAuth 2.0 endpoint.