mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
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:
parent
97a89b3be5
commit
e6396819be
@ -289,7 +289,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
|
|||||||
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
|
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
|
||||||
strings.HasPrefix(tokenURL, "https://github.com/") ||
|
strings.HasPrefix(tokenURL, "https://github.com/") ||
|
||||||
strings.HasPrefix(tokenURL, "https://api.instagram.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.
|
// Some sites fail to implement the OAuth2 spec fully.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user