From 27daa780a873c5314bfbf8933c5c9220660f0016 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 4 Feb 2015 13:17:40 +0000 Subject: [PATCH] oauth2: add googleapis.com to list of broken oauth2 endpoints Fixes #85 Change-Id: Ic60eee227763ab4041248716880416056c850f95 Reviewed-on: https://go-review.googlesource.com/3873 Reviewed-by: Burcu Dogan --- oauth2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/oauth2.go b/oauth2.go index 90f983b..a562f5e 100644 --- a/oauth2.go +++ b/oauth2.go @@ -384,6 +384,7 @@ func condVal(v string) []string { // - Google only accepts URL param (not spec compliant?), not Auth header func providerAuthHeaderWorks(tokenURL string) bool { if strings.HasPrefix(tokenURL, "https://accounts.google.com/") || + strings.HasPrefix(tokenURL, "https://www.googleapis.com/") || strings.HasPrefix(tokenURL, "https://github.com/") || strings.HasPrefix(tokenURL, "https://api.instagram.com/") || strings.HasPrefix(tokenURL, "https://www.douban.com/") ||