mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Add Linkedin to the providers not supporting Auth headers.
This commit is contained in:
parent
6d51104f2c
commit
099e4f09b0
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user