From 311200b9539ac878c32bb890a8391978abc61e7a Mon Sep 17 00:00:00 2001 From: Matt Jibson Date: Sat, 4 Oct 2014 02:15:35 -0400 Subject: [PATCH 1/2] Spelling --- oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index 6908524..9a02afc 100644 --- a/oauth2.go +++ b/oauth2.go @@ -150,7 +150,7 @@ func (c *Config) NewTransport() *Transport { // NewTransportWithCode exchanges the OAuth 2.0 authorization code with // the provider to fetch a new access token (and refresh token). Once -// it succesffully retrieves a new token, creates a new transport +// it successfully retrieves a new token, creates a new transport // authorized with it. func (c *Config) NewTransportWithCode(code string) (*Transport, error) { token, err := c.Exchange(code) From 123b41c5cbde73f0147fc28de9b5deb0290de064 Mon Sep 17 00:00:00 2001 From: Matt Jibson Date: Sat, 4 Oct 2014 02:16:01 -0400 Subject: [PATCH 2/2] Add SoundCloud to the providers not supporting Auth headers --- oauth2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/oauth2.go b/oauth2.go index 9a02afc..6c69c4d 100644 --- a/oauth2.go +++ b/oauth2.go @@ -287,6 +287,7 @@ func providerAuthHeaderWorks(tokenURL string) bool { strings.HasPrefix(tokenURL, "https://api.instagram.com/") || strings.HasPrefix(tokenURL, "https://www.douban.com/") || strings.HasPrefix(tokenURL, "https://api.dropbox.com/") || + strings.HasPrefix(tokenURL, "https://api.soundcloud.com/") || strings.HasPrefix(tokenURL, "https://www.linkedin.com/") { // Some sites fail to implement the OAuth2 spec fully. return false