Add Linkedin to the providers not supporting Auth headers.

This commit is contained in:
CL Sung 2014-09-11 10:49:49 +08:00
parent 6d51104f2c
commit 099e4f09b0
1 changed files with 2 additions and 1 deletions

View File

@ -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
}