Move imports from bitly to pusher
This commit is contained in:
		
							parent
							
								
									bfdccf681a
								
							
						
					
					
						commit
						847cf25228
					
				|  | @ -2,6 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| ## Changes since v2.2: | ## Changes since v2.2: | ||||||
| 
 | 
 | ||||||
|  | - Move Go import path from `github.com/bitly/oauth2_proxy` to `github.com/pusher/oauth2_proxy` | ||||||
| - Repository forked on 27/11/18 | - Repository forked on 27/11/18 | ||||||
|   - README updated to include note that this repository is forked |   - README updated to include note that this repository is forked | ||||||
|   - CHANGLOG created to track changes to repository from original fork |   - CHANGLOG created to track changes to repository from original fork | ||||||
|  |  | ||||||
|  | @ -2,118 +2,149 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:b24249f5a5e6fbe1eddc94b25973172339ccabeadef4779274f3ed0167c18812" | ||||||
|   name = "cloud.google.com/go" |   name = "cloud.google.com/go" | ||||||
|   packages = ["compute/metadata"] |   packages = ["compute/metadata"] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "2d3a6656c17a60b0815b7e06ab0be04eacb6e613" |   revision = "2d3a6656c17a60b0815b7e06ab0be04eacb6e613" | ||||||
|   version = "v0.16.0" |   version = "v0.16.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:289dd4d7abfb3ad2b5f728fbe9b1d5c1bf7d265a3eb9ef92869af1f7baba4c7a" | ||||||
|   name = "github.com/BurntSushi/toml" |   name = "github.com/BurntSushi/toml" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "b26d9c308763d68093482582cea63d69be07a0f0" |   revision = "b26d9c308763d68093482582cea63d69be07a0f0" | ||||||
|   version = "v0.3.0" |   version = "v0.3.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:512883404c2a99156e410e9880e3bb35ecccc0c07c1159eb204b5f3ef3c431b3" | ||||||
|   name = "github.com/bitly/go-simplejson" |   name = "github.com/bitly/go-simplejson" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "aabad6e819789e569bd6aabf444c935aa9ba1e44" |   revision = "aabad6e819789e569bd6aabf444c935aa9ba1e44" | ||||||
|   version = "v0.5.0" |   version = "v0.5.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "v2" |   branch = "v2" | ||||||
|  |   digest = "1:e5a238f8fa890e529d7e493849bbae8988c9e70344e4630cc4f9a11b00516afb" | ||||||
|   name = "github.com/coreos/go-oidc" |   name = "github.com/coreos/go-oidc" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "77e7f2010a464ade7338597afe650dfcffbe2ca8" |   revision = "77e7f2010a464ade7338597afe650dfcffbe2ca8" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:56c130d885a4aacae1dd9c7b71cfe39912c7ebc1ff7d2b46083c8812996dc43b" | ||||||
|   name = "github.com/davecgh/go-spew" |   name = "github.com/davecgh/go-spew" | ||||||
|   packages = ["spew"] |   packages = ["spew"] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "346938d642f2ec3594ed81d874461961cd0faa76" |   revision = "346938d642f2ec3594ed81d874461961cd0faa76" | ||||||
|   version = "v1.1.0" |   version = "v1.1.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:3b760d3b93f994df8eb1d9ebfad17d3e9e37edcb7f7efaa15b427c0d7a64f4e4" | ||||||
|   name = "github.com/golang/protobuf" |   name = "github.com/golang/protobuf" | ||||||
|   packages = ["proto"] |   packages = ["proto"] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "1e59b77b52bf8e4b449a57e6f79f21226d571845" |   revision = "1e59b77b52bf8e4b449a57e6f79f21226d571845" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:af67386ca553c04c6222f7b5b2f17bc97a5dfb3b81b706882c7fd8c72c30cf8f" | ||||||
|   name = "github.com/mbland/hmacauth" |   name = "github.com/mbland/hmacauth" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "107c17adcc5eccc9935cd67d9bc2feaf5255d2cb" |   revision = "107c17adcc5eccc9935cd67d9bc2feaf5255d2cb" | ||||||
|   version = "1.0.2" |   version = "1.0.2" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:9408fb9c637c103010e5147469c232ce6b68edc840879cc730a2a15918e6cae8" | ||||||
|   name = "github.com/mreiferson/go-options" |   name = "github.com/mreiferson/go-options" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "77551d20752b54535462404ad9d877ebdb26e53d" |   revision = "77551d20752b54535462404ad9d877ebdb26e53d" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:256484dbbcd271f9ecebc6795b2df8cad4c458dd0f5fd82a8c2fa0c29f233411" | ||||||
|   name = "github.com/pmezard/go-difflib" |   name = "github.com/pmezard/go-difflib" | ||||||
|   packages = ["difflib"] |   packages = ["difflib"] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "792786c7400a136282c1664665ae0a8db921c6c2" |   revision = "792786c7400a136282c1664665ae0a8db921c6c2" | ||||||
|   version = "v1.0.0" |   version = "v1.0.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:386e12afcfd8964907c92dffd106860c0dedd71dbefae14397b77b724a13343b" | ||||||
|   name = "github.com/pquerna/cachecontrol" |   name = "github.com/pquerna/cachecontrol" | ||||||
|   packages = [ |   packages = [ | ||||||
|     ".", |     ".", | ||||||
|     "cacheobject" |     "cacheobject", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "0dec1b30a0215bb68605dfc568e8855066c9202d" |   revision = "0dec1b30a0215bb68605dfc568e8855066c9202d" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:3926a4ec9a4ff1a072458451aa2d9b98acd059a45b38f7335d31e06c3d6a0159" | ||||||
|   name = "github.com/stretchr/testify" |   name = "github.com/stretchr/testify" | ||||||
|   packages = ["assert"] |   packages = ["assert"] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0" |   revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0" | ||||||
|   version = "v1.1.4" |   version = "v1.1.4" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:f6a006d27619a4d93bf9b66fe1999b8c8d1fa62bdc63af14f10fbe6fcaa2aa1a" | ||||||
|   name = "golang.org/x/crypto" |   name = "golang.org/x/crypto" | ||||||
|   packages = [ |   packages = [ | ||||||
|     "bcrypt", |     "bcrypt", | ||||||
|     "blowfish", |     "blowfish", | ||||||
|     "ed25519", |     "ed25519", | ||||||
|     "ed25519/internal/edwards25519" |     "ed25519/internal/edwards25519", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "9f005a07e0d31d45e6656d241bb5c0f2efd4bc94" |   revision = "9f005a07e0d31d45e6656d241bb5c0f2efd4bc94" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:130b1bec86c62e121967ee0c69d9c263dc2d3ffe6c7c9a82aca4071c4d068861" | ||||||
|   name = "golang.org/x/net" |   name = "golang.org/x/net" | ||||||
|   packages = [ |   packages = [ | ||||||
|     "context", |     "context", | ||||||
|     "context/ctxhttp" |     "context/ctxhttp", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "9dfe39835686865bff950a07b394c12a98ddc811" |   revision = "9dfe39835686865bff950a07b394c12a98ddc811" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:4a61176e8386727e4847b21a5a2625ce56b9c518bc543a28226503e701265db0" | ||||||
|   name = "golang.org/x/oauth2" |   name = "golang.org/x/oauth2" | ||||||
|   packages = [ |   packages = [ | ||||||
|     ".", |     ".", | ||||||
|     "google", |     "google", | ||||||
|     "internal", |     "internal", | ||||||
|     "jws", |     "jws", | ||||||
|     "jwt" |     "jwt", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "9ff8ebcc8e241d46f52ecc5bff0e5a2f2dbef402" |   revision = "9ff8ebcc8e241d46f52ecc5bff0e5a2f2dbef402" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|   branch = "master" |   branch = "master" | ||||||
|  |   digest = "1:dc1fb726dbbe79c86369941eae1e3b431b8fc6f11dbd37f7899dc758a43cc3ed" | ||||||
|   name = "google.golang.org/api" |   name = "google.golang.org/api" | ||||||
|   packages = [ |   packages = [ | ||||||
|     "admin/directory/v1", |     "admin/directory/v1", | ||||||
|     "gensupport", |     "gensupport", | ||||||
|     "googleapi", |     "googleapi", | ||||||
|     "googleapi/internal/uritemplates" |     "googleapi/internal/uritemplates", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "8791354e7ab150705ede13637a18c1fcc16b62e8" |   revision = "8791354e7ab150705ede13637a18c1fcc16b62e8" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:934fb8966f303ede63aa405e2c8d7f0a427a05ea8df335dfdc1833dd4d40756f" | ||||||
|   name = "google.golang.org/appengine" |   name = "google.golang.org/appengine" | ||||||
|   packages = [ |   packages = [ | ||||||
|     ".", |     ".", | ||||||
|  | @ -125,30 +156,48 @@ | ||||||
|     "internal/modules", |     "internal/modules", | ||||||
|     "internal/remote_api", |     "internal/remote_api", | ||||||
|     "internal/urlfetch", |     "internal/urlfetch", | ||||||
|     "urlfetch" |     "urlfetch", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" |   revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" | ||||||
|   version = "v1.0.0" |   version = "v1.0.0" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:cb5b2a45a3dd41c01ff779c54ae4c8aab0271d6d3b3f734c8a8bd2c890299ef2" | ||||||
|   name = "gopkg.in/fsnotify.v1" |   name = "gopkg.in/fsnotify.v1" | ||||||
|   packages = ["."] |   packages = ["."] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "836bfd95fecc0f1511dd66bdbf2b5b61ab8b00b6" |   revision = "836bfd95fecc0f1511dd66bdbf2b5b61ab8b00b6" | ||||||
|   version = "v1.2.11" |   version = "v1.2.11" | ||||||
| 
 | 
 | ||||||
| [[projects]] | [[projects]] | ||||||
|  |   digest = "1:be4ed0a2b15944dd777a663681a39260ed05f9c4e213017ed2e2255622c8820c" | ||||||
|   name = "gopkg.in/square/go-jose.v2" |   name = "gopkg.in/square/go-jose.v2" | ||||||
|   packages = [ |   packages = [ | ||||||
|     ".", |     ".", | ||||||
|     "cipher", |     "cipher", | ||||||
|     "json" |     "json", | ||||||
|   ] |   ] | ||||||
|  |   pruneopts = "" | ||||||
|   revision = "f8f38de21b4dcd69d0413faf231983f5fd6634b1" |   revision = "f8f38de21b4dcd69d0413faf231983f5fd6634b1" | ||||||
|   version = "v2.1.3" |   version = "v2.1.3" | ||||||
| 
 | 
 | ||||||
| [solve-meta] | [solve-meta] | ||||||
|   analyzer-name = "dep" |   analyzer-name = "dep" | ||||||
|   analyzer-version = 1 |   analyzer-version = 1 | ||||||
|   inputs-digest = "b502c41a61115d14d6379be26b0300f65d173bdad852f0170d387ebf2d7ec173" |   input-imports = [ | ||||||
|  |     "github.com/BurntSushi/toml", | ||||||
|  |     "github.com/bitly/go-simplejson", | ||||||
|  |     "github.com/coreos/go-oidc", | ||||||
|  |     "github.com/mbland/hmacauth", | ||||||
|  |     "github.com/mreiferson/go-options", | ||||||
|  |     "github.com/stretchr/testify/assert", | ||||||
|  |     "golang.org/x/crypto/bcrypt", | ||||||
|  |     "golang.org/x/oauth2", | ||||||
|  |     "golang.org/x/oauth2/google", | ||||||
|  |     "google.golang.org/api/admin/directory/v1", | ||||||
|  |     "google.golang.org/api/googleapi", | ||||||
|  |     "gopkg.in/fsnotify.v1", | ||||||
|  |   ] | ||||||
|   solver-name = "gps-cdcl" |   solver-name = "gps-cdcl" | ||||||
|   solver-version = 1 |   solver-version = 1 | ||||||
|  |  | ||||||
|  | @ -14,8 +14,8 @@ import ( | ||||||
| 	"strings" | 	"strings" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/cookie" | 	"github.com/pusher/oauth2_proxy/cookie" | ||||||
| 	"github.com/bitly/oauth2_proxy/providers" | 	"github.com/pusher/oauth2_proxy/providers" | ||||||
| 	"github.com/mbland/hmacauth" | 	"github.com/mbland/hmacauth" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -15,7 +15,7 @@ import ( | ||||||
| 	"testing" | 	"testing" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/providers" | 	"github.com/pusher/oauth2_proxy/providers" | ||||||
| 	"github.com/mbland/hmacauth" | 	"github.com/mbland/hmacauth" | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | @ -13,7 +13,7 @@ import ( | ||||||
| 	"strings" | 	"strings" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/providers" | 	"github.com/pusher/oauth2_proxy/providers" | ||||||
| 	oidc "github.com/coreos/go-oidc" | 	oidc "github.com/coreos/go-oidc" | ||||||
| 	"github.com/mbland/hmacauth" | 	"github.com/mbland/hmacauth" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ import ( | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"github.com/bitly/go-simplejson" | 	"github.com/bitly/go-simplejson" | ||||||
| 	"github.com/bitly/oauth2_proxy/api" | 	"github.com/pusher/oauth2_proxy/api" | ||||||
| 	"log" | 	"log" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import ( | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/api" | 	"github.com/pusher/oauth2_proxy/api" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type FacebookProvider struct { | type FacebookProvider struct { | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/api" | 	"github.com/pusher/oauth2_proxy/api" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type GitLabProvider struct { | type GitLabProvider struct { | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import ( | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/api" | 	"github.com/pusher/oauth2_proxy/api" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // stripToken is a helper function to obfuscate "access_token"
 | // stripToken is a helper function to obfuscate "access_token"
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import ( | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/api" | 	"github.com/pusher/oauth2_proxy/api" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type LinkedInProvider struct { | type LinkedInProvider struct { | ||||||
|  |  | ||||||
|  | @ -9,7 +9,7 @@ import ( | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"net/url" | 	"net/url" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/cookie" | 	"github.com/pusher/oauth2_proxy/cookie" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func (p *ProviderData) Redeem(redirectURL, code string) (s *SessionState, err error) { | func (p *ProviderData) Redeem(redirectURL, code string) (s *SessionState, err error) { | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package providers | package providers | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/bitly/oauth2_proxy/cookie" | 	"github.com/pusher/oauth2_proxy/cookie" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type Provider interface { | type Provider interface { | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import ( | ||||||
| 	"strings" | 	"strings" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/cookie" | 	"github.com/pusher/oauth2_proxy/cookie" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type SessionState struct { | type SessionState struct { | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import ( | ||||||
| 	"testing" | 	"testing" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/bitly/oauth2_proxy/cookie" | 	"github.com/pusher/oauth2_proxy/cookie" | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -142,7 +142,7 @@ func getTemplates() *template.Template { | ||||||
| 	<footer> | 	<footer> | ||||||
| 	{{ if eq .Footer "-" }} | 	{{ if eq .Footer "-" }} | ||||||
| 	{{ else if eq .Footer ""}} | 	{{ else if eq .Footer ""}} | ||||||
| 	Secured with <a href="https://github.com/bitly/oauth2_proxy#oauth2_proxy">OAuth2 Proxy</a> version {{.Version}} | 	Secured with <a href="https://github.com/pusher/oauth2_proxy#oauth2_proxy">OAuth2 Proxy</a> version {{.Version}} | ||||||
| 	{{ else }} | 	{{ else }} | ||||||
| 	{{.Footer}} | 	{{.Footer}} | ||||||
| 	{{ end }} | 	{{ end }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue