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:
Nikolay Turpitko 2015-03-06 15:16:30 +06:00 коммит произвёл Andrew Gerrand
Родитель 5a0a1b2881
Коммит 10e6bf9f9d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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