mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
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 <jbd@google.com>
This commit is contained in:
parent
2b74ab268d
commit
27daa780a8
@ -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/") ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user