Skip to content

Commit

Permalink
Add Linkedin to the providers not supporting Auth headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
CL Sung committed Sep 11, 2014
1 parent 6d51104 commit 099e4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
strings.HasPrefix(tokenURL, "https://github.com/") ||
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.dropbox.com/") ||
strings.HasPrefix(tokenURL, "https://www.linkedin.com/") {
// Some sites fail to implement the OAuth2 spec fully.
return false
}
Expand Down

0 comments on commit 099e4f0

Please sign in to comment.