From 10e6bf9f9dda5e0811d42c421aa6274254d70b25 Mon Sep 17 00:00:00 2001 From: Nikolay Turpitko Date: Fri, 6 Mar 2015 15:16:30 +0600 Subject: [PATCH] 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 --- oauth2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oauth2.go b/oauth2.go index 21d2730..4004642 100644 --- a/oauth2.go +++ b/oauth2.go @@ -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