From 1f68faa043fd0a27c4847065f266bd292052ed3a Mon Sep 17 00:00:00 2001 From: LarryTang Date: Tue, 10 Sep 2019 14:23:26 +0800 Subject: [PATCH] edit path --- .travis.yml | 6 +++--- README.md | 10 +++++----- amazon/amazon.go | 2 +- bitbucket/bitbucket.go | 2 +- cern/cern.go | 4 ++-- clientcredentials/clientcredentials.go | 6 +++--- clientcredentials/clientcredentials_test.go | 2 +- example_test.go | 2 +- facebook/facebook.go | 4 ++-- fitbit/fitbit.go | 4 ++-- foursquare/foursquare.go | 4 ++-- github/github.go | 4 ++-- gitlab/gitlab.go | 4 ++-- go.mod | 2 +- google/appengine.go | 2 +- google/appengine_gen1.go | 2 +- google/appengine_gen2_flex.go | 2 +- google/default.go | 2 +- google/doc.go | 4 ++-- google/example_test.go | 6 +++--- google/google.go | 4 ++-- google/jwt.go | 6 +++--- google/jwt_test.go | 2 +- google/sdk.go | 2 +- heroku/heroku.go | 4 ++-- hipchat/hipchat.go | 6 +++--- instagram/instagram.go | 4 ++-- internal/token.go | 2 +- jira/jira.go | 2 +- jira/jira_test.go | 4 ++-- jws/jws.go | 4 ++-- jwt/example_test.go | 2 +- jwt/jwt.go | 6 +++--- jwt/jwt_test.go | 4 ++-- kakao/kakao.go | 4 ++-- linkedin/linkedin.go | 4 ++-- mailchimp/mailchimp.go | 4 ++-- mailru/mailru.go | 4 ++-- mediamath/mediamath.go | 4 ++-- microsoft/microsoft.go | 4 ++-- nokiahealth/nokiahealth.go | 2 +- oauth2.go | 6 +++--- oauth2_test.go | 2 +- odnoklassniki/odnoklassniki.go | 4 ++-- paypal/paypal.go | 4 ++-- slack/slack.go | 4 ++-- spotify/spotify.go | 4 ++-- stackoverflow/stackoverflow.go | 4 ++-- token.go | 2 +- twitch/twitch.go | 4 ++-- uber/uber.go | 4 ++-- vk/vk.go | 4 ++-- yahoo/yahoo.go | 4 ++-- yandex/yandex.go | 4 ++-- 54 files changed, 101 insertions(+), 101 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa139db22..eccd1f7b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ go: install: - export GOPATH="$HOME/gopath" - mkdir -p "$GOPATH/src/golang.org/x" - - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" - - go get -v -t -d golang.org/x/oauth2/... + - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/github.com/fever365/oauth2" + - go get -v -t -d github.com/fever365/oauth2/... script: - - go test -v golang.org/x/oauth2/... + - go test -v github.com/fever365/oauth2/... diff --git a/README.md b/README.md index 0f443e693..a833ce8b4 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ # OAuth2 for Go [![Build Status](https://travis-ci.org/golang/oauth2.svg?branch=master)](https://travis-ci.org/golang/oauth2) -[![GoDoc](https://godoc.org/golang.org/x/oauth2?status.svg)](https://godoc.org/golang.org/x/oauth2) +[![GoDoc](https://godoc.org/github.com/fever365/oauth2?status.svg)](https://godoc.org/github.com/fever365/oauth2) oauth2 package contains a client implementation for OAuth 2.0 spec. ## Installation ~~~~ -go get golang.org/x/oauth2 +go get github.com/fever365/oauth2 ~~~~ Or you can manually git clone the repository to -`$(go env GOPATH)/src/golang.org/x/oauth2`. +`$(go env GOPATH)/src/github.com/fever365/oauth2`. See godoc for further documentation and examples. -* [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) +* [godoc.org/github.com/fever365/oauth2](http://godoc.org/github.com/fever365/oauth2) +* [godoc.org/github.com/fever365/oauth2/google](http://godoc.org/github.com/fever365/oauth2/google) ## Policy for new packages diff --git a/amazon/amazon.go b/amazon/amazon.go index d21da11af..714d35e21 100644 --- a/amazon/amazon.go +++ b/amazon/amazon.go @@ -6,7 +6,7 @@ package amazon import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Amazon's OAuth 2.0 endpoint. diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index 44af1f1a9..8669cd631 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -6,7 +6,7 @@ package bitbucket import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Bitbucket's OAuth 2.0 endpoint. diff --git a/cern/cern.go b/cern/cern.go index 8be718078..3f175ffa7 100644 --- a/cern/cern.go +++ b/cern/cern.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package cern provides constants for using OAuth2 to access CERN services. -package cern // import "golang.org/x/oauth2/cern" +package cern // import "github.com/fever365/oauth2/cern" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is CERN's OAuth 2.0 endpoint. diff --git a/clientcredentials/clientcredentials.go b/clientcredentials/clientcredentials.go index 7a0b9ed10..ec5b9be94 100644 --- a/clientcredentials/clientcredentials.go +++ b/clientcredentials/clientcredentials.go @@ -11,7 +11,7 @@ // server. // // See https://tools.ietf.org/html/rfc6749#section-4.4 -package clientcredentials // import "golang.org/x/oauth2/clientcredentials" +package clientcredentials // import "github.com/fever365/oauth2/clientcredentials" import ( "context" @@ -20,8 +20,8 @@ import ( "net/url" "strings" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/internal" ) // Config describes a 2-legged OAuth2 flow, with both the diff --git a/clientcredentials/clientcredentials_test.go b/clientcredentials/clientcredentials_test.go index 02a1c89a8..cc984fd08 100644 --- a/clientcredentials/clientcredentials_test.go +++ b/clientcredentials/clientcredentials_test.go @@ -13,7 +13,7 @@ import ( "net/url" "testing" - "golang.org/x/oauth2/internal" + "github.com/fever365/oauth2/internal" ) func newConf(serverURL string) *Config { diff --git a/example_test.go b/example_test.go index fc2f793b2..a5c81fbe5 100644 --- a/example_test.go +++ b/example_test.go @@ -11,7 +11,7 @@ import ( "net/http" "time" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) func ExampleConfig() { diff --git a/facebook/facebook.go b/facebook/facebook.go index b0054e387..7f5c9bcc3 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/fever365/oauth2/facebook" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Facebook's OAuth 2.0 endpoint. diff --git a/fitbit/fitbit.go b/fitbit/fitbit.go index b31b82aca..f6ae2da77 100644 --- a/fitbit/fitbit.go +++ b/fitbit/fitbit.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package fitbit provides constants for using OAuth2 to access the Fitbit API. -package fitbit // import "golang.org/x/oauth2/fitbit" +package fitbit // import "github.com/fever365/oauth2/fitbit" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is the Fitbit API's OAuth 2.0 endpoint. diff --git a/foursquare/foursquare.go b/foursquare/foursquare.go index d2fa09902..cc6ddd534 100644 --- a/foursquare/foursquare.go +++ b/foursquare/foursquare.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package foursquare provides constants for using OAuth2 to access Foursquare. -package foursquare // import "golang.org/x/oauth2/foursquare" +package foursquare // import "github.com/fever365/oauth2/foursquare" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Foursquare's OAuth 2.0 endpoint. diff --git a/github/github.go b/github/github.go index f2978015b..8f19db9ad 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/fever365/oauth2/github" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Github's OAuth 2.0 endpoint. diff --git a/gitlab/gitlab.go b/gitlab/gitlab.go index 1231d75ac..6a87e7779 100644 --- a/gitlab/gitlab.go +++ b/gitlab/gitlab.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package gitlab provides constants for using OAuth2 to access GitLab. -package gitlab // import "golang.org/x/oauth2/gitlab" +package gitlab // import "github.com/fever365/oauth2/gitlab" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is GitLab's OAuth 2.0 endpoint. diff --git a/go.mod b/go.mod index b34578155..af3fc0573 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module golang.org/x/oauth2 +module github.com/fever365/oauth2 go 1.11 diff --git a/google/appengine.go b/google/appengine.go index feb1157b1..43d7bc81c 100644 --- a/google/appengine.go +++ b/google/appengine.go @@ -8,7 +8,7 @@ import ( "context" "time" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Set at init time by appengine_gen1.go. If nil, we're not on App Engine standard first generation (<= Go 1.9) or App Engine flexible. diff --git a/google/appengine_gen1.go b/google/appengine_gen1.go index 83dacac32..b04dea633 100644 --- a/google/appengine_gen1.go +++ b/google/appengine_gen1.go @@ -14,7 +14,7 @@ import ( "strings" "sync" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" "google.golang.org/appengine" ) diff --git a/google/appengine_gen2_flex.go b/google/appengine_gen2_flex.go index 04c2c2216..0ba2b7139 100644 --- a/google/appengine_gen2_flex.go +++ b/google/appengine_gen2_flex.go @@ -13,7 +13,7 @@ import ( "log" "sync" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) var logOnce sync.Once // only spam about deprecation once diff --git a/google/default.go b/google/default.go index ad2c09236..eeb3bca06 100644 --- a/google/default.go +++ b/google/default.go @@ -15,7 +15,7 @@ import ( "runtime" "cloud.google.com/go/compute/metadata" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Credentials holds Google credentials, including "Application Default Credentials". diff --git a/google/doc.go b/google/doc.go index 73be62903..e4a444309 100644 --- a/google/doc.go +++ b/google/doc.go @@ -14,7 +14,7 @@ // // OAuth2 Configs // -// Two functions in this package return golang.org/x/oauth2.Config values from Google credential +// Two functions in this package return github.com/fever365/oauth2.Config values from Google credential // data. Google supports two JSON formats for OAuth2 credentials: one is handled by ConfigFromJSON, // the other by JWTConfigFromJSON. The returned Config can be used to obtain a TokenSource or // create an http.Client. @@ -37,4 +37,4 @@ // same as the one obtained from the oauth2.Config returned from ConfigFromJSON or // JWTConfigFromJSON, but the Credentials may contain additional information // that is useful is some circumstances. -package google // import "golang.org/x/oauth2/google" +package google // import "github.com/fever365/oauth2/google" diff --git a/google/example_test.go b/google/example_test.go index 3fc9cad3f..81b0544c8 100644 --- a/google/example_test.go +++ b/google/example_test.go @@ -11,9 +11,9 @@ import ( "log" "net/http" - "golang.org/x/oauth2" - "golang.org/x/oauth2/google" - "golang.org/x/oauth2/jwt" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/google" + "github.com/fever365/oauth2/jwt" ) func ExampleDefaultClient() { diff --git a/google/google.go b/google/google.go index 81de32b36..7228885f1 100644 --- a/google/google.go +++ b/google/google.go @@ -14,8 +14,8 @@ import ( "time" "cloud.google.com/go/compute/metadata" - "golang.org/x/oauth2" - "golang.org/x/oauth2/jwt" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/jwt" ) // Endpoint is Google's OAuth 2.0 endpoint. diff --git a/google/jwt.go b/google/jwt.go index b0fdb3a88..69d4ff3f9 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/fever365/oauth2" + "github.com/fever365/oauth2/internal" + "github.com/fever365/oauth2/jws" ) // JWTAccessTokenSourceFromJSON uses a Google Developers service account JSON diff --git a/google/jwt_test.go b/google/jwt_test.go index f844436fc..b3065f647 100644 --- a/google/jwt_test.go +++ b/google/jwt_test.go @@ -16,7 +16,7 @@ import ( "testing" "time" - "golang.org/x/oauth2/jws" + "github.com/fever365/oauth2/jws" ) func TestJWTAccessTokenSourceFromJSON(t *testing.T) { diff --git a/google/sdk.go b/google/sdk.go index 456224bc7..183deb1a8 100644 --- a/google/sdk.go +++ b/google/sdk.go @@ -19,7 +19,7 @@ import ( "strings" "time" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) type sdkCredentials struct { diff --git a/heroku/heroku.go b/heroku/heroku.go index 5b4fdb890..a90d74f96 100644 --- a/heroku/heroku.go +++ b/heroku/heroku.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package heroku provides constants for using OAuth2 to access Heroku. -package heroku // import "golang.org/x/oauth2/heroku" +package heroku // import "github.com/fever365/oauth2/heroku" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Heroku's OAuth 2.0 endpoint. diff --git a/hipchat/hipchat.go b/hipchat/hipchat.go index 594fe072c..1074fcb07 100644 --- a/hipchat/hipchat.go +++ b/hipchat/hipchat.go @@ -3,14 +3,14 @@ // license that can be found in the LICENSE file. // Package hipchat provides constants for using OAuth2 to access HipChat. -package hipchat // import "golang.org/x/oauth2/hipchat" +package hipchat // import "github.com/fever365/oauth2/hipchat" import ( "encoding/json" "errors" - "golang.org/x/oauth2" - "golang.org/x/oauth2/clientcredentials" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/clientcredentials" ) // Endpoint is HipChat's OAuth 2.0 endpoint. diff --git a/instagram/instagram.go b/instagram/instagram.go index 75a74ebb9..6cdd79b67 100644 --- a/instagram/instagram.go +++ b/instagram/instagram.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package instagram provides constants for using OAuth2 to access Instagram. -package instagram // import "golang.org/x/oauth2/instagram" +package instagram // import "github.com/fever365/oauth2/instagram" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Instagram's OAuth 2.0 endpoint. diff --git a/internal/token.go b/internal/token.go index 355c38696..81e1db491 100644 --- a/internal/token.go +++ b/internal/token.go @@ -102,7 +102,7 @@ func (e *expirationTime) UnmarshalJSON(b []byte) error { // Endpoint.AuthStyle. func RegisterBrokenAuthHeaderProvider(tokenURL string) {} -// AuthStyle is a copy of the golang.org/x/oauth2 package's AuthStyle type. +// AuthStyle is a copy of the github.com/fever365/oauth2 package's AuthStyle type. type AuthStyle int const ( diff --git a/jira/jira.go b/jira/jira.go index 34415607c..69001e439 100644 --- a/jira/jira.go +++ b/jira/jira.go @@ -19,7 +19,7 @@ import ( "strings" "time" - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // ClaimSet contains information about the JWT signature according diff --git a/jira/jira_test.go b/jira/jira_test.go index c49940dfc..a1188408c 100644 --- a/jira/jira_test.go +++ b/jira/jira_test.go @@ -13,8 +13,8 @@ import ( "strings" "testing" - "golang.org/x/oauth2" - "golang.org/x/oauth2/jws" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/jws" ) func TestJWTFetch_JSONResponse(t *testing.T) { diff --git a/jws/jws.go b/jws/jws.go index 683d2d271..80ae32b76 100644 --- a/jws/jws.go +++ b/jws/jws.go @@ -4,7 +4,7 @@ // Package jws provides a partial implementation // of JSON Web Signature encoding and decoding. -// It exists to support the golang.org/x/oauth2 package. +// It exists to support the github.com/fever365/oauth2 package. // // See RFC 7515. // @@ -12,7 +12,7 @@ // removed in the future. It exists for internal use only. // Please switch to another JWS package or copy this package into your own // source tree. -package jws // import "golang.org/x/oauth2/jws" +package jws // import "github.com/fever365/oauth2/jws" import ( "bytes" diff --git a/jwt/example_test.go b/jwt/example_test.go index 58503d80d..826602bf2 100644 --- a/jwt/example_test.go +++ b/jwt/example_test.go @@ -7,7 +7,7 @@ package jwt_test import ( "context" - "golang.org/x/oauth2/jwt" + "github.com/fever365/oauth2/jwt" ) func ExampleJWTConfig() { diff --git a/jwt/jwt.go b/jwt/jwt.go index b2bf18298..58ec6394a 100644 --- a/jwt/jwt.go +++ b/jwt/jwt.go @@ -19,9 +19,9 @@ import ( "strings" "time" - "golang.org/x/oauth2" - "golang.org/x/oauth2/internal" - "golang.org/x/oauth2/jws" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/internal" + "github.com/fever365/oauth2/jws" ) var ( diff --git a/jwt/jwt_test.go b/jwt/jwt_test.go index 9772dc520..27fbf10f8 100644 --- a/jwt/jwt_test.go +++ b/jwt/jwt_test.go @@ -15,8 +15,8 @@ import ( "strings" "testing" - "golang.org/x/oauth2" - "golang.org/x/oauth2/jws" + "github.com/fever365/oauth2" + "github.com/fever365/oauth2/jws" ) var dummyPrivateKey = []byte(`-----BEGIN RSA PRIVATE KEY----- diff --git a/kakao/kakao.go b/kakao/kakao.go index 6d211260c..9a715c389 100644 --- a/kakao/kakao.go +++ b/kakao/kakao.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package kakao provides constants for using OAuth2 to access Kakao. -package kakao // import "golang.org/x/oauth2/kakao" +package kakao // import "github.com/fever365/oauth2/kakao" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Kakao's OAuth 2.0 endpoint. diff --git a/linkedin/linkedin.go b/linkedin/linkedin.go index d3972771c..22abb2653 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/fever365/oauth2/linkedin" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is LinkedIn's OAuth 2.0 endpoint. diff --git a/mailchimp/mailchimp.go b/mailchimp/mailchimp.go index 647787ec6..7efe951fe 100644 --- a/mailchimp/mailchimp.go +++ b/mailchimp/mailchimp.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package mailchimp provides constants for using OAuth2 to access MailChimp. -package mailchimp // import "golang.org/x/oauth2/mailchimp" +package mailchimp // import "github.com/fever365/oauth2/mailchimp" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is MailChimp's OAuth 2.0 endpoint. diff --git a/mailru/mailru.go b/mailru/mailru.go index dddd9dd0f..576114ef1 100644 --- a/mailru/mailru.go +++ b/mailru/mailru.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package mailru provides constants for using OAuth2 to access Mail.Ru. -package mailru // import "golang.org/x/oauth2/mailru" +package mailru // import "github.com/fever365/oauth2/mailru" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Mail.Ru's OAuth 2.0 endpoint. diff --git a/mediamath/mediamath.go b/mediamath/mediamath.go index 3ebce5da1..a700eee99 100644 --- a/mediamath/mediamath.go +++ b/mediamath/mediamath.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package mediamath provides constants for using OAuth2 to access MediaMath. -package mediamath // import "golang.org/x/oauth2/mediamath" +package mediamath // import "github.com/fever365/oauth2/mediamath" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is MediaMath's OAuth 2.0 endpoint for production. diff --git a/microsoft/microsoft.go b/microsoft/microsoft.go index 3ffbc57a6..54da00d3a 100644 --- a/microsoft/microsoft.go +++ b/microsoft/microsoft.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package microsoft provides constants for using OAuth2 to access Windows Live ID. -package microsoft // import "golang.org/x/oauth2/microsoft" +package microsoft // import "github.com/fever365/oauth2/microsoft" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // LiveConnectEndpoint is Windows's Live ID OAuth 2.0 endpoint. diff --git a/nokiahealth/nokiahealth.go b/nokiahealth/nokiahealth.go index c181ccd0f..f828d5e4c 100644 --- a/nokiahealth/nokiahealth.go +++ b/nokiahealth/nokiahealth.go @@ -6,7 +6,7 @@ package nokiahealth import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Nokia Health Mate's OAuth 2.0 endpoint. diff --git a/oauth2.go b/oauth2.go index 291df5c83..12fc9338c 100644 --- a/oauth2.go +++ b/oauth2.go @@ -6,7 +6,7 @@ // OAuth2 authorized and authenticated HTTP requests, // as specified in RFC 6749. // It can additionally grant authorization with Bearer JWT. -package oauth2 // import "golang.org/x/oauth2" +package oauth2 // import "github.com/fever365/oauth2" import ( "bytes" @@ -17,7 +17,7 @@ import ( "strings" "sync" - "golang.org/x/oauth2/internal" + "github.com/fever365/oauth2/internal" ) // NoContext is the default context you should supply if not using @@ -37,7 +37,7 @@ func RegisterBrokenAuthHeaderProvider(tokenURL string) {} // Config describes a typical 3-legged OAuth2 flow, with both the // client application information and the server's endpoint URLs. // For the client credentials 2-legged OAuth2 flow, see the clientcredentials -// package (https://golang.org/x/oauth2/clientcredentials). +// package (https://github.com/fever365/oauth2/clientcredentials). type Config struct { // ClientID is the application's ID. ClientID string diff --git a/oauth2_test.go b/oauth2_test.go index b7975e166..04dd511a8 100644 --- a/oauth2_test.go +++ b/oauth2_test.go @@ -16,7 +16,7 @@ import ( "testing" "time" - "golang.org/x/oauth2/internal" + "github.com/fever365/oauth2/internal" ) type mockTransport struct { diff --git a/odnoklassniki/odnoklassniki.go b/odnoklassniki/odnoklassniki.go index c0d093ccc..d7fa6b62b 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/fever365/oauth2/odnoklassniki" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Odnoklassniki's OAuth 2.0 endpoint. diff --git a/paypal/paypal.go b/paypal/paypal.go index 2e713c53c..dc9a05449 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/fever365/oauth2/paypal" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is PayPal's OAuth 2.0 endpoint in live (production) environment. diff --git a/slack/slack.go b/slack/slack.go index 593d2f607..cbfb5ee3c 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package slack provides constants for using OAuth2 to access Slack. -package slack // import "golang.org/x/oauth2/slack" +package slack // import "github.com/fever365/oauth2/slack" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Slack's OAuth 2.0 endpoint. diff --git a/spotify/spotify.go b/spotify/spotify.go index c75416c00..1defd66e3 100644 --- a/spotify/spotify.go +++ b/spotify/spotify.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package spotify provides constants for using OAuth2 to access Spotify. -package spotify // import "golang.org/x/oauth2/spotify" +package spotify // import "github.com/fever365/oauth2/spotify" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Spotify's OAuth 2.0 endpoint. diff --git a/stackoverflow/stackoverflow.go b/stackoverflow/stackoverflow.go index 82711f777..914da510a 100644 --- a/stackoverflow/stackoverflow.go +++ b/stackoverflow/stackoverflow.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package stackoverflow provides constants for using OAuth2 to access Stack Overflow. -package stackoverflow // import "golang.org/x/oauth2/stackoverflow" +package stackoverflow // import "github.com/fever365/oauth2/stackoverflow" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Stack Overflow's OAuth 2.0 endpoint. diff --git a/token.go b/token.go index 822720341..066365ec5 100644 --- a/token.go +++ b/token.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "golang.org/x/oauth2/internal" + "github.com/fever365/oauth2/internal" ) // expiryDelta determines how earlier a token should be considered diff --git a/twitch/twitch.go b/twitch/twitch.go index 0838e7c15..052717b91 100644 --- a/twitch/twitch.go +++ b/twitch/twitch.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package twitch provides constants for using OAuth2 to access Twitch. -package twitch // import "golang.org/x/oauth2/twitch" +package twitch // import "github.com/fever365/oauth2/twitch" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Twitch's OAuth 2.0 endpoint. diff --git a/uber/uber.go b/uber/uber.go index 5520a6455..99604acbd 100644 --- a/uber/uber.go +++ b/uber/uber.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package uber provides constants for using OAuth2 to access Uber. -package uber // import "golang.org/x/oauth2/uber" +package uber // import "github.com/fever365/oauth2/uber" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Uber's OAuth 2.0 endpoint. diff --git a/vk/vk.go b/vk/vk.go index bd8e15948..3d8e1510c 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/fever365/oauth2/vk" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is VK's OAuth 2.0 endpoint. diff --git a/yahoo/yahoo.go b/yahoo/yahoo.go index 9fa78a23c..89df2940b 100644 --- a/yahoo/yahoo.go +++ b/yahoo/yahoo.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package yahoo provides constants for using OAuth2 to access Yahoo. -package yahoo // import "golang.org/x/oauth2/yahoo" +package yahoo // import "github.com/fever365/oauth2/yahoo" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is Yahoo's OAuth 2.0 endpoint. diff --git a/yandex/yandex.go b/yandex/yandex.go index 5ebf666d2..a1d94b4e1 100644 --- a/yandex/yandex.go +++ b/yandex/yandex.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package yandex provides constants for using OAuth2 to access Yandex APIs. -package yandex // import "golang.org/x/oauth2/yandex" +package yandex // import "github.com/fever365/oauth2/yandex" import ( - "golang.org/x/oauth2" + "github.com/fever365/oauth2" ) // Endpoint is the Yandex OAuth 2.0 endpoint.