зеркало из https://github.com/golang/oauth2.git
oauth2: provider list modified in providerAuthHeaderWorks
Added vk.com and odnoklassniki.ru to provider list in providerAuthHeaderWorks. Related to issue #41. Change-Id: If1374528e8f1200d22f8694c5e32cdeae6ebb6ea Reviewed-on: https://go-review.googlesource.com/6925 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Родитель
5a0a1b2881
Коммит
10e6bf9f9d
|
@ -416,6 +416,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
|
|||
strings.HasPrefix(tokenURL, "https://api.soundcloud.com/") ||
|
||||
strings.HasPrefix(tokenURL, "https://www.linkedin.com/") ||
|
||||
strings.HasPrefix(tokenURL, "https://api.twitch.tv/") ||
|
||||
strings.HasPrefix(tokenURL, "https://oauth.vk.com/") ||
|
||||
strings.HasPrefix(tokenURL, "http://api.odnoklassniki.ru/") ||
|
||||
strings.HasPrefix(tokenURL, "https://connect.stripe.com/") {
|
||||
// Some sites fail to implement the OAuth2 spec fully.
|
||||
return false
|
||||
|
|
Загрузка…
Ссылка в новой задаче