Add Dropbox to the providers not supporting Auth headers.

Dropbox does not support mixing URL param and Auth header for authentication but the retrieveToken method forces the client_id to be sent in the URL param.
This commit is contained in:
Arnaud Ysmal 2014-09-07 19:05:03 +02:00
parent 97a89b3be5
commit e6396819be
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
strings.HasPrefix(tokenURL, "https://github.com/") ||
strings.HasPrefix(tokenURL, "https://api.instagram.com/") ||
strings.HasPrefix(tokenURL, "https://www.douban.com/") {
strings.HasPrefix(tokenURL, "https://www.douban.com/") ||
strings.HasPrefix(tokenURL, "https://api.dropbox.com/") {
// Some sites fail to implement the OAuth2 spec fully.
return false
}